Goudkoorts C# Game

For a school subject called Modelleren we needed to build a game with C#. But before we started programming we needed to UML model the most complex pieces of the game using Microsoft Visual Studio ‘s Architecture Diagrams, such as Sequence Diagram, Class Diagrams, Application Diagrams and so on.

Short Gameplay Introduction

I’ll just explain the gameplay very short. There are Carts random created at point A, B or C, then they will follow the track untill they come at a “Switch”, wich is colored. There are five switches and each of them have another color in our game. If the switch is open or not then the cart can continue its journey untill it passes a “K”. The “K” stands for a DockSquare in our game and when a Ship is docked to a DockingSquare the Cart will pass its cargo on to the Ship. When the Ship is full then it will pass out of the screen and a new one will spawn.

The game ends when two Carts will collide, this only happens when a Cart needs to stop for a switch.

Application Layer Diagram

As we continue we’ll take a look at the second picture, the Application Layer Diagram. As we can see we used the MVC model (Model View Controller). The parser in the Process layers parses a text file that represents our game field. The GameController  handles the input from the InputView and passes it on to the GameField model, wich on his turn passes it on to the correct SwitchSquare.

Class Diagram

In the last image I present you the Class diagram, including the multiplicities, dependencies  and inheritance.


Goudkoorts Board

AKD layersGoudkoorts AKD

Adventures of Chap’n Dale

Adventures of Chap’n Dale our final school project at Sint Lucas Eindhoven. This is a 3D “Silent” third person action game made in Unity3D. This project I created all the code. We had just one 3d artist and someone else was responsible for the storyline and all of the documents.

We had some difficulties with our camera. For our camera movement we used the already provided OrbitCamera script. But on some point we needed to disable this script for a very short time to show our camera shock! Re-enabling the OrbitCamera afterwards made it go buggy. The camera got stuck or just kept rotating. For this I wrote the function below in the code snippet.

AOCD_screenshot2

BillboardFinalAOCD_menu

 

Frantic Universe XNA game

This is a school game project developed with C# and XNA 4.0. The map is created with Tiled Map Editor. Also I used a light shader to get a more intense effect of being in a cave. For collision we used rectangle and pixel perfect technique.

See the code snippet below for the function I used for pixel perfect collision.

TitleScreenFrantic Universe screenshot

Frantic Universe tiled map