Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  "Starcraft" like 2D game ?  (Read 3004 times)
0 Members and 1 Guest are viewing this topic.
Offline [twisti]

Junior Newbie

« Posted 2006-02-07 21:05:35 »


first, please excuse me if this has been answered elsewhere, but I haven't had much luck finding anything.

I'm trying to tinker together a game engine that has functionality such as games like StarCraft or SimCity. I definitly do not want any 3D junk, and I don't want to make it have an openGL requirement either. I tried making a Swing frame (I'd like the framework to be swing-like for things such as interface and menus), and draw the 2D display myself with buffered images by overriding the paint method of a JFrame. However, that appears to be incredibly slow, down to maybe 5 frames per second, which is a problem when I have moving things.

Anyone got a suggestion ? I don't mind reading up some, but as said, I have yet to find a project or a tutorial that does anything like what I want. Most things are either openGL or incredibly primitive pong-like-games.
Offline Ask_Hjorth_Larsen

Junior Devvie

Java games rock!

« Reply #1 - Posted 2006-02-08 01:41:10 »

Now the standard question: do you create your images using the createCompatibleImage method of a GraphicsConfiguration object? If not, this might increase performance considerably.

Do you apply any transformations to your images?

Provide more information about your rendering procedure.
Offline [twisti]

Junior Newbie

« Reply #2 - Posted 2006-02-08 02:56:52 »

Thats really minor details which I'm willing to work out on my own, the question was more if doing it like this (overriding the paint method of a JLabel and working with the graphics object) was the proper way to do it or if there are other, better ways.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Linuxhippy

Senior Devvie

Medals: 1

Java games rock!

« Reply #3 - Posted 2006-02-08 07:03:30 »

1.) Don't use "passive" rendering, instead use BufferStrategy and paint directly to that.
2.) Use java-1.5 (or higher) + transparent only images if you want to get hw-accalerated BufferedImages. Transulescent images (half-transparent) are only accalerated with OpenGL or D3D backends. (or some unsupported switches).

What you would like to archive should be definitivly doable with todays standard hardware and java.

Good luck, lg Clemens
Pages: [1]
  ignore  |  Print  

EgonOlsen (79 views)
2018-06-10 19:43:48

EgonOlsen (59 views)
2018-06-10 19:43:44

EgonOlsen (78 views)
2018-06-10 19:43:20

DesertCoockie (261 views)
2018-05-13 18:23:11

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

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

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

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

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

Solater (177 views)
2018-03-17 05:04:08
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!