Yes, thats it. I want to make a jump n run style game, with a world like Worms, where you can destroy every pixel of the landscape.
I am facing 2 problems:
- Storing the world. Worms seem to used a bitmap or graphic and operate on a pixel level. I did the same in a test, I use a BufferedImage and
work with pixels and alpha. But worms has a limited map of maybe 800x600 or less pixels. A jump n run would be several screens wide, I cannot store this in memory, its like 3000 x 600 pixel and more.
I thought about making the world into slices of 200-400 pixels width and I need to do some extra work to operate over the borders of a slice. When I have an explosion on the border, I need to manipulate the current slice and the adjacent one. But its possible to handle that. I must restrict “going back” or “going left” in that case, so you cannot return to areas where you have already been, because I have to delete the Images I left behind to get memory free.
Do you have any good ideas how to manage a wide level which can be manipulated on a pixel level?
- When the player destroys the landscape with explosions, he might create a gap or hole to wide and deep to continue his way. The player can trap himself by creating unpassable gabs and such. I have 3 ideas so far
a) Some sort of climbing to get out of anything
b) Some sort of terrain changing weapon with unlimited “ammo” It can be used to create a ramp or stairs to get out of a hole.
c) Some sort of pixel physics. To make “loose” pixels fall down or to the side, so that they always form a slope of 45° which the player can master. I would use an algorithm which checks whether a pixel is free in the air and then make it fall. This works well for terrain but makes trouble with objects. A tree for example would have pixels hanging in the air, and I want them to stay there as long as the tree is not destroyed.
Do you have ideas? What would you like most? Worms had tools like drills and bungee ropes, which is category a. I just dont like this for a jump n run.
Version c is my gameplay favorite, but makes some trouble to decide when I want pixels to move / fall and when I want them to stay in place. And I cannot hold additional information besides the Image because I do not know if and where in the image a special object like a tree is.
-JAW