581 reputation
17
bio website
location
age
visits member for 1 year, 4 months
seen Apr 11 at 20:12

Nov
20
awarded  Yearling
Jun
19
comment Do associative array data structures have a place in game development?
@Katana314 a few objects were constantly moving, such as the player and monsters, while most objects were static. The non-static objects could be removed and inserted and the sorted order would be maintained by the map, instead of having to manually sort a vector or array every time anything moved. Indexing by position was not the advantage of the map, maintaining sorted order was. Strictly speaking it was actually a multi set, not a multi map, and the objects had an overloaded comparison operator, but whatever.
Jun
19
comment Do associative array data structures have a place in game development?
I worked on a 2.5D game where all the rendered objects were stored in a multi-map with their z-position as their key, because there was no depth-testing and it was very important they be rendered in order, back to front. Maybe not the perfect solution but I wouldn't call it horrendous.
Jun
11
awarded  Caucus
Jun
4
comment How do you get the collision plane when using AABBs?
probably something to do with a dot product of a normal and a velocity vector
Jun
3
comment Best way to gain C++ working experience for a job in games (coming from C#)
Yes, but you can use std::unique_ptr to accomplish polymorphism and avoid the naked pointer (although you will still have the new keyword in the unique_ptr constructor)
Jun
3
comment Neverending game development: how do I finish my game?
For me, the biggest inspiration to keep coding is other people using the software. If at all possible, even if there are some bugs, maybe you should consider releasing if you feel you will run out of steam if you don't.
Jan
7
comment What is the color value of daylight?
when you say "ambient" are you referring to a global light value, or will the light from the sun be directed from a source (the sun)?
Jan
7
answered What is the color value of daylight?
Jan
2
comment How to draw 2D images using OpenGL, in SDL?
there are code snippets on the link for loading the image in. How you render it will depend on you, but if you want to do it the "right way", you will want to follow something like this. Unfortunately setting up OpenGL with shaders etc. is not so quick and easy but probably worth it, especially if you will have a lot of sprites at once.
Jan
2
answered How to draw 2D images using OpenGL, in SDL?
Jan
2
comment Should each Entity have its own update and render methods?
seems reasonable
Nov
29
comment where can i learn to make 3d games in java from scratch?
Yes, it is possible. You just have to build your own GPU, write a driver for it, and then write a software library that can communicate with it. I'm not entirely sure about this one, but you might actually also need to write your own operating system that can communicate with the GPU as well. Easy!
Nov
28
revised Frame timing for GLFW versus GLUT
added 306 characters in body
Nov
28
answered Frame timing for GLFW versus GLUT
Nov
28
comment How to account for speed of the vehicle when shooting shells from it?
Tribes conserves momentum, making it incredibly hard to hit targets, which is exactly why some players LIKE it.
Nov
28
comment How to detect whether an Object came to sleep at a specific position?
can you not check to see if the object's velocity is 0?
Nov
28
comment How to account for speed of the vehicle when shooting shells from it?
@SeanMiddleditch Well, the question is "how to account for speed of the vehicle when shooting shells from it," but I can understand why the answer in this case might be "don't."
Nov
28
comment How to account for speed of the vehicle when shooting shells from it?
That doesn't make conservation of momentum the wrong thing to do, it just means his ship's gun is embarassingly ineffective. Maybe the sailors should consider using a little more gun powder. If the bullet catches up with the ship when fired AGAINST the direction of motion, that means the ship is either slowing down incredibly fast, or the bullet was fired with negative velocity. In the first case, the boys in the engine room are really working hard! Maybe too hard. In the second case, I'd say that gun needs serious repairs.
Nov
28
comment Move a 2D sprite into an irregular terrain
The game in that video is obviously not tile based at all. But even in a tile-based game you could have ramp/stair tiles, maybe even a few of varying angles. There's only going to be so much you can do with tiled terrain though if you want really nice curves.