Ambiera ForumDiscussions, Help and Support. |
|
| [ 1 2 ] Page 2 of 2 |
|
|||||
|
Ah ok, I see. There probably was a .js file in the folder there .exe is located, named same as .exe. Like quit.exe and quit.js. StateMachine definition might be in that file. The only requirement is that the js file is named same as .exe. So "game.exe" and "game.js" you got the idea. If you don't want it in a separate file, move all contents of it to before first draw -> execute js. |
||||
|
wrote: Ah ok, I see. There probably was a .js file in the folder there .exe is located, named same as .exe. Like quit.exe and quit.js. StateMachine definition might be in that file. The only requirement is that the js file is named same as .exe. So "game.exe" and "game.js" you got the idea. If you don't want it in a separate file, move all contents of it to before first draw -> execute js. Ok, just figured out what I needed to do. There are three files all named the same, in the Quit Coppercube folder. The .ccb, .exe, and .js file. To test this, I copied the entire Quit folder to another folder and then made my changes to the original file. And it worked. Now I need to make the changes to the character behavior .js file, changing the key codes from WASD, to the arrow keys, and see if that works. |
||||
|
Ok, I've made progress... Here is the page where the Arrow Key Codes can be found: https://stackoverflow.com/questi... You need to edit the character behavior file to change the codes from WASD to Up, Left, Down, and Right. Just the numbers (codes), nothing else. Here is the .ZIP file containing the updated game (.ccb and .exe) with music, Esc key, arrow key functions, and Goal sound effects (whoosh and whoo!): https://files.catbox.moe/eu2blz.... My next suggestion would be to add voice effects for jumping and falling. Falling would, naturally, end in the screen fading to black and game restarting from the beginning point, which also randomizes the jump squares. Reaching the goal should end with the game giving you a congratulatory message and restarting the game (a type of "progressing to the next level"). |
||||
| [ 1 2 ] Page 2 of 2 |
|
|