Skip to content

Instantly share code, notes, and snippets.

View Gi133's full-sized avatar

Andreas Xirotyris Gi133

  • United Kingdom
View GitHub Profile
@Gi133
Gi133 / font.cpp
Created January 31, 2012 16:26
Tiles
#include "font.h"
// Font converted from clR8x8.bdf; details:
// FONT -Schumacher-Clean-Medium-R-Normal--8-80-75-75-C-80-ISO646.1991-IRV
// COPYRIGHT "Copyright 1989 Dale Schumacher."
const uint8_t font_medium[128][64] = {
// char 0
{
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
@Gi133
Gi133 / Cookie.cpp
Created December 21, 2011 16:54
Congrats Cookie!
@Gi133
Gi133 / gist:1505177
Created December 21, 2011 08:14
Old Sonic Clone
/*
TO DO:
1. Check player position so you can start increasing index
2. Move ground array's index so it seems like it's moving
3. Increase the speed at which the array is moving around.
4. Link the array speed to player speed so it decelerates, eventually.
*/
#include <stdint.h>
#include <stdlib.h>
#include "gba.h"
@Gi133
Gi133 / main.cpp
Created December 1, 2011 16:13
Sonic Prototype for Computers and Graphics Architecture class
/*
TO DO:
Maybe change map
It currently fits nicely in assignment requirements as moving around is a game mechanic.
*/
#include <stdint.h>
#include <stdlib.h>
#include "gba.h"
@Gi133
Gi133 / gist:1385461
Created November 22, 2011 11:29
Tamagotchi
// Tamagochi Game
/*
Student Name: Andreas Xirotyris
Student Number: 1005312
This pet application simulates a really hungry pet.
The game itself monitors a variable called FOOD and changes the pet's state accordingly.
There are 6 stages, ranging from Starving to Exploding (mainly because the player fed it way too much in a short amount of time).
You can Feed your pet by pressing F, or Kill it by pressing K or just leaving it without food for a bit.
@Gi133
Gi133 / gist:1362413
Created November 13, 2011 18:05
Lab 4 for Computer and Graphics Architecture
//================
// HEADERS
//================
#include <stdint.h>
#include "gba.h"
#include <stdlib.h>
#include <time.h>
//================
// CONSTANTS
@Gi133
Gi133 / gist:1351980
Created November 9, 2011 16:29
Tomogachi thingy
// Stuff
#include <iostream>
#include <windows.h>
#include <string>
#include <conio.h>
#include <time.h>
#include <windows.h>
using namespace std;
// A game fragment adapted from Andre La Mothe's book
// The Black Art of 3D Games Programming
// PROG2_1.CPP - A simple console based game to illustrate
// a generic game loop
// Modified by CJM 24/9/'08 to run without error or warnings: