V1 update (#1)

This commit is contained in:
Nguyễn Quốc Hưng
2024-06-06 16:01:24 +07:00
committed by Squishy (C6H12O6+NaCl+H2O)
parent 3343d8711b
commit 1d6643448e
30 changed files with 1000 additions and 228 deletions

View File

@@ -3,7 +3,6 @@ GameScene.title = "Game"
local tas = false
-- 70 295
local buttonList = {
BUTTON.new{
text = "Rotate Left\n Pause/Frame Step",
@@ -45,17 +44,17 @@ local buttonList = {
local menuKey -- MENU key used to go main menu XD
function GameScene:new(player_name, replay_file, replay_grade)
VCTRL[9].show = false
menuKey = BUTTON.new{
text = "MENU",
x = 265, y = 0, w = 60, h = 25,
text = CHAR.icon.menu.." MENU",
x = 10, y = 10, w = 70, h = 30,
codeWhenReleased = function()
if self.game.input_playback or self.game.game_over or self.game.completed then
SCENE = TitleScene()
end
end
}
VCTRL[9].show = false
BUTTON.reset(buttonList)
game_mode = require 'game.gamemode'
if PENTO_MODE then
@@ -89,7 +88,7 @@ end
function GameScene:update(nosound, tas_update)
local inputs = {}
if tas then
if tas then
while self.game.are > 2 do
self.game:update(inputs, self.ruleset)
end