📄 fmain.class
字号:
'' Copyright (C) 2004, Michael Isaac. All rights reserved.'PRIVATE Attacking AS BooleanPUBLIC SUB _new() mMain.Canvas = daCanvasENDPUBLIC SUB tmrMainLoop_Timer() mMain.MainLoop()ENDPUBLIC SUB Form_KeyPress() SELECT CASE Key.Code CASE Key.Left MMain.Obj[0].TurnLeft = TRUE CASE Key.Right MMain.Obj[0].TurnRight = TRUE CASE Key.Up MMain.Obj[0].Thrust = TRUE CASE Key["F"] MMain.Obj[0].Attack = TRUE CASE Key["D"] MMain.Obj[0].MX = 0 MMain.Obj[0].MY = 0 END SELECTENDPUBLIC SUB Form_KeyRelease() SELECT CASE Key.Code CASE Key.Left MMain.Obj[0].TurnLeft = FALSE CASE Key.Right MMain.Obj[0].TurnRight = FALSE CASE Key.Up MMain.Obj[0].Thrust = FALSE CASE Key["F"] MMain.Obj[0].Attack = FALSE END SELECTENDPUBLIC SUB Form_Close() mMain.Exit()ENDPUBLIC SUB Form_Resize() mMain.SCREEN_WIDTH = ME.ClientW mMain.SCREEN_HEIGHT = ME.ClientH daCanvas.H = ME.ClientH daCanvas.W = ME.ClientWENDPUBLIC SUB daCanvas_KeyPress() Form_KeyPress()ENDPUBLIC SUB daCanvas_Release() Form_KeyRelease()ENDPUBLIC SUB mnuMainExit_Click() ME.DeleteENDPUBLIC SUB mnuMainAbout_Click() FAbout.Show()END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -