-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove swipe and use javascript for scripting instead
- Loading branch information
Showing
12 changed files
with
28 additions
and
309 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
build/ | ||
build-*/ | ||
pro/ | ||
pro/scripting-old/ | ||
resources/images/support-popup.png | ||
swipe-vscode/ |
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 |
---|---|---|
|
@@ -53,7 +53,7 @@ | |
}, | ||
"resources": { | ||
"files": [ | ||
"scripts/*.swipe" | ||
"scripts/*.js" | ||
], | ||
"spritesheets": { | ||
"UISheet": [ | ||
|
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* @title My Awesome Script | ||
* @author HJfod | ||
* @version 1.0 | ||
*/ | ||
|
||
print("hi this is javascript code in gd"); | ||
print([] + [], {}, "helloooo", 5); | ||
|
||
"hi" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
function deselectRandom(objs) { | ||
for (obj of objs) { | ||
if (Math.random() > 0.5) { | ||
obj.deselect(); | ||
} | ||
} | ||
} | ||
|
||
// This is just an idea | ||
editor.addEventListener("select", objs => { | ||
deselectRandom(objs); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.