Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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
Quote
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.setStrokeStyle(Graphics.DOTTED);
   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]
 

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

The first screenshot will be displayed as a thumbnail.

Longarmx (46 views)
2014-10-17 03:59:02

Norakomi (37 views)
2014-10-16 15:22:06

Norakomi (28 views)
2014-10-16 15:20:20

lcass (32 views)
2014-10-15 16:18:58

TehJavaDev (62 views)
2014-10-14 00:39:48

TehJavaDev (62 views)
2014-10-14 00:35:47

TehJavaDev (52 views)
2014-10-14 00:32:37

BurntPizza (70 views)
2014-10-11 23:24:42

BurntPizza (40 views)
2014-10-11 23:10:45

BurntPizza (82 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!