- Add all the
globalVariables
to the scope. - Add all the
instanceVariables
to the object prototype. - Add all the
objects
to the scope. - Add all the
abilities
to the scope. - Add all the
scenes
to the scope.
Last active
February 28, 2017 13:54
-
-
Save samanthamjohn/cfcdbec936bd5473a080b8861c3648bc to your computer and use it in GitHub Desktop.
Hopscotch Project structure
- Find all global variables and add them to
globalVariables
- Find all object property names and add them to
instanceVariables
- Find all objects and add their starting position, name and type to
objects
- Find all the abilities and add them to
abilities
. - Find all the scenes and add them
Scenes
.
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
{ | |
"globalVariables" : ["foo", "bar", "baz"], | |
"instanceVariables" : ["a", "b", "c"], | |
"objects": ["objects"], | |
"abilities" : { | |
"name" : ["methods"], | |
"name" : ["methods"], | |
}, | |
"scenes" : ["scenes"] | |
} |
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
{ | |
"name": "daisy", | |
"x" : 100, | |
"y" : 10, | |
"type" : "dino", | |
} |
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
{ | |
"funky" : ["method1", "method2", "method3"], | |
"valgo" : ["method5", "method3", "funky"], | |
} |
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
{ | |
"id" : "rule1", | |
"trigger" : { | |
"event" : "start game" | |
}, | |
"code" : ["methods"] | |
}, | |
{ | |
"id" : "rule2", | |
"trigger" : { | |
"event" : "on tap", | |
"parameters" : ["param1"] | |
}, | |
"code" : ["methods"] | |
} |
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
{ | |
"name" : "move", | |
"parameters" : [] | |
} |
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
{ | |
"object" : "Daisy", | |
"rules" : ["rules"] | |
} |
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
{ | |
"name" : "quux", | |
"type" : "number", | |
"value" : { | |
"name" : "qux", | |
"type" : "add", | |
"parameters" : ["params"] | |
} | |
} |
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
{ | |
"name" : "bar", | |
"type" : "color", | |
"value" : { | |
"type" : "self", | |
"name" : "a" | |
}, | |
} |
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
{ | |
"name" : "scene 1", | |
"objects" : ["object_rules"] | |
} |
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
{ | |
"name" : "foo", | |
"value" : 100, | |
"type" : "number" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment