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

C++ Project Template Using CMake

I’ve always found the worst part about development is setting up the dev. environment. So, to bypass that, I have made a basic CMake dev. environment that uses a build_all script to build the entire project. Clone or download the repo. from my GitHub here. What is in the Template Repository? The Project contains the … Read more

New projects on the go!

My friend (Dan Rhodenizer) and I are working on two new games, under the development names Project 9 and Project Lit. These two projects can be followed at http://liteswitchstudios.com where we’ll have updates on the progress and screen shots of the games. Dan is primarily working on the graphics for the games, where I will … 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

Departure – Unity3D Game

Download the game and/or its source code here. Departure is a game that I decided to make to dabble in the top-down shooter genre and see how modular code I’ve written in the past could be. The game started out as one of my one day challenges; however, it turned out to take a bit … Read more