Colin McMillen
7b9147d901
Input: flip y-motion to match our usual coordinates (top left is (0, 0))
4 years ago
Colin McMillen
fb3538cea9
Add ability to move by a single pixel in DEBUG builds.
Fixes #15 .
Also enables the LeftShoulder + RightShoulder + [BUTTON] combos only while
we're in DEBUG mode.
4 years ago
Colin McMillen
0f8d9c2814
FSM / Player / NPCs now get World as an argument to Update()
4 years ago
Colin McMillen
02b1dd4874
Add simple NPC.
GitOrigin-RevId: 47cd7abaf8
4 years ago
Colin McMillen
a0ea63f96b
make Input readonly
GitOrigin-RevId: 1bb3c6bb6f
4 years ago
Colin McMillen
4e4c2cccb3
Input: process debugging commands first & exit early if any are pressed.
GitOrigin-RevId: c36acce593
4 years ago
Colin McMillen
90b003e0b0
Change Debug button from left shoulder to Select.
GitOrigin-RevId: 7e633c9904
4 years ago
Colin McMillen
e2ea2e1d3f
Add ability to restart the level. Fixes #9 .
GitOrigin-RevId: e7a0cdcdde
4 years ago
Colin McMillen
83839c92ac
add Pause functionality
GitOrigin-RevId: 18fb954757
4 years ago
Colin McMillen
ae8fa0d21d
Revert "Add .gitignore and .gitattributes."
This reverts commit 5c9f574644
.
GitOrigin-RevId: 277054282d
4 years ago
Colin McMillen
cb1b78b875
Add .gitignore and .gitattributes.
GitOrigin-RevId: 5c9f574644
4 years ago
Colin McMillen
a719e5b370
Add secondary buttons for jump & attack
GitOrigin-RevId: adac7b3aa1
4 years ago
Colin McMillen
db6f3e1425
Add Input class to group gamepad & keyboard inputs together.
For motion directions (up/down & left/right), have them cancel each other out
if the player attempts to go in opposite directions at once.
Refactor Player & SneakGame to use the new Input class & remove direct access
to Keyboard & GamePad.
GitOrigin-RevId: 80fbed8874
4 years ago