The C programming language.
-1
votes
0answers
82 views
Beginner game programming books targetting C (NOT C++) [closed]
My goal is to be understand and create 'hello world' 2d games like pong, tetris, tic tac toe etc absolute basis; using the C language (NOT C++). I am also looking to understand the maths behind it ...
1
vote
2answers
83 views
Exclusive mouse movement with WM_INPUT
Microsoft seems to recommend using WM_INPUT for input. I want to only get relative mouse input and hide the mouse cursor all together for a short while (For gesture based input). However, using ...
-1
votes
1answer
73 views
How can i fix my code so that it is a fully functioning text game? [closed]
This is my code. I have a beginner knowledge of C, and i have reached a dead end. I cant seem to continue my game. This piece of code runs flawlessly. I would really appreciate some help on going ...
1
vote
1answer
47 views
Physics Simulation - Pushing an object with user control
I'm working on a 2D game engine using C, SDL and OpenGL. Have worked out basic graphics, physics, and broad phase collision detection. I am trying to realistically simulate "pushing" objects around. I ...
0
votes
1answer
88 views
joystick movement for Geometry Wars clone
I am kinda new in game programming, but I've got a semestral work to make a game, so I decided to do a clone of Geometry Wars. Despite that the game is really simple (in principle), I have ran into a ...
2
votes
2answers
141 views
How can I switch between scenarios in a text game?
I am making a text-based adventure game. How should I go about changing to another scene if the player wants to e.g. go to the house or walk down the road?
I am using Objective C, but C will work ...
2
votes
3answers
259 views
Oriented Bounding Box - How to?
I've been trying to write my own collision code, less because I want to, more because I want to understand its working.
To do this, i've been working off of the popular collision book i'm sure you've ...
-2
votes
2answers
152 views
Transfering a game from Python to C [closed]
I have a simple game RiceRocks which I want to translate into C programming language not C++,because I know C better. I know only basic C++ such as : loops,control statements, arrays.
Where to start? ...
0
votes
1answer
172 views
Why does the lighting change the objects color?
I have a code that draws a sphere. Without lighting it is white, but if I enable lighting, it's drawn in gray.
I don't know why the sphere changed it's color
#include <GL/gl.h>
#include ...
3
votes
2answers
161 views
How does this background scrolling code work?
I'm glad that this code does exactly what I wanted it to do...But I can't make sense of it although I wrote it from scratch myself. What I wanted to do was create an infinitely scrolling background.
...
4
votes
4answers
266 views
Is there a sound library for C to generate sound samples from code? [closed]
I'm working on an engine for a retro-style game in C. I'm looking for a sound library that would produce chip sounds from code...I want to make my own simple chiptune tracker for the engine to create ...
0
votes
1answer
112 views
char* to code block
I am 99% certain this will require code compiling at runtime, but it is necessary.
I am thinking of making a very simple app that allows advanced users to write in a script-like language in order to ...
1
vote
1answer
230 views
How do I store multiple bullets' coordinates?
My game is a 2D game(or tries to be) in pure C using SDL(no OpenGL at all). No specific goal in it, it's pretty much boilerplate code.
I decided I want to make my character/player shoot "something", ...
-4
votes
3answers
184 views
What compilers are used in game development? [closed]
I was kinda wondering what compilers are used in game development, since the game development industry always tries to squeeze every inch of performance out their software, using, among other, ...
0
votes
1answer
157 views
Image loaded from TGA texture isn't displayed correctly
I have a TGA texture containing this image:
The texture is 256x256.
So I'm trying to load it and map it to a cube:
#import <OpenGL/OpenGL.h>
#import <GLUT/GLUT.h>
#import ...