Show Posts
|
|
Pages: [1] 2 3 ... 11
|
|
1
|
Games Center / WIP games, tools & toy projects / Re: Deathsiege
|
on: 2013-05-19 00:32:01
|
Alright, so the weekly update!  Changelog: - Added sphere-plane intersection for walls, floors, and ramps - Added kages - Added basic spawning - Optimized rendering - Added sentry guns - Redesigned trees - Added retrievable ammo    
|
|
|
|
|
5
|
Games Center / WIP games, tools & toy projects / Re: Deathsiege
|
on: 2013-05-10 07:09:53
|
I could also provide some pixel art. PM me if your interested. Anyway, looks okay. Seems like a good idea. I would really get some better, and more consistent art though. The difference in resolutions makes my eyes hurt.  Yeah, sorry about that. Right now, there are 3 different art styles, 2 randomly from the internet, and 1 from mine. I'm redoing most of the textures right now, and if those turn out to be horrible, I'll get some help from you guys. One thing I would really recommend is if you changed the sky color, and you could also enable GL_FOG. I'd put this at the beginning of your main class. 1 2 3 4 5 6
| private static final float fogNear = 12f; private static final float fogFar = 17f; private static final Color fogColor = new Color(0.7f, 0.8f, 1f, 1f); |
And I'd put this in your method that you initialize OpenGL in, 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| GL11.glEnable(GL11.GL_FOG);
{ FloatBuffer fogColours = BufferUtils.createFloatBuffer(4); fogColours.put(new float[]{fogColor.r, fogColor.g, fogColor.b, fogColor.a}); GL11.glClearColor(fogColor.r, fogColor.g, fogColor.b, fogColor.a); fogColours.flip(); GL11.glFog(GL11.GL_FOG_COLOR, fogColours); GL11.glFogi(GL11.GL_FOG_MODE, GL11.GL_LINEAR); GL11.glHint(GL11.GL_FOG_HINT, GL11.GL_NICEST); GL11.glFogf(GL11.GL_FOG_START, fogNear); GL11.glFogf(GL11.GL_FOG_END, fogFar); GL11.glFogf(GL11.GL_FOG_DENSITY, 0.005f); } |
Hope that helps a bit  Thanks from giving that code! I'm on my graphics-making computer right now, so I won't be able to try it out right now, but I will as soon as I get back to coding(Saturday). Can't wait to see how it'll make it look better!  I think I just might not use a skybox depending on the art style; pixelated skybox wouldn't really be fascinating, would it?
|
|
|
|
|
6
|
Games Center / WIP games, tools & toy projects / Re: Deathsiege
|
on: 2013-05-10 05:41:11
|
Here is the code from the axe class. 1 2 3 4 5 6 7 8 9 10 11 12 13 14
| glPushMatrix(); Vector3D hold = powner.getCamera().getHoldingPosition();
glTranslatef((float) hold.x, (float) hold.y, (float) hold.z); glRotatef(powner.getCamera().getYaw(), 0, 1, 0); glRotatef(-powner.getCamera().getPitch(), 1, 0, 0);
glTranslatef(0.5f, -0.75f, 0f); glScalef(0.5f, 0.5f, 0.5f);
glRotatef(30, 0, 1, 0);
glCallList(Resources.getModel(6)); glPopMatrix(); |
hold is just a coordinate that represents the camera's position plus the direction vector at some multiplication factor. So the first set of translate and rotates aligns it in front of you. Dead ahead straight. Then after that, I translate it down and right to the bit. Then I scale it to its correct size. The last rotate is just so it looks like I'm holding it because the model axe faces down instead of upright. No idea why I did that. I added view bobbing, but its controlled in another class, you just add the view bobbing factors before you render whatever you're holding.
|
|
|
|
|
7
|
Games Center / WIP games, tools & toy projects / Re: Deathsiege
|
on: 2013-05-10 05:19:31
|
Here are the gates. These are probably preliminary textures, but it looks good for me now.   Oh, and I'm using GL_NEAREST for loading textures at the moment. I'm still debating with myself whether to have a pixelly look or a smooth look.
|
|
|
|
|
8
|
Games Center / WIP games, tools & toy projects / Re: Deathsiege
|
on: 2013-05-10 02:56:30
|
|
I'll do antialiasing. And yes, there will be multiplayer, but that's after single player comes out. I'm only going to want to do multiplayer if single player turns out to be good.
I'm still texturing the gates and the trees. Previously I used cones and cylinders, but that's a hassle to texture, so for now I'm just going to use cubic polyhedrons.
|
|
|
|
|
9
|
Games Center / WIP games, tools & toy projects / Re: Deathsiege
|
on: 2013-05-10 01:21:32
|
|
Yeah, I'm trying to get better at art, I'm no good at it. I made 3 more textures yesterday, and I'm going to put them in today, I'll post something on that later. Most of the textures there are placeholders, like the gun and the building. I made the tree texture, gate texture, and the monster texture, so there'll be more to see.
|
|
|
|
|
11
|
Games Center / WIP games, tools & toy projects / Deathsiege
|
on: 2013-05-09 03:12:57
|
I started working on 3 dimensional programming awhile ago, and this is my first experience. I think I did a pretty good job thought. The game is called Deathsiege, and its like a continuation of my first game Siege. I think I'll make a release in like a month or 2 or something like that. Here's a picture:  I started about 2 weeks ago, and now I'm working on AI and stuff like that. I'm also making the textures for this one, which is kind of annoying for things like entities, but I have to make do. This is my blog for that game: http://agrosis.tumblr.com/You can find more images and stuff there!
|
|
|
|
|
14
|
Game Development / Newbie & Debugging Questions / LWJGL issue
|
on: 2013-05-07 03:24:46
|
|
I'm getting this error:
org.lwjgl.LWJGLException: X Error - disp: 0x7f795802f2e0 serial: 33 error: BadValue (integer parameter out of range for operation) request_code: 1 minor_code: 0 at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:318)
on
Display.create();
I run Ubuntu 12.10 or something like that. Some sources say I have to update LWJGL? I'm trying to put LWJGL in an applet.
|
|
|
|
|
18
|
Discussions / Business and Project Discussions / Re: Making Money From A Java Game
|
on: 2013-05-06 02:45:53
|
The best way to make money off something is to sell it.  The best way to sell it is to make people want to buy it.  To make people want to buy it they have to A) Know it exists, B) Want it, C) Afford it, and D) Be able to buy it. A) Can be done anywhere. The effectiveness depends on where. Steam is good. B) Is the hard part. This is part of programming. C) Is simple. If you don't go crazy, then it will be fine. D) Is technical. You either need a portal (Steam, Desura etc.) or to do a lot of web & database programming etc. And before doing any of this, you have to program the game. xD
|
|
|
|
|
20
|
Discussions / Business and Project Discussions / Re: Making Money From A Java Game
|
on: 2013-05-06 02:30:44
|
Just because its Java doesn't mean you can't sell it.  Runescape and Minecraft are good examples. But, cutting to the chase, all games have to start somewhere. Post it somewhere, like here or Tigsrc. If people like it, they can spread the word. If you get a lot of traffic in a little amount of time, maybe its time to sell 
|
|
|
|
|
27
|
Games Center / Cube World Projects / Re: Voxel - a start
|
on: 2013-04-28 23:31:30
|
Good luck with C++! You're sort of lucky since you get more direct control with memory. Its important with something huge like this because if you don't do it right, bad stuff will happen, but if you do do it right, then results will be outstanding! 
|
|
|
|
|
28
|
Game Development / Newbie & Debugging Questions / Re: shooting is working but ...
|
on: 2013-04-27 04:33:28
|
Radians are measured based off a unit circle with the radius of 1. There are 2*pi radians in a circle, which is equal to 360 degrees, so there are pi radians in a triangle. Use Math.toDegrees(radians) to convert from radians to degrees. Its a much better presentable format. 
|
|
|
|
|
30
|
Game Development / Networking & Multiplayer / Re: Suggests for a 2d networked game
|
on: 2013-04-23 06:25:08
|
Eh, I really don't like using Java's NIO. I had a few problems with it, had trouble understanding it and getting it to work. Involving networking, I came from C++ which made a lot more sense to me. I don't know, I think its a matter of preference, but I still have yet to make networking in java 100% work. I think the problem I had a few weeks ago was something to do with packet frequency. I sent a packet maybe 20 times per second, and it blocked out the chat packets, probably did something really bad there. 
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|