mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-23 02:49:02 -06:00
Add some more settings
This commit is contained in:
parent
4f5c61fb61
commit
83b4085d56
@ -14,8 +14,8 @@ MarathonA2Game.tagline = "The points don't matter! Can you reach the invisible r
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function MarathonA2Game:new()
|
function MarathonA2Game:new(cfg)
|
||||||
MarathonA2Game.super:new()
|
MarathonA2Game.super:new(cfg)
|
||||||
|
|
||||||
self.roll_frames = 0
|
self.roll_frames = 0
|
||||||
self.combo = 1
|
self.combo = 1
|
||||||
@ -38,8 +38,8 @@ function MarathonA2Game:new()
|
|||||||
self.additive_gravity = false
|
self.additive_gravity = false
|
||||||
self.lock_drop = false
|
self.lock_drop = false
|
||||||
self.lock_hard_drop = false
|
self.lock_hard_drop = false
|
||||||
self.enable_hold = false
|
self.enable_hold = cfg.allowHold == 2
|
||||||
self.next_queue_length = 1
|
self.next_queue_length = cfg.nextQueue == 2 and 3 or 1
|
||||||
end
|
end
|
||||||
|
|
||||||
function MarathonA2Game:getARE()
|
function MarathonA2Game:getARE()
|
||||||
@ -403,4 +403,11 @@ function MarathonA2Game:getBackground()
|
|||||||
return math.floor(self.level / 100)
|
return math.floor(self.level / 100)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function MarathonA2Game:provideSettings()
|
||||||
|
return {
|
||||||
|
{"allowHold", "Allow hold", {"No", "Yes"}},
|
||||||
|
{"nextQueue", "Next pieces", {"One", "Three"}}
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
return MarathonA2Game
|
return MarathonA2Game
|
||||||
|
@ -14,8 +14,8 @@ SurvivalA2Game.tagline = "The game starts fast and only gets faster!"
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function SurvivalA2Game:new()
|
function SurvivalA2Game:new(cfg)
|
||||||
SurvivalA2Game.super:new()
|
SurvivalA2Game.super:new(cfg)
|
||||||
self.roll_frames = 0
|
self.roll_frames = 0
|
||||||
self.combo = 1
|
self.combo = 1
|
||||||
self.randomizer = History6RollsRandomizer()
|
self.randomizer = History6RollsRandomizer()
|
||||||
@ -28,6 +28,8 @@ function SurvivalA2Game:new()
|
|||||||
|
|
||||||
self.lock_drop = true
|
self.lock_drop = true
|
||||||
self.lock_hard_drop = true
|
self.lock_hard_drop = true
|
||||||
|
self.enable_hold = cfg.allowHold == 2
|
||||||
|
self.next_queue_length = cfg.nextQueue == 2 and 3 or 1
|
||||||
end
|
end
|
||||||
|
|
||||||
function SurvivalA2Game:getARE()
|
function SurvivalA2Game:getARE()
|
||||||
@ -185,4 +187,11 @@ function SurvivalA2Game:getHighscoreData()
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function SurvivalA2Game:provideSettings()
|
||||||
|
return {
|
||||||
|
{"allowHold", "Allow hold", {"No", "Yes"}},
|
||||||
|
{"nextQueue", "Next pieces", {"One", "Three"}}
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
return SurvivalA2Game
|
return SurvivalA2Game
|
||||||
|
Loading…
Reference in New Issue
Block a user