-
Notifications
You must be signed in to change notification settings - Fork 174
Game: Add additional keyboard inputs for interactions with the game #2786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
RichDom2185
merged 33 commits into
source-academy:master
from
reginateh:keyboardShortcuts
Mar 2, 2024
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
ca94e89
sync keyboard input changes with current SA repo
reginateh 2b1dd2c
minor changes
reginateh 1d1c201
rephase comments
reginateh 5a27c5c
fix import order
reginateh 7779250
Merge branch 'master' into keyboardShortcuts
RichDom2185 e3d0911
Reformat files with Prettier
RichDom2185 7ff8789
changes according to comments
reginateh 0a9c066
format
reginateh dbecb72
reformat files
reginateh 77883ab
Merge branch 'master' into keyboardShortcuts
lhw-1 58584d1
Merge branch 'master' into keyboardShortcuts
lhw-1 a0eb785
update the test
018c710
create .env file
da10345
update .env file
6e14b3f
reformatting
6b332b5
reformat Bindings page
reginateh 8600fd0
Merge branch 'keyboardShortcuts' of https://github.com/reginateh/fron…
reginateh 8841e69
Merge branch 'master' into keyboardShortcuts
lhw-1 328e888
Merge branch 'master' into keyboardShortcuts
RichDom2185 0863d3a
Fix format
RichDom2185 ff6ff33
Merge branch 'master' into keyboardShortcuts
RichDom2185 8ddc8e9
Merge branch 'master' into keyboardShortcuts
RichDom2185 b17497b
Merge branch 'master' into keyboardShortcuts
RichDom2185 1f82f7d
Merge branch 'master' into keyboardShortcuts
RichDom2185 b5194af
move binding format constants to BindingsConstants
reginateh 50d7ff2
Merge branch 'keyboardShortcuts' of https://github.com/reginateh/fron…
reginateh 7750f38
reformat
reginateh e8c8bae
Merge branch 'master' into keyboardShortcuts
RichDom2185 f0831d5
Merge branch 'master' into keyboardShortcuts
RichDom2185 b7d25b3
Merge branch 'master' into keyboardShortcuts
lhw-1 1afe117
revert changes on .env.example
reginateh 24617e3
Merge branch 'master' into keyboardShortcuts
RichDom2185 7895a1b
Merge branch 'master' into keyboardShortcuts
lhw-1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| export const keyboardShortcuts = { | ||
| Dashboard: Phaser.Input.Keyboard.KeyCodes.TAB, | ||
| Menu: Phaser.Input.Keyboard.KeyCodes.ESC, | ||
| Next: Phaser.Input.Keyboard.KeyCodes.SPACE, | ||
| Notif: Phaser.Input.Keyboard.KeyCodes.SPACE, | ||
| Explore: Phaser.Input.Keyboard.KeyCodes.E, | ||
| Move: Phaser.Input.Keyboard.KeyCodes.V, | ||
| Talk: Phaser.Input.Keyboard.KeyCodes.T, | ||
| Options: [ | ||
| Phaser.Input.Keyboard.KeyCodes.ONE, | ||
| Phaser.Input.Keyboard.KeyCodes.TWO, | ||
| Phaser.Input.Keyboard.KeyCodes.THREE, | ||
| Phaser.Input.Keyboard.KeyCodes.FOUR | ||
| ] | ||
| }; |
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.