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 21: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); ball = new Ball(); paddle = new Paddle(); level = new Level(); camera = new OrthographicCamera(1, h/w); batch = new SpriteBatch(); font = new BitmapFont(); textWidth = font.getBounds(strBricks).width; textHeight = font.getBounds(strBricks).height; 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 22: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 22: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.
|
|
|
|
|
6
|
Discussions / General Discussions / Re: why are people trying to use Java2D to make games?
|
on: 2012-12-26 02: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 01: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 21: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 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 23: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 19:04:01
|
upcoming military service
 There is still a military service in your country. 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
|
|
|
|
|
12
|
Discussions / Miscellaneous Topics / Re: What music do you listen to while you code?
|
on: 2012-11-17 22: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'.
|
|
|
|
|
14
|
Games Center / Showcase / Re: SKIRMISH
|
on: 2012-11-03 14: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 19: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.  There is. But as far as I know the license for the cry engine costs ~1.000.000$.
|
|
|
|
|
19
|
Game Development / Newbie & Debugging Questions / Re: Some LWJGL 3d help?
|
on: 2012-10-09 20: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 19: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  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!
|
|
|
|
|
22
|
Games Center / WIP games, tools & toy projects / Re: [Beta] Blocked!
|
on: 2012-10-07 17: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.
|
|
|
|
|
24
|
Games Center / Showcase / Re: Plague
|
on: 2012-10-01 19: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).
|
|
|
|
|
27
|
Games Center / WIP games, tools & toy projects / Re: [WIP] Daedalus
|
on: 2012-09-04 01: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 
|
|
|
|
|
29
|
Games Center / Showcase / Re: Darwin's Apple - LD48 "evolution"
|
on: 2012-08-30 23: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.
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|