Download pool/shard010/JavaScript/0062654_play.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 726 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard010/JavaScript/0062654_play.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard010/JavaScript/0062654_play.js
-
curl -L -o 0062654_play.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard010/JavaScript/0062654_play.js
726 Bytes
| game.PlayScreen = me.ScreenObject.extend({ | |
| /** | |
| * action to perform on state change | |
| */ | |
| onResetEvent: function() { | |
| // load a level | |
| me.levelDirector.loadLevel("aquon"); | |
| // reset the score | |
| game.data.score = 0; | |
| // add our HUD to the game world {NOT CURRENTLY NEEDED - TO BE ADDED AGAIN (ADD A HUD SCRIPT!)} | |
| //this.HUD = new game.HUD.Container(); | |
| //me.game.world.addChild(this.HUD); | |
| }, | |
| /** | |
| * action to perform when leaving this screen (state change) | |
| */ | |
| onDestroyEvent: function() { | |
| // remove the HUD from the game world | |
| me.game.world.removeChild(this.HUD); | |
| } | |
| }); |