Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
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  
  Need some advice in creating my game the right way.  (Read 2477 times)
0 Members and 1 Guest are viewing this topic.
Offline zammbi

JGO Coder


Medals: 4



« Posted 2008-04-21 13:59:22 »

Hey all
Currently I'm a little stuck on how to create my game the right way. I been searching a solution for most of today, and not really finding anything I want.
So currently I have a game that uses a JFrame which I use for the Gui (buttons, chat window, etc) then I have a JPanel for the game window itself. Problem though using a JPanel I don't have BufferStrategy, I created my own basic one but it uses twice the cpu and full screen mode isn't working well, instead of using canvas. I was using canvas at first but that's heavy weight and my internal frames weren't showing on top(which are private message windows). Oh and the reason I don't render the game on the JFrame is because of deadlocks with the textboxes.


I would like some suggests on the better way of building this. Because I couldn't find anything on google with a example that could help me.
If you want to have a look at my code and improve it that way, I'll post what ever is needed.

Edit: Moved post to here.

Current project - Rename and Sort
Offline stef569

Junior Member





« Reply #1 - Posted 2008-04-22 11:40:35 »

You can look at this discussion:
http://www.java-gaming.org/forums/index.php?topic=15140.15
Online Riven
« League of Dukes »

JGO Overlord


Medals: 439
Projects: 4


Hand over your head.


« Reply #2 - Posted 2008-04-22 12:53:56 »

Before doing anything the right way, I'd advice you to just do it your way.

1. Get it working
2. Get it fast

Just try to get some interactive elements in your game. No matter how ineffictient you've written it, it will work and wou probably won't even notice the bad performance as there is not enough happening ingame at once.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline zammbi

JGO Coder


Medals: 4



« Reply #3 - Posted 2008-04-22 15:55:51 »

Thanks so much, a lot goes over my head atm but I will have to study it.
Riven for to get it working I need to do this. I want to support full screen and I want to support internal frames and I don't want to create my own textboxs, buttons, etc heh.

Current project - Rename and Sort
Offline stef569

Junior Member





« Reply #4 - Posted 2008-04-22 17:51:46 »

Chapter5 on http://www.brackeen.com/javagamebook/#download includes a full screen game,
think you might be interested in the ScreenManager.

good luck with your game
Offline zammbi

JGO Coder


Medals: 4



« Reply #5 - Posted 2008-04-23 06:04:29 »

This is just making my game more advance when it doesn't need too, both idea's were nice but I had horrible flickering. So I think I'll go back to canvas and for my private messages, open them outside the game canvas and don't let them move over the the canvas or support pm's as a tab on the chat.
I wish there was a lightweight canvas though, would make things a lot more simple...
Anyway thanks for the help. Once I'm finished I'll gladly show off my game client. I think I done fairly well for my first game.

Current project - Rename and Sort
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (145 views)
2013-05-17 21:29:12

alaslipknot (153 views)
2013-05-16 21:24:48

gouessej (184 views)
2013-05-16 00:53:38

gouessej (178 views)
2013-05-16 00:17:58

theagentd (188 views)
2013-05-15 15:01:13

theagentd (173 views)
2013-05-15 15:00:54

StreetDoggy (216 views)
2013-05-14 15:56:26

kutucuk (241 views)
2013-05-12 17:10:36

kutucuk (239 views)
2013-05-12 15:36:09

UnluckyDevil (245 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.081 seconds with 21 queries.