Sunday, December 2, 2007

Matchman Battle (Advance Text Fighter)

Unlike those pervious version of text fighters which only contain text before, now i would like to show you a graphical battle ---- Matchman Battle.
The rules are similar with the text fighter before and there are some adjustments:
  1. At most 4 fighters in a death match battle.
  2. Selects either one of those characters.
  3. AI (Computer) is also available in this battle although they're not smart.
  4. The battle will end when there is only one player alive in the battle.

Screen shot



Control the player
I will introduce you how to control the players in this section since every player had different keys.
  • Player1
  • Player2
  • Player3
  • Player4
Tutorial
  • Although some technique used in this program is a bit complicated, i will show you some tutorial here.
  • In this program, i have referred to a web site that is a tutorial for teaching a shooting game -- Invaders and here is the link of the site Invaders.
  • Moreover, I have also conducted a PowerPoint for some important techique in the program.

Source code

You can find the source code HERE in box.net and have fun.

Monday, November 19, 2007

Fighters Universe

Fighters Universe

This exercise is an extension of the last one Simple Text Fighter.
We added Boss Players, who are more resistant to attacks on lose and gain more power on win.
Source:
BossPlayer
Player
PlayersUniverse(Main)

Rules of the game:

  1. Four players, each with an initial power of 10.
  2. Two are potato players and the other two are boss players.
  3. One player is selected randomly to attack another random player.
  4. The battle end with only 1 surviver.

    Sample of output:









Monday, October 8, 2007

A Simple Text Fighter

This program demonstrates two players fighting with each other. The winner is determined by random, which has 50% to win each fight. The winner will receive the difference between the power of player and the loser. On the other hand, the loser will decrease the difference between the power of player and the loser.
Here is the program:
http://pastebin.ca/726808
http://pastebin.ca/726810

Testing

Test