Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (525)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (592)
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 2817 times)
0 Members and 1 Guest are viewing this topic.
Offline zammbi

JGO Coder


Medals: 4



« Posted 2008-04-21 11: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 Devvie





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

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

« JGO Overlord »


Medals: 833
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #2 - Posted 2008-04-22 10: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
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 13: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 Devvie





« Reply #4 - Posted 2008-04-22 15: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 04: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.

 

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

The first screenshot will be displayed as a thumbnail.

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

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

toopeicgaming1999 (12 views)
2014-11-26 15:20:08

SHC (25 views)
2014-11-25 12:00:59

SHC (24 views)
2014-11-25 11:53:45

Norakomi (29 views)
2014-11-25 11:26:43

Gibbo3771 (24 views)
2014-11-24 19:59:16

trollwarrior1 (37 views)
2014-11-22 12:13:56

xFryIx (76 views)
2014-11-13 12:34:49

digdugdiggy (53 views)
2014-11-12 21:11:50
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!