This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Stuff | |
#include <iostream> | |
#include <windows.h> | |
#include <string> | |
#include <conio.h> | |
#include <time.h> | |
#include <windows.h> | |
using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//================ | |
// HEADERS | |
//================ | |
#include <stdint.h> | |
#include "gba.h" | |
#include <stdlib.h> | |
#include <time.h> | |
//================ | |
// CONSTANTS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Darts 301 | |
//Class version | |
#include <iostream> | |
#include <cstdlib> | |
#include <stdlib.h> | |
#include <string> | |
#include <time.h> | |
#include <Windows.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.text.TextField; | |
import flash.geom.ColorTransform; | |
import flash.geom.Transform; | |
import flash.display.Shape; | |
import flash.events.MouseEvent; | |
import flash.events.KeyboardEvent; |
OlderNewer