Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (686)
Games in Android Showcase (198)
games submitted by our members
Games in WIP (758)
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 3188 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:
Offline Riven

« JGO Overlord »

Medals: 1238
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 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.

roseslayer (488 views)
2016-08-06 11:43:29

roseslayer (446 views)
2016-08-06 09:43:11

xTheGamerCodes (520 views)
2016-08-04 15:40:59

xTheGamerCodes (513 views)
2016-08-04 15:40:24

orrenravid (861 views)
2016-07-16 03:57:23

theagentd (940 views)
2016-07-11 14:28:54

Hydroque (1034 views)
2016-07-06 05:56:57

Hydroque (1022 views)
2016-07-03 08:52:54

GrandCastle (838 views)
2016-07-01 09:13:47

GrandCastle (640 views)
2016-07-01 09:09:45
Rendering resources
by Roquen
2016-08-08 05:55:21

Rendering resources
by Roquen
2016-08-08 05:52:42

Rendering resources
by Roquen
2016-08-08 05:50:38

Rendering resources
by Roquen
2016-08-08 05:49:53

Rendering resources
by Roquen
2016-08-08 05:32:39

Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42 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!