Tagged Questions
-1
votes
1answer
53 views
Get distance between the edge of screen and a moving sprite
How to get the distance between the edge of the screen and a vector moving sprite? I want to get the distance between my moving sprite and the edge of the screen so that when my sprite touches the ...
5
votes
2answers
170 views
Simultaneous events in a realtime system, where processing order causes different outcomes
I am working on a realtime dungeon crawler, focusing on a relatively complex and flexible skill system. Somewhat similar to MMORPGs with many compound spells, area effects, buffs/debuffs, ect. I am ...
3
votes
2answers
480 views
Calculating Delta time , what is wrong?
For 2 days now i am trying to calculate the correct delta time for my game , I am starting to getting crazy since i tried all the solutions that i found on the 5 first google pages...
What is wrong? I ...
-1
votes
1answer
164 views
2D Game Help In XNA
I'm making a game in XNA called The Adventure Of The Very Hairy Princess Fairy. The game is a "Sidescroller/Platformer" like mario but there is a problem. How do I attach a weapon to the player ...
-6
votes
1answer
161 views
Making A C++ Game [closed]
I'm gonna make a game and I think C++ would be perfect for it.
I think I'm gonna use SDL and OpenGL but I need help with making the code manageable.
These were my ideas:
1. Making A DLL File With ...
4
votes
4answers
853 views
C++ Game engine time scale
i have begun creating a very simple game engine and i am trying to work out how to create a time scale for the game.by time scale i mean some way of increasing and decreasing the speed of the game(not ...
11
votes
4answers
1k views
Programming the combat sequence in a role playing game
I'm trying to write a short "game" where a player goes around and fights monsters but I have no idea how to handle the combat.
For example, say I have a "Warrior" and a "Troll". How do the two fight ...
1
vote
1answer
492 views
Tetris Movement - Implementation
I'm developing a Tetris clone and working on the input at the moment.
When I was prototyping, movement was triggered by releasing a directional key. However, in most Tetris games I've played the ...
12
votes
5answers
742 views
Game actions that take multiple frames to complete
I've never really done much game programming before, pretty straightforward question.
Imagine I'm building a Tetris game, with the main loop looking something like this.
for every frame
handle ...