Simple CMake Setup for RayLib

This is a barebone CMake setup for building a C++ project that uses RayLib. NOTE: Be sure that the RAYLIB_DIR variable in the CMake points to where your RayLib root directory is (this will be where RayLib’s CMakeLists.txt exists). A small main.cpp to go along with the CMake above that will create a window using … Read more

Basic Game Loop

When programming a game you’ll notice there is a main loop that handles: input, physics/gameworld, and output – this is the game loop. What is a Game Loop? A game loop is a fundamental structure used in most video games to control the flow of the game. It is essentially an infinite loop that repeatedly … Read more

The Super Alpha of AGIP

This version of AGIP lets the user generate random levels and gives them the option to edit the generated levels. After the level is generated the user is able to start the game and explore the level. This version is not optimized and does not offer multiplayer – those features will come in the future! … Read more

Top Down Shooter Blueprint Code [Unity3D 4.3]

DOWNLOAD Game Jam coming up and you don’t want to waste time programming the basics of a top down shooter game? If your using Unity, then this code may be for you! I have set up the basic structure for a top down shooter game for you to use for your game development needs. I … Read more

Projectiles (Bullets) using OpenGL/Glut

Compiled using Code::Blocks 13.12 in Ubuntu 14: Build options -> Linker Settings (Other Linker Options): -lGL -lGLU -lglut Properties -> Build Targets (Type): GUI Application The following code changes and additions are based off the code posted in Movement using OpenGL/Glut. New defines, structures, and global variables added. [code language=”c”] #define SPACEBAR 32 #define MAX_BULLET_ON_SCREEN … Read more

Movement using OpenGL/Glut

Compiled using Code::Blocks 13.12 in Ubuntu 14: Build options -> Linker Settings (Other Linker Options): -lGL -lGLU -lglut Properties -> Build Targets (Type): GUI Application Movement.c is a program that draws a triangle on screen and accepts user input that moves/rotates the triangle. It is written in C using OpenGL/GLUT libraries. This post does not … Read more

Simple Enemy Pacing Script [Unity3D]

Unity3D Version: 4.3.3f1 This C# code is for a simple enemy pacing script. The GameObject that has this script attached will go back and fourth in any Axis that isĀ desiredĀ (default is to pace in the X-Axis). The GameObject uses a Ridged Body which makes it is quick to add other mechanics to it, such as … Read more

Simple Checkpoint System [Unity3D]

The other day I decided to make a simple checkpoint system, where there is an initial spawn point, a checkpoint, and a point that marks the end of the level. If the player falls out of bounds and has not hit a checkpoint they will respawn at the initial spawn; however once they hit the … Read more