Page 1 of 1
platformer game
Posted: Tue Oct 28, 2014 6:35 pm
by KG_is_back
A simple platformer game. You may specify platforms and player position. Moving happens via arrow keys. The collision physics is not very smooth, but it doesn't matter that much.
Re: platformer game
Posted: Tue Oct 28, 2014 9:32 pm
by Exo
Very nice thanks KG,
Getting some errors on load, I had to cut and paste the map & specs module to get rid of a nil class error.
And also there is an EncodingError (in method 'load state') message inside the Ruby component with the physics inside. which is odd because it doesn't look like there is a loadstate method defined.
Re: platformer game
Posted: Tue Oct 28, 2014 10:04 pm
by billv
Nice start KG....can almost see a "pacman" game in there too..

Re: platformer game
Posted: Tue Oct 28, 2014 11:01 pm
by KG_is_back
Exo wrote:Very nice thanks KG,
Getting some errors on load, I had to cut and paste the map & specs module to get rid of a nil class error.
And also there is an EncodingError (in method 'load state') message inside the Ruby component with the physics inside. which is odd because it doesn't look like there is a loadstate method defined.
I noticed these errors too. The loadstate error comes from the hidden method that save inputs and outputs - some variables can be passed but not saved and loaded. You might recall some time ago I posted an example where I tried to pass paths and it gave the same error, so I declared custom (dummy - empty) load and save functions for the marshal routine.
I noticed the errors when I reopened the schematic after publishing it.
Re: platformer game
Posted: Wed Oct 29, 2014 12:12 pm
by Walter Sommerfeld
Hi KG,
nice example...
i got rid of the errors with 'After Load' triggering 1st the 2 arrays in the 'map & specs' mod!
Keep on doing
Re: platformer game
Posted: Wed Oct 29, 2014 6:39 pm
by billv
For reference, I didn't use a afterload.
In the "maps and specs" module, I clicked reset, and the "Float Array Input"
until values appeared in the watch.
Then in main module,turned the ruby element off/on.
Loads up fine.