Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
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]
DesertCoockie (22 views)
2018-05-13 18:23:11

nelsongames (73 views)
2018-04-24 18:15:36

nelsongames (68 views)
2018-04-24 18:14:32

ivj94 (751 views)
2018-03-24 14:47:39

ivj94 (81 views)
2018-03-24 14:46:31

ivj94 (605 views)
2018-03-24 14:43:53

Solater (97 views)
2018-03-17 05:04:08

nelsongames (170 views)
2018-03-05 17:56:34

Gornova (388 views)
2018-03-02 22:15:33

buddyBro (1048 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!