AI Design
This is an AI system that I created myself. It is comprised of two AIs that can fight for different sides and a player controller. The two AIs are a range unit and a melee unit.
The Path
The Path is a self made game that I created. This video is a design analysis of this game.
Fight Prototype (Microsoft Excel)
I have once made a excel prototype of a turn based battle system between two units. You can download it here.
Memorium (Game Jam Game) code
# initialize
import pygame
pygame.init()
pygame.mouse.set_visible(0)
class FinalScreen:
# colours
lightblue = 130, 150, 255
white = 255,255,255
black = 0,0,0
red = 255,0,0
grey = 119,119,119
# background screen
def backGroundScreen(self, colour):
screen = pygame.display.set_mode((1200,800))
backgrnd = colour
screen.fill(backgrnd)
pygame.display.flip()
return screen
# Create a font
# When font name = None, Pygame returns a default font
def getFont(self, name, size):
'''Create a font object'''
font = pygame.font.SysFont(name, size)
return font
# Render the text
def putText(self, fontOBJ, message, position,
forecolour, backcolour):
'''Create a font object'''
antialias = True
text = fontOBJ.render(message, antialias, forecolour, backcolour)
# Create a rectangle
textRect = text.get_rect()
textRect.topleft = position
# Blit the text
screen.blit(text, textRect)
pygame.display.update()
# Create a font and render the header line
def Run(self):
background = black
screen = backGroundScreen(background)
headerfont = getFont("bradleyhanditc" ,34)
header = "I guess that I will have to wait a little longer."
position = 300,350
putText(headerfont, header, position,
forecolour = white,
backcolour = background)
pygame.display.update()
# Wait for keypress
# Loop until keypress = ESCAPE
done = False
while not done:
for event in pygame.event.get():
if event.type == pygame.KEYDOWN:
if (event.key == pygame.K_ESCAPE):
done = True
if event.type ==pygame.QUIT:
pygame.quit()
This is a code sample for some code I wrote for a game jam project called Memorium. This code was used to create the game end screen once the player beat the game.

Quisque iaculis facilisis lacinia. Mauris euismod pellentesque tellus sit amet mollis.