Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (601)
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  Game Development / Newbie & Debugging Questions / gui/menu in a map-based game on: 2004-01-02 09:02:54
Having a tilemap-based game I want to show a menu at the bottom or right side of the screen.
What would be the best way of implementing such a menu?
At the moment I have my own component classes (buttons, label,..) adding these objects to a manager class which calls their draw method (and also the draw methode of the tilemap object). But doing this it seems a bit overloaded to me and not very performance friendly.
What is the common way of realizing a menu or information panels beside the outstanding central tilemap?
2  Java Game APIs & Engines / Java 2D / Re: rendering image doesn't work every time on: 2003-10-03 15:38:25
Uhhuhuuuuu, that hurts. Thanks, man.
3  Java Game APIs & Engines / Java 2D / Re: rendering image doesn't work every time on: 2003-10-03 14:56:24
with Toolkit.getDefaultToolkit().getImage(...);
4  Java Game APIs & Engines / Java 2D / rendering image doesn't work every time on: 2003-10-03 13:18:44
Hi,
I'm having the following strange problem (sometimes it works sometimes not).
Every tile of my map is prerendered at the beginning of the game:

1  
2  
3  
4  
5  
6  
7  
8  
private void prerender(int iTile) {
     BufferedImage renderedTile = mGfxConfig.createCompatibleImage(Tile.WIDTH, Tile.HEIGHT, Transparency.BITMASK);
     Graphics2D g2D = renderedTile.createGraphics();
     g2D.drawImage((Image) mTileImages.get("plain"), 0, 0, null);
     //...
     mRenderedTiles.put(new Integer(iTile), renderedTile);
     g2D.dispose();
}


Ok. Here's the method putTile which is called by the main render loop:

1  
2  
3  
4  
5  
public void putTile(Graphics g, int x, int y, int iTile) {
     if(!mRenderedTiles.containsKey(new Integer(iTile)))
           prerender(iTile);
     g.drawImage((BufferedImage) mRenderedTiles.get(new Integer(iTile)), x, y, null);
}


Ok, now the problem is: sometimes it works but often it doesn't. Sometimes mRenderedTiles contains just empty images with nothing painted on.
What could be the problem?
5  Java Game APIs & Engines / Java 2D / Re: Erasing transparent images on: 2003-08-25 12:13:44
hmm. thanks. but that was my starting point a few posts ago:

Quote
Hmm. I just tried to create a simple transparent managed image using the suggested code:

1  
getGraphicsConfiguration().createCompatibleImage(width,height,Transparency.BITMASK); 


...but it doesn't work; compiler says "not implemented yet" Huh

what's the deal? how do i create a transparent managed image?


in order to receive response i expand the field of questions:
could my ati graphics card cause the java.lang.internalerror: not implemented yet?
6  Java Game APIs & Engines / Java 2D / Re: Erasing transparent images on: 2003-08-25 10:58:44
hmmm. maybe somebody missed the question: how do i create a transparent managed image?

i first thought of starting a new thread in the newless clewbies section, but even here... where are you guys?
7  Java Game APIs & Engines / Java 2D / Re: Erasing transparent images on: 2003-08-22 20:12:07
oh, yes of course, the jre.
i use the jre 1.4.2 and windows xp. there shouldn't be any problem, right?
8  Java Game APIs & Engines / Java 2D / Re: Erasing transparent images on: 2003-08-22 10:50:18
Hmm. I just tried to create a simple transparent managed image using the suggested code:

1  
getGraphicsConfiguration().createCompatibleImage(width,height,Transparency.BITMASK); 


...but it doesn't work; compiler says "not implemented yet" Huh

what's the deal? how do i create a transparent managed image?
9  Games Center / Archived Projects / Re: RPG Game... on: 2003-05-12 14:25:22
Sorry, but I have to mention that this is NOT a game. It's just like throwing a card game on the floor and picking it up again.
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.

rwatson462 (29 views)
2014-12-15 09:26:44

Mr.CodeIt (20 views)
2014-12-14 19:50:38

BurntPizza (40 views)
2014-12-09 22:41:13

BurntPizza (76 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (50 views)
2014-12-03 16:27:13

CopyableCougar4 (47 views)
2014-11-29 21:32:03

toopeicgaming1999 (114 views)
2014-11-26 15:22:04

toopeicgaming1999 (102 views)
2014-11-26 15:20:36

toopeicgaming1999 (30 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

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