Show Posts
|
|
Pages: [1]
|
|
1
|
Java Game APIs & Engines / J2ME / Re: Sprite movement in scrollable background
|
on: 2003-06-25 15:34:17
|
|
I'm not sure if i understand what you are trying to do. But the best way to handle a scrolling engine is to use a camera.
This camera would be a class that you design, it has an area (which is the maximum visible area of the mobile phone) and what you do is move the camera. So lets say your sprite moves a few pixels to the right, you just move the camera with him.
Inside this camera class you would check to see that X and Y are >=0 and the bottom corner of the camera wont pass through the maximum length of the map.
This gives you complete independency and allows you to move the camera at any time regardless of the sprite ( perfect for a story driven thing where if lets say you want to move the camera to a different sprite, its easy)
Also, by doing what I said about checking the values, when the player arrives at the edge of the map, the map would stop scrolling and the sprite would move from the middle of the screen (like in zelda). This is exactly how a 2d engine should be written. Good luck (and I hope that helps)
|
|
|
|
|
3
|
Java Game APIs & Engines / J2ME / Re: Curious..
|
on: 2003-06-25 00:32:10
|
|
From all the examples I've seen only use the MIDP package, and if I use something like notepad, or just a generic text editor, would that be all I need? I dont want some big bulky disgusting IDE that makes me want to puke (IMO). The MIDP also has MIDP.EXE which seems to be a Cell Phone emulator (generic?). So I dunno, maybe you can explain it better.
|
|
|
|
|
4
|
Java Game APIs & Engines / J2ME / Curious..
|
on: 2003-06-24 03:55:37
|
|
I just recently started getting interested in games development using J2ME. My question is probably rather silly, but I am a little confused on it.
When making games for these devices, which technology package should you use? More than one? You still require the the J2SE dev kit in order to compile your code the documentation says, but for games what packages are required, would all three (CLDC, MIDP, and Wireless Toolkit) be required? The documentation seems to indicate that the MIDP reqlies on the CLDC, and the WT relies on the MIDP.. so I would think all would be needed, or not? *confusion* hehe, if someone can explain I'de appreciate it.
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|