Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (601)
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] 2
1  Game Development / Newbie & Debugging Questions / Re: [UNSOLVED]Weird Screen Flicker problem when implementing multiple screens... on: 2013-04-18 19:42:54

Below is the show() part of my GameScreen:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
@Override
   public void show() {
      isActive = true;
   
      float w = Gdx.graphics.getWidth();
      float h = Gdx.graphics.getHeight();
      Gdx.gl.glClearColor(0, 0, 0, 1);
      Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
     
     
      //Initialize objects
      ball = new Ball();
      paddle = new Paddle();
      level = new Level();
                 
      camera = new OrthographicCamera(1, h/w);
      batch = new SpriteBatch();
      //Text stuff
      font = new BitmapFont();
      textWidth = font.getBounds(strBricks).width;
      textHeight = font.getBounds(strBricks).height;
     
      //Load level Bricks
      level.LoadBricks();
   }


I don't really know when this is called but it looks a little bit odd to me. I guess this is some rendering call. But why are you creating/initializing your stuff there? If that really is a rendering call then you are doing that every frame and that's not really good. Put your object creation somewhere else like in an init() method or whatever and only update objects that really have to be updated every frame in the show() method.
2  Discussions / General Discussions / Re: New feature: picture of the day on: 2013-02-16 21:37:08
Also, it might be awesome to link to the thread where the picture is posted, with most of the pictures i got curious about it orgin, most of the time i want to click it to see what game or program it is.

^ This would be really awesome.
3  Discussions / General Discussions / Re: Gaming contests for people under 18? on: 2013-02-02 21:58:46
Something like this, but covering a less complex topic and open for everyone would be cool imo. I think setting an age limit is a stupid idea. Being older may mean that you are able to produce higher-quality games, but it doesn't have to. And even if somebody who's older than 18 should win the contest than that's perfectly fine in my eyes. Contests of this kind are mainly not about winning but about gaining experience and stuff I guess.
4  Games Center / WIP games, tools & toy projects / Re: Pixely Adventure-thing on: 2013-02-02 21:46:23
Looks pretty promising. You should make some triggers that can only be activated by frozen bears.
5  Games Center / 4K Game Competition - 2013 / Re: Rainbow Road on: 2013-01-29 18:56:16
Simply epic. That was one of my favourite maps back then. Just one thing: Are the green shells target-following?
6  Discussions / General Discussions / Re: why are people trying to use Java2D to make games? on: 2012-12-26 01:04:05
Why is it important to learn how OpenGL works? I think the result is important, not the knowledge about the techniques under the hood.
Understanding "under the hood" is not for consumers/players, it's for your own sake. You need that to do something fancy like optimization.

Of course is it not for consumers. And of course does the understanding of OpenGL allow you to do optimizing. But libraries like libGDX or whatever already use efficient rendering methods. If I would learn how OpenGL works I might be able to re-produce something similar one day, but what would be the point of that then?



Wouldn't not learning how things work be the same as jumping into trigonometry without any understanding of anything such as algebra, multiplication, addition, subtraction, etc... be comparable to jumping into something that uses OpenGL without knowing anything about OpenGl? If so then it's a horrible idea to do so.

That's not comparable if you ask me. For algebra there is no 'easier way' or something. You are simply forced to learn it. But in the case of OpenGL you actually have libraries/frameworks which really simplify your work. Slick2D for example feels a lot like Java2D but uses OpenGL beneath. Do you have to know how OpenGL works there? No.
7  Discussions / General Discussions / Re: why are people trying to use Java2D to make games? on: 2012-12-26 00:13:29
But it must be said that if you're thinking of not bothering to learn how OpenGL works then Java is probably the wrong language for you in the first place, no?

Why is it important to learn how OpenGL works? I think the result is important, not the knowledge about the techniques under the hood. Once you released your game barely anyone will be interested in the libraries/frameworks you used and nobody will ask you about your OpenGL skills. Of course is it good to know how things work, but is it essential? I don't think so. And hell, we are programming in Java. A language that does most of the low level stuff like memory management and so on for you. It would be nice to know how OpenGL works, but I don't have the time, the will or the need to learn it.
8  Discussions / General Discussions / Re: Windows 8 thoughts and suggestions on: 2012-11-26 20:34:19
The only thing that annoys me about Windows 8 is the fact that you are not able to change the window title bar color. It is almost impossible to read dark grey text on a black background.

My title bars aren't black, they're light grey, very readable.  The default color scheme is "automatic" which tries to use a complementary color to your wallpaper.  You can change it with the exact same interface: right-click on desktop, "personalize", click "colors" at the bottom

I've been using Windows 7 long enough to know that. No, I changed my window color to black since that looks really good with my current wallpaper. The title bar looks a little bit like this:


[size=8pt](That's terrible, I know.)[/size]



I have one question for those you have Win8. Can I switch off the "start screen" so it will always go to the desktop? I hate the touch driven UI so much Sad

I've used something called 'Classic Shell' some time ago. It doesn't only add a start menu to Windows 8 but it will also hide the metro when you start your PC.
9  Discussions / General Discussions / Re: Windows 8 thoughts and suggestions on: 2012-11-23 22:20:29
I love it. It boots a lot faster, runs smoother and is a lot more stable than Windows 7. After a while the metro will not really bother you anymore and since a lot of those computer manufacturers ship their custom start menu with Windows 8 it isn't a problem at all. The only thing that annoys me about Windows 8 is the fact that you are not able to change the window title bar color. It is almost impossible to read dark grey text on a black background.
10  Discussions / General Discussions / Re: What do you look like? on: 2012-11-20 18:04:01

Here in Austria, yes. 6 months of military service or 9 months of civilian service. For males only (I bet that's the revenge of the female gender for not being allowed to post on JGO, thanks for sending me to war, Riven)

There will be a voting whether the military service will be removed or not in January or something. I guess that comes too late for you :p
11  Discussions / Miscellaneous Topics / Re: What music do you listen to while you code? on: 2012-11-18 09:27:19
Quote
The only non lyrical songs I am listening to are some dubstep/drum 'n bass songs and the album of a band called 'BBNG'.
This song is dope. You would probably dig this album, too:
http://www.youtube.com/watch?v=vhDnWLfm07o

I already knew UWM. But thanks for the 2nd link. That's a really lovely song. I will listen to more songs of that album for sure.
12  Discussions / Miscellaneous Topics / Re: What music do you listen to while you code? on: 2012-11-17 21:52:18
Pretty much everything in my case. I like Rammstein but also Infected Mushroom. Lately I've even been listening to the soundtrack of 'Jesus Christ Superstar' [size=6pt](AWWW SOOO EPIC!!!!)[/size]. The only non lyrical songs I am listening to are some dubstep/drum 'n bass songs and the album of a band called 'BBNG'.
13  Discussions / Miscellaneous Topics / Re: What's your favorite game. on: 2012-11-10 20:11:29
My by far most favourite game is Gothic:


I also like Majoras Mask/Ocarina of Time and the Stronghold series.
14  Games Center / Showcase / Re: SKIRMISH on: 2012-11-03 13:52:44
The controls are indeed unusual. Did you ever consider such a power-of-the-shot bar like in Worms for example? Besides the controls the only little problem I noticed was the pathfinding of the AI. They sometimes drove into walls and slided along them a bit till they continued on their path.
15  Discussions / General Discussions / Re: Game Maker and similar tools on: 2012-11-01 18:10:48
I guess it always depends on how familiar you are with specific tools. If you are able to make good looking games with GameMaker and if the license costs aren't too high you should really go for it. Barely anyone is interested in the tools/programming language you used to create your game. Of course is it quite important to know what's going on under the hood, but not exactly necessary.

I guess there is also a cryengine sdk but who really uses that anyway.  Cheesy

There is. But as far as I know the license for the cry engine costs ~1.000.000$.
16  Games Center / WIP games, tools & toy projects / Re: - Space based first person shooter - Haxel on: 2012-10-29 17:40:15
Looks really promising. Keep it up!
17  Games Center / Showcase / Re: My first game - SplatterPix on: 2012-10-19 15:01:31
The sounds are indeed awesome. Nice and simple, keep it up!
18  Games Center / WIP games, tools & toy projects / Re: Tiny Dungeons - WIP on: 2012-10-18 12:15:45
Smexy!
19  Game Development / Newbie & Debugging Questions / Re: Some LWJGL 3d help? on: 2012-10-09 18:22:53
Some things:

First of all, you forgot glClear. You have to call it in order for the quad to be visible. So your code should look like this:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
      while (!Display.isCloseRequested()) {
         glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
         
        render();
         
         Display.update();
         Display.sync(60);
         
         if (Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) {
            System.exit(0);
         }
      }





The second thing; The coordinates of your quad were pretty weird, especially the z-coords:

1  
2  
3  
4  
glVertex3f(0.0f, 1.0f, 0.0f);
glVertex3f(0.0f, 1.0f, -1.0f);
glVertex3f(1.0f, 1.0f, -1.0f);
glVertex3f(1.0f, 1.0f, 0.0f);


I think you missunderstood something here. The function's parameters are like following:
glVertex3f(x, y, z);

The z-axis is in your case the depth of the whole scene. The way you specified the z-coords would mean that your quad had some weird rotation. Also, some coordinates have the same x and y coordiantes which doesn't really make sense in this case. I changed the coordinates a little bit so that the quad gets displayed:

1  
2  
3  
4  
5  
6  
glBegin(GL_QUADS);
         glVertex3f(-1.0f, 1.0f, -5.0f);
         glVertex3f(1.0f, 1.0f, -5.0f);
         glVertex3f(1.0f, -1.0f, -5.0f);
         glVertex3f(-1.0f, -1.0f, -5.0f);
glEnd();




The third thing; You don't seem to be really familiar with the OpenGL coordinate system or other basic stuff. You better stick to 2D rendering for a little bit longer to gain more knowledge.



The fourth thing; Immediate mode is wicked (yes, wicked)! It appeared in the first OpenGL version (if I'm right) which was released around 1992. I think it should be quite obvious that it is by now totally deprecated. In newer OpenGL versions these functions don't even exist anymore. You should better skip Immediate-Mode rendering and start with more modern techniques like using VAOs & VBOs or whatever.



Edit: This post should help you: http://www.java-gaming.org/topics/hello/24411/msg/205121/view.html#msg205121
20  Discussions / General Discussions / Re: I'm doing it _again_ on: 2012-10-09 17:46:56
Austrians unite!

Wait wait wait wait wait.... YOU actually live in Graz? Which is like.. not even 30 minutes away from me? Oh boy.. I should have sent an internship application to you 2 months ago  Grin

Currently waiting for the obligatory 6 months of lovely military, starting in January

You both live near Graz? Steiermark ftw <3



The download link works now. Thanks for updating that!
21  Discussions / General Discussions / Re: I'm doing it _again_ on: 2012-10-09 14:33:49
Why didn't you make this post in the 'WIP' section?

The game looks nice, but the download link doesn't work for me (Windows).
22  Games Center / WIP games, tools & toy projects / Re: [Beta] Blocked! on: 2012-10-07 15:48:32
I found some little bugs:
  • I missclicked in the last level and therefore wasted some money. When I pressed restart, some blocks just didn't get deleted. Some did, but I was not able to place blocks on the empty space anymore. I was forced to press restart 2 times in order to fix everything.
  • After my first fail there was a 2nd exit somewhere in the blocks on the right.
  • I sometimes spawned in those rocks. The character found his way but it sure did look weird.

23  Discussions / General Discussions / Re: Tremble, mortals! I have enslaved your administrator on: 2012-10-01 18:07:45
Awesome! Congratulations.
24  Games Center / Showcase / Re: Plague on: 2012-10-01 17:34:43
Doesn't seem to work for me. Gets stuck on the "Plague is Loading" screen and then it turns grey. Command line shows

I had the same problem with the first version. With the new version I am able to start the game, however the flickering which was mentioned above appears (using W7 64Bit).
25  Games Center / WIP games, tools & toy projects / Re: [Tool] DOPE on: 2012-09-19 15:51:12
I really liked Kismet back then when I was playing around with the UDK. Nice work!
26  Games Center / Featured Games / Re: Daedalus on: 2012-09-04 01:48:56
Just one question : did you connect an internet server or did you start a local game ?

A local game.
27  Games Center / Featured Games / Re: Daedalus on: 2012-09-03 23:11:30
Oh I love this game. It's really polished, you got some nice sound effects and it runs really smooth on my computer.
The only thing I did not like about your game was the AI. I think it was quite hard for 'easy' [size=6pt](yes I'm a noob :x)[/size]. Bots did sometimes not turn around when you shot them and that was quite weird. Also, I would like to see a cross hair (or whatever). Makes me feel better to know where I am aiming to  Tongue
28  Games Center / Showcase / Re: Darwin's Apple - LD48 "evolution" on: 2012-09-02 01:30:00
What OS are you on and were you playing Applet or JAR?

Windows 7 Home Premium 64 Bit. I played the JAR version.
29  Games Center / Showcase / Re: Darwin's Apple - LD48 "evolution" on: 2012-08-30 21:02:10
The sounds are somehow bugged. For me one sound froze so it sounded like a frog was hit by a car dozens of times. Also the sound did not stop playing after I closed the game. I had to kill the java process to make it stop.

Besides that I really like the look of your game.
30  Discussions / Java Gaming Wiki / Re: World save system on: 2012-08-27 20:40:44
You posted in the wrong section. Better make your topic here:

http://www.java-gaming.org/boards/newbie-debugging-questions/12/view.html
Pages: [1] 2
 

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

The first screenshot will be displayed as a thumbnail.

rwatson462 (30 views)
2014-12-15 09:26:44

Mr.CodeIt (20 views)
2014-12-14 19:50:38

BurntPizza (42 views)
2014-12-09 22:41:13

BurntPizza (76 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (51 views)
2014-12-03 16:27:13

CopyableCougar4 (48 views)
2014-11-29 21:32:03

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

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

toopeicgaming1999 (30 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

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
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!