-
Notifications
You must be signed in to change notification settings - Fork 236
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
New Extension: Mouse Speed. #1715
Open
hammouda101010
wants to merge
69
commits into
TurboWarp:master
Choose a base branch
from
hammouda101010:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,105
−20
Open
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
4411e1c
New Extension: Mouse Speed.
hammouda101010 956f7d8
fixed bugs
hammouda101010 f2a39a7
fixed format i think
hammouda101010 d0127eb
added image
hammouda101010 a16698e
added to list
hammouda101010 d0d7ada
moar stuff
hammouda101010 0860278
even more stuff
hammouda101010 9069954
fix
hammouda101010 bfecd8f
modified stuff
hammouda101010 be893df
blah
hammouda101010 5422e91
a
hammouda101010 8621a8a
resized the image are you happy now
hammouda101010 62684dc
amogus
hammouda101010 ccf3668
ok
hammouda101010 9b2d7ad
changed a bit the image
hammouda101010 580da6f
added new block
hammouda101010 6eb1c1d
added mouse limit
hammouda101010 66a5836
you can remove limits now.
hammouda101010 53d4cdf
fixed stuff
hammouda101010 ef61a52
added label and grammar fix
hammouda101010 33d8212
added another label
hammouda101010 4d3fed0
fixed format
hammouda101010 81589db
added sprite speed
hammouda101010 92f1922
removed sprites stuff
hammouda101010 0f17904
lint fix
hammouda101010 168f038
:skull:
hammouda101010 27ad71d
No More Mouse Speed, turbowarp modding implementat …
hammouda101010 0450e78
stuff
hammouda101010 2db4071
added error check
hammouda101010 cacf338
add find mod block
hammouda101010 3187601
tiny syntax error
hammouda101010 9dbd602
stuff
hammouda101010 afa561f
error detection but better
hammouda101010 0aca342
revert changes
hammouda101010 9f3876d
updated extensions.json
hammouda101010 a4923c3
renamed extension
hammouda101010 9bbc7fe
added menu
hammouda101010 c4ec18c
WARNING: loud srpelo alert
hammouda101010 aa87db4
import & export mods placeholder
hammouda101010 78af097
neutralized some constants
hammouda101010 f01c3bd
fixed format
hammouda101010 80e41e3
commit
hammouda101010 70d3a8f
added stuff
hammouda101010 311bb48
commit
hammouda101010 d87624b
added block icon
hammouda101010 e4983af
commit
hammouda101010 f70c65c
no problem
hammouda101010 b2ec17e
commented vm
hammouda101010 b142c3b
added inline image
hammouda101010 12520b4
added modpack feature
hammouda101010 b28652e
updated warning
hammouda101010 2f74c0a
commit
hammouda101010 435dcbf
added credit
hammouda101010 70f9af5
asset manager stuff
hammouda101010 e84880a
added load mod block
hammouda101010 ec678fc
updated ISSprite function
hammouda101010 4e46c8e
:skull::skull::skull:
hammouda101010 cbcaa4c
thanks for chat gpt to fix this, nobody was here t
hammouda101010 c5ff4b5
fixed linting
hammouda101010 26a72c4
chat gpt sucks
hammouda101010 b2f985e
fix
hammouda101010 be2e82c
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
hammouda101010 2ae516d
fixed format
hammouda101010 19dcd4f
wtf
hammouda101010 4e22dbf
FIXED STUFF
hammouda101010 5aeac1a
a
hammouda101010 92a72ff
a
hammouda101010 c42561c
cool
hammouda101010 e106567
FINALLY managed to make it work!
hammouda101010 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 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,48 @@ | ||
# Mouse Speed | ||
This extension lets you get the speed of the mouse. | ||
|
||
## "mouse speed" | ||
```scratch | ||
mouse speed :: #38c3e5 reporter | ||
``` | ||
This block constantly returns the speed of the mouse | ||
## "is mouse faster than ()?" | ||
```scratch | ||
is mouse faster than ()? :: #38c3e5 boolean | ||
``` | ||
This block checks if the mouse speed is greater than the value. In other terms, if the mouse is faster than the value. | ||
|
||
## Usage: | ||
|
||
Basic Example: | ||
```scratch | ||
when green flag clicked | ||
forever | ||
if <is mouse faster than (50)? :: #38c3e5> then // checks if mouse faster than value | ||
say[ouch, that hurts!] | ||
else | ||
say(mouse speed :: #38c3e5) //otherwise, returns mouse speed | ||
``` | ||
|
||
Swiping Example: | ||
```scratch | ||
define explode | ||
... // insert code here | ||
change [score v] by [1] | ||
delete this clone | ||
|
||
when green flag clicked | ||
set [score v] to [0] | ||
forever | ||
wait[5] seconds | ||
create clone of [myself v] | ||
|
||
when i start as a clone // simple code | ||
point in direction(pick random [-180] to [180]) | ||
forever | ||
move [5] steps | ||
if on edge, bounce | ||
if <<touching [mouse pointer v] > and <is mouse faster than (50)? :: #38c3e5>> then // checks if mouse faster than value | ||
Explode | ||
``` | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: this extension is W.I.P. do not add it until its ready