Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (552)
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 / Java 2D / performance question on: 2003-04-01 10:18:34
Hi
I'm programmig a 2d game and i use a big background image as my map. I use the  BufferedImage.getRGB(int x, int y)  method to get data from my map. I want to transfer the data from the image to some other place where i can access the data faster. The question is which method is the best. I was thinking to use a treemap but i am not sure. Can somone help me please, and also show me te code to do it please

Thanks in advance
2  Java Game APIs & Engines / Java 2D / Re: java.lang.OutOfMemoryError on: 2003-03-07 06:45:55
thanks for helping. I try to unload my animation pictures i dont need and break up my map in smaller sections.
3  Java Game APIs & Engines / Java 2D / java.lang.OutOfMemoryError on: 2003-03-06 09:01:11
I get that message when i try to play my game. I have searched the web and found

 1. increase the memory allocated (by using the -Xms and/or -Xmx options to the "java" command)

2. rewrite your application such that it uses less memory

It is my map image which when i make it to big i get the error. I can play with small maps. I'm programming a 2d game and i make the maps in photoshop. But i dont know what format i should use and bit depth. I want to use big maps but not increase the memory allocated to the java command. Can somone help me find the optimal images i should use, please ?
4  Java Game APIs & Engines / Java 2D / Image problem on: 2003-02-19 08:44:48
Hi
I'm programming a 2d shoot em up game in java and i have som problem with my images. I use a gif picture as a map and when i update the position u can see the last frame shine through, the map doesnt get very sharp. It's hard to explain. You can easily see it at the edges. I use fullscreen mode and dubbelbuffering. I have tried with more buffers but it doesnt work. If I slow down the game it helps a bit.

I use  a map movement fornula: where it's black you cant move to, it's my first game so if there is a better way please let me know

My fps doesn't get any higher than my refreshrate on the screen, why is it so?

Here is the game, i'm sorry if the comments are in swedish
http://medlem.spray.se/klawz/zippa.zip

Thanks in advance
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 (23 views)
2014-08-22 19:31:30

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

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

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

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

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

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

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

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

Norakomi (41 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!