about a half year ago , i started to create my first sidescroller. Mainly for fun,practise and to improve my coding skills. My aim was to generate maps from simple images on which you can walk around. Also the collectables and stuff should spawn form that image.
After a view weeks without sleep the child learned to walk but the code was so chaotic that i decided to recode everything. This is the result.
I run through a 512x512 png and check the rgb8 values.
Depending on that value, i spawn a standard collision block, water blocks, plants or items.
I know that having all collision blocks in only one ArrayList<Block> is not the best solution.
I tried the 2D array way but.... näh here you have , it works. : )http://www.youtube.com/v/mn2c_EmVwDM?version=3&hl=en_US&start=
The BETA got only four main items and no exact ending.
Anyway, it feels smooth to play. Enjoy