Skip to content

Commit

Permalink
remove swipe and use javascript for scripting instead
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Jan 25, 2025
1 parent 5abc3ed commit f9a0e75
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 309 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
build/
build-*/
pro/
pro/scripting-old/
resources/images/support-popup.png
swipe-vscode/
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ add_subdirectory($ENV{GEODE_SDK} ${CMAKE_CURRENT_BINARY_DIR}/geode SYSTEM)

setup_geode_mod(${PROJECT_NAME})

include(pro/CPMPackages.cmake)

target_compile_definitions(${PROJECT_NAME} PUBLIC "BETTEREDIT_VERSION_STR=${MOD_VERSION}")

# Bad code will NOT be deployed!
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
"resources": {
"files": [
"scripts/*.swipe"
"scripts/*.js"
],
"spritesheets": {
"UISheet": [
Expand Down
15 changes: 0 additions & 15 deletions scripts/Circle.swipe

This file was deleted.

10 changes: 10 additions & 0 deletions scripts/OhNo.js
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"
10 changes: 0 additions & 10 deletions scripts/SelectRandom.swipe

This file was deleted.

25 changes: 0 additions & 25 deletions scripts/Test.swipe

This file was deleted.

13 changes: 13 additions & 0 deletions scripts/Worker.js
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);
});
29 changes: 0 additions & 29 deletions swipe-vscode/language-configuration.json

This file was deleted.

48 changes: 0 additions & 48 deletions swipe-vscode/package.json

This file was deleted.

Binary file removed swipe-vscode/swipe.png
Binary file not shown.
181 changes: 0 additions & 181 deletions swipe-vscode/syntaxes/swipe.tmLanguage.json

This file was deleted.

0 comments on commit f9a0e75

Please sign in to comment.