Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (482)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / J2ME / Re: Sprite movement in scrollable background on: 2003-06-25 13: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)
2  Java Game APIs & Engines / J2ME / Re: Curious.. on: 2003-06-25 00:25:33
I was actually asking if it could be possible to just use the MIDP package.
3  Java Game APIs & Engines / J2ME / Re: Curious.. on: 2003-06-24 22: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 01: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.
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CopyableCougar4 (13 views)
2014-08-22 19:31:30

atombrot (28 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (61 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!