fix: player can select unavailable drone
This commit is contained in:
parent
c31d902074
commit
60002df6e1
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## TODO:
|
## TODO:
|
||||||
|
|
||||||
- [ ] Menu audio
|
- [x] Menu audio
|
||||||
- [x] Tags, zOffset from constants
|
- [x] Tags, zOffset from constants
|
||||||
- [ ] Add global game state (?)
|
- [ ] Add global game state (?)
|
||||||
- [x] Add inertia to the player
|
- [x] Add inertia to the player
|
||||||
|
@ -6,6 +6,9 @@ local elapsedTime = 0
|
|||||||
|
|
||||||
scene.inputHandler = {
|
scene.inputHandler = {
|
||||||
AButtonDown = function()
|
AButtonDown = function()
|
||||||
|
if Drones[scene.menuIndex].locked == true then
|
||||||
|
return
|
||||||
|
end
|
||||||
scene.menuConfirmSound:play(1)
|
scene.menuConfirmSound:play(1)
|
||||||
Noble.transition(Assemble)
|
Noble.transition(Assemble)
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user