📄 gameengine.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 + -