⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gameengine.bas

📁 场景精美的 3D 第一视角射击游戏(类似于 CS)
💻 BAS
字号:
Attribute VB_Name = "GameEngine"
Public mEnemy As New cEnemy
Public PlayerHealth As Single
Public GODI As Integer

Public Function GameInit()
    mEnemy.Init App.Path + "\Ene1.x"
    PlayerHealth = 10
End Function

Public Function RenderGame()
    mEnemy.Render
End Function

Public Function HitPlayer()
    PlayerHealth = PlayerHealth - 1
    If PlayerHealth <= 0 Then
        GODI = 1
    End If
End Function

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -