2d character adventure game..
Hi, my next project (thanks to noah.w, and several others who have helped me develp my previous games), is going to be a 2d character adventure game. I want to do this to learn how to do tile like map games without all the complicated code. Its going to be like Mario games for the old nintendo, and not like pokemons. For one part of the scenary I was going to just use clouds/sky as the background, and then the ground will just be grass that i'll make. But I was wondering how I would scroll the background. Like say I make the skyish background, and the guy is walking around and the sky scrolls down the screen and when the full image doesn't fill the screen, it puts the same one on one side to fill it all up. I was thinking of making to rectangles to hold the dimensions of the two parts of the sky and just scroll them and when one of them gets two far away it goes back to the finish. Hows that sound? I'll try it.
Any sugsetions would be cool.
One other thing, if I make a game targeted for PC's will it still run on a cell phone?
[1065 byte] By [
javatypoa] at [2007-9-28 1:01:36]

> One other thing, if I make a game targeted for PC's> will it still run on a cell phone?It should work, but you'd have a big screen area difference
Hi javaTypo,
I made a 2d left to right spaceship adventage game, and in the game I used the same method you had mention for the sky background which is using a whole image to cover up the screen bg then double that image size by two, so it got enough room to move for a while...and the tricky bit is to make the image at the back looks like connect to the front, this can be done by cut and paste with careful planning =).
But one disvantage of this is if you are using big size screen, then bigger image size you will needed and it could slow down the game speed.
I'm making an applet 350,350 and I kind of got it working, I just need to fix it up a bit. Speed is no problem. I'm making a Mario type game, except I dont know who the hero guy will be. I was thinking of just using a blob type guy.
> One other thing, if I make a game targeted for PC's
> will it still run on a cell phone?
No, J2ME's API (esp for graphics) are quite diffrent.
You can however then "port" it to a Cellphone, like I did with my J4K Entry, the basics did not take long, but then Cascade is a simple game.
Check out the J2ME MIDP 1.0 APIs & the Java 2 Micro Edition Wireless Toolkit.
mlka at 2007-7-7 20:36:29 >
