-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve controller handling, added intro
- Loading branch information
1 parent
e621914
commit 48bd59a
Showing
7 changed files
with
134 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
credits_screen_state = State() | ||
|
||
function credits_screen_state:init() | ||
self.credits_string = | ||
[[Originally created for the GGJ2017 | ||
Concept/Programming: Tom | ||
@HopeThomasj | ||
Audio: Chris | ||
linkedin.com/in/christopher-quinn-sound | ||
More levels by Bogdan, Sam A. and Sam C. | ||
And thanks to Dundee Makerspace for the awesome jam site!]] | ||
end | ||
|
||
function credits_screen_state:update() | ||
if controller_1:button_pressed_any() then | ||
Gamestate.switch(main_menu_state) | ||
end | ||
end | ||
|
||
function credits_screen_state:draw() | ||
love.graphics.setBackgroundColor(0, 0, 0) | ||
love.graphics.setColor(255,255,255) | ||
love.graphics.print(self.credits_string, 20, 20) | ||
end | ||
|
||
function credits_screen_state:keypressed( keycode, scancode, isrepeat ) | ||
if scancode == 'space' then | ||
Gamestate.switch(main_menu_state) | ||
end | ||
end |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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