Skip to content

Keys #42

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
merged 39 commits into from
Aug 24, 2022
Merged

Keys #42

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
35ad519
Add costume change and sound sample project
Secret-chest Mar 17, 2022
6779925
Fix bugs with multiple costumes
Secret-chest Mar 31, 2022
09adacc
Add setCostume method for sprites
Secret-chest Apr 6, 2022
676fb9a
Add set costume to [... v] block support
Secret-chest Apr 7, 2022
635952a
Add name attribute to sounds
Secret-chest Apr 7, 2022
3dfea93
WIP: Sound play function
Secret-chest Apr 7, 2022
a5fe713
Add next costume block
Secret-chest Apr 13, 2022
a9e24b4
Add list of targetSprites
Secret-chest Apr 21, 2022
eb69c76
Add getStage() function and switch backdrop to [ v] block support
Secret-chest Apr 21, 2022
46f13c0
Experimental key event support
Secret-chest Apr 22, 2022
48ebdfa
Add sample project
Secret-chest Apr 29, 2022
48c082c
Key events now work correctly
Secret-chest Apr 29, 2022
bb34f99
Clean up sample projects
Secret-chest May 1, 2022
fcd5fb2
Banner shouldn't be here, it will come back soon
Secret-chest May 8, 2022
f6b8a59
Add mouse x/y blocks
Secret-chest May 9, 2022
d395ed1
Reset point
Secret-chest May 9, 2022
8d11452
Fix setXy
Secret-chest May 9, 2022
9800a75
Fix repeat block not returning anything
Secret-chest May 10, 2022
b56c46b
Replace default keys with set
Secret-chest May 10, 2022
c516851
Broken keys...
Secret-chest May 12, 2022
76e7ac6
Add top attribute to block (reference to script start)
Secret-chest May 19, 2022
585af66
WIP key event blockRan
Secret-chest May 19, 2022
da045cb
More WIP key event blockRan
Secret-chest May 26, 2022
43e6e54
More WIP key event blockRan
Secret-chest Jun 2, 2022
9eb26f0
Don't duplicate setXy in setXyDelta
Secret-chest Jun 13, 2022
f4beea5
Fix repeat blocks
Secret-chest Jun 13, 2022
acb4a0e
Add i18n for macs
Secret-chest Jun 16, 2022
c675007
i18n for macs was ok before
Secret-chest Jun 16, 2022
d5b5fc4
Check if all blocks in script were ran
Secret-chest Jun 16, 2022
8437c5f
A little better
Secret-chest Jul 6, 2022
a98fe8e
Dumb commit 1
Secret-chest Jul 20, 2022
48b1d00
Dumb commit 2
Secret-chest Jul 20, 2022
eb83e1e
Some more work
Secret-chest Jul 20, 2022
94db40d
Arrow keys now work, ASCII ones do not
Secret-chest Aug 10, 2022
26efbce
Merge remote-tracking branch 'origin/costumes-sounds' into costumes-s…
Secret-chest Aug 10, 2022
bab01c9
Just so I can go back in time
Secret-chest Aug 17, 2022
3384c84
Replace almost all keyEvents with keys
Secret-chest Aug 17, 2022
ada2f06
Keys finally work
Secret-chest Aug 24, 2022
2e64354
Rename branch to keys and gitignore
Secret-chest Aug 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Project exclude paths
/venv/
/venv/
/.idea/
15 changes: 15 additions & 0 deletions TODOs/bugs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## ✅ Finished

- [x] `block.script` is not filled correctly
- [x] Keypress event block is marked as not ran too early
- [x] Keypress event block should be marked as not ran only when the last block in the script is done
- [x] Use `block.top` to detect the event which needs to be marked
- [x] Wait blocks below key events don't work
- [x] Key repeat doesn't apply
- [x] Keys which have ASCII codes don't work

## ❎ In progress

- [ ] Why do event blocks go in `toExecute`?
- [ ] Cannot use multiple event handlers for one key
- [ ] Sprite fencing is wrong
Binary file added __pycache__/block.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/block.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/block.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/config.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/config.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/configMeta.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/costume.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/costume.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/costume.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/monitor.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/monitor.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/monitor.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/sb3Unpacker.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/sb3Unpacker.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/scratch.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/scratch.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/scratch.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/sound.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/sound.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/sound.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/target.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/target.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/target.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/targetSprite.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/targetSprite.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/targetSprite.cpython-39.pyc
Binary file not shown.
Binary file added __pycache__/variable.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/variable.cpython-38.pyc
Binary file not shown.
Binary file added __pycache__/variable.cpython-39.pyc
Binary file not shown.
1 change: 0 additions & 1 deletion assets/3dc0568c0414f091db6da7b90bcc2a64.svg

This file was deleted.

Binary file added assets/83c36d806dc92327b9e7049a565c6bff.wav
Binary file not shown.
42 changes: 42 additions & 0 deletions assets/b7853f557e4426412e64bb3da6531a99.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions assets/e6ddc55a6ddd9cc9d84fe0b4c21e016f.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading