Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (671)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
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: Double-Buffering on: 2004-03-04 14:23:57
In Binary_Chester's code he is creating a new image for the backbuffer on every frame. That's a big no-no. The backbuffer should be created once on start-up and cleared each frame with a big fillRect().

Yes, you are right. I typed just the code in and assumed that someone who is familar with java sees the WAY how it works. Of course it is not a very good way to create with each paint a new Image... ;)
2  Java Game APIs & Engines / J2ME / Re: Double-Buffering on: 2004-03-04 04:40:57
This depends on the mobile! Siemens up to the SL55, for example, doesn't implement DoubleBuffering, so you have to do it on your own.

Ciao, Chess
3  Java Game APIs & Engines / J2ME / Re: Double-Buffering on: 2003-06-02 10:20:33
Normaly you should do something like this in your Canvas-Class:

// declare some member:
private Image scene;
private Graphics g;

Now you do all your painting on your self created g-Context, like this:

public void paint(Graphics gr) {

   scene = Image.createImage(getWidth(), getHeight());
   g = scene.getGraphics();

   g.drawLine( getWidth() / 2, 0, getWidth()/2, getHeight() -1);
   g.drawLine( 0, (int)line, getWidth(), (int)line );

   enemyList.paint( g );

   player.paint( g );

   // draw scene:
   gr.drawImage(scene,0,0, Graphics.TOP | Graphics.LEFT );

Hope this helps!
4  Java Game APIs & Engines / J2ME / Re: Development IDEs for J2ME on: 2003-04-17 18:40:34
I use JBuilder 8 with MobileSet and Siemens SMTK and it works fine but i want to change to Eclipse and have done some MIDlets with Eclispe. But i can't figure out how to connect Eclipse' debugger to the emulator.
If i start the emulator in debug-mode it seems to wait for a connection, if i try to connect Eclipse' debugger remote to the emulator, it quits immediatly and Eclipse says "kvm terminated". With JBuilder everything works fine.

Has someone out there a solution for me?

ciao, Chess

(sorry for my bad english)
Pages: [1]
IanParcs (43 views)
2016-04-18 14:18:53

KaiHH (42 views)
2016-04-18 08:35:41

KaiHH (73 views)
2016-04-15 12:43:58

theagentd (74 views)
2016-04-14 02:16:17

theagentd (88 views)
2016-04-14 02:15:43

IanParcs (102 views)
2016-04-12 03:51:16

IanParcs (45 views)
2016-04-12 03:50:03

IanParcs (41 views)
2016-04-12 03:49:54

IanParcs (37 views)
2016-04-12 03:49:52

IanParcs (47 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 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!