Tagged Questions
7
votes
3answers
2k views
How do I implement occluded lighting in a block-based 2D game?
I want to have 2D lighting that can be blocked by in-game objects. My game has a top-down view and all game objects are described by rectangles.
Let's say I have a 10x10 world and I place a light at ...
6
votes
4answers
2k views
2D Platformer Collision Handling
I am trying to create a 2D platformer (Mario-type) game and I am some having some issues with handling collisions properly. I am writing this game in C++, using SDL for input, image loading, font ...
0
votes
3answers
645 views
OpenGL 2D Depth Perception
I have a 2D RPG game written in Java using LWJGL. All works fine, but at the moment I'm having trouble deciding what the best way to do depth perception is. So , for example, if the player goes in ...
14
votes
7answers
2k views
For 2D games, is there any reason NOT to use a 3D API like Direct3D or OpenGL?
I've been out of hobby Game Development for quite a while now. Back when I did it, most people used Direct Draw to create 2D games. By the time I stopped people were saying OpenGL or Direct3D with ...
6
votes
2answers
945 views
OpenGL 2 and back vs 3 and forward: What are the key differences for 2D graphics?
OpenGL contexts before and after OpenGL 3.0 are rather different. So far I've really only worked with buffers on either side anyway, I do know the most notable difference is lack of Immediate Mode.
...
3
votes
3answers
2k views
Question About An Implementation Of Parallax Scrolling In C++/SDL/OpenGL
I been working in a project with a team for a Software Engineering class and we think that using the parallax scrolling will help our game to look really nice but we are not really sure if our idea ...