Archive

Archive for the ‘Game’ Category

Maze Game

July 20th, 2009 2 comments

Introduction

This is a maze game that I wrote when I was learning C# and Breadth First Search algorithm. The goal of the game is to find a path that connects the Start point (red square) and the End point (dark green square). You use the arrow keys to move your indicator (blue square). The path is marked with light green squares. If you get stuck, just click “Game” -> “Solution” to view the solution. Here is a screenshot of my “Maze Game”:

MazeGame

How to Play

As mentioned above, the goal of the game is to find a path that connects the Start point (red square) and the End point (green square). Click “File” -> “New Maze” to start a new game. Use the arrow keys to move your indicator (blue square). If you get stuck, just click “Game” -> “Solution” to view the solution.

Download

You are welcome to download the game and try it out. The game can be downloaded here. After downloading the file, unzip it. Then double click “MazeGame.exe” to run. If you find any bugs or have any comments, please let me know. Thanks for looking!

Note
You need Microsoft .NET Framework 2.0 to run this tool. Microsoft .Net Framework can be downloaded from Microsoft website.

Categories: C#, Game Tags: ,

Card Memory Game

November 17th, 2008 2 comments

Introduction

This is a card game that I wrote when I was learning how to program C#. The goal of the game is to clear the table by pairing all the cards. It has three difficulty levels: “Easy”, “Medium”, and “Hard”. Different level contains different numbers of cards on the table. At the “Hard” level, you will deal with 48 cards, which is pretty challenging. Also, the back image of the cards can be selected from “Island”, “Fish”, “Moon Flower”, “Space”, and “Toy Cars”. Below is a screenshot of my “Memory Card Game”:

cardmemorygame

How to Play

To play a game, choose “File->New Game” and select a level. After the cards are dealt, click on any card and that card will flip to let you see its face. Click on a second card. This second card will flip to show its face too. If the two cards are identical, they will disappear. Otherwise they will flip back so that you won’t be able to see their faces. Keep clicking on the cards until all the cards are paired and disappear.

Download

You are welcome to download the game and try it out. The game can be downloaded here. After downloading the file, unzip it. Then double click “CardMemoryGame.exe” to run. If you find any bugs please let me know. Thanks for looking!

Note
You need Microsoft .NET Framework 2.0 to run this tool. Microsoft .Net Framework can be downloaded from Microsoft website.

Categories: C#, Game Tags: , ,

cvXporter: DirectX .x File Exporter for Maya

January 31st, 2008 No comments

Chad Vernon wrote a utility that can export Maya models to .x file, which in turn can be used in Microsoft DirectX. You can download cvxporter v1.2 here.

Installation Instructions for cvxporter v1.2

Copy cvxporter.py to your scripts directory (i.e. My Documents\\maya\\2008\\scripts\\). Then invoke your Python Window by selecting Window -> General Editors -> Script Editor from within Maya and type:

import cvxporter
cvxporter.UI()

If you see the error:

# Error: No module named cvxporter
# Traceback (most recent call last):
# File "“, line 1, in
# ImportError: No module named cvxporter #

It means, your PYTHONPATH isn’t set up properly. Create an environment variable name PYTHONPATH and set its value to the path to your maya scripts directory.

Categories: C#, Game Tags: