This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BEFORE: | |
| function Inventory:keypressed( button ) | |
| if self:isOpen() then | |
| if button == 'SELECT' then | |
| self:close() | |
| end | |
| if button == 'RIGHT' then | |
| self:right() | |
| end | |
| if button == 'LEFT' then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Possibility 1: | |
| self.konami = { 'UP', 'UP', 'DOWN', 'DOWN', 'LEFT', 'RIGHT', 'LEFT', 'RIGHT', 'JUMP', 'ATTACK' } | |
| TO | |
| self.konami = { 'UP', 'UP', 'DOWN', 'DOWN', 'LEFT', 'RIGHT', 'LEFT', 'RIGHT', 'SELECT', 'ATTACK' } | |
| Possibilty 2: | |
| if self.konami[self.konami_idx + 1] == button then | |
| self.konami_idx = self.konami_idx + 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| -- From splash to select | |
| function state:keypressed( button ) | |
| Gamestate.switch("select") | |
| end | |
| ... |
NewerOlder