The Fighters’ Universe

11 十二月, 2007

http://hk.geocities.com/tpfung2006/ChineseFightersUniverse.zip
http://hk.geocities.com/tpfung2006/TheFightersUniverse.zip

result.gif

Fighters’ Universe is an extension of the Simple Text Fighter. It turns out that there are two types of fighters in the game. In additional to the ordinary players, the game also have Boss Players, who are more resistant to attacks on lose and gain more power on win.

Java Game—逃出嶺南NAB系列(一)

7 十二月, 2007

http://www.sendspace.com/file/1thv9j

gamestart.gif

這遊戲是逃出嶺南NAB系列中的第一隻 → 「脫逃!!!NAB204!!!」

這遊戲是屬於推理解謎類﹐進行模式與結構類似「逃出房間」

遊戲講述一個學生在NAB204下課後覺得疲累﹐但又要等組員討論某科project﹐所以在NAB204睡了一會。當他睡醒﹐發現整個房間烏燈黑火﹐所以他去開燈﹐之後去開門﹐發現門已被鎖﹐然後看鐘,發現自己竟然睡了近兩小時﹗結果他就開始想辦法逃離204了。

這遊戲Design by Escape Group

Escape Group Member :

-Designer : Ash Ching

-Programmer : Roy Fung

Simple Text Fighter

16 十月, 2007

sample output of my programhttp://hk.geocities.com/tpfung2006/Player.java

http://hk.geocities.com/tpfung2006/Player.java

http://hk.geocities.com/tpfung2006/Player.class

http://hk.geocities.com/tpfung2006/PlayerTest.java

http://hk.geocities.com/tpfung2006/PlayerTest.class

This game are two players fighting, each of their power are 100. One player attacks the other. The winner, determined by random, receives the difference between the power of the players before the attack. The loser, on the other hand, loses the same amount. For example, consider that Pong and Lam have 99 and 101 points of power respectively before the attack. If Lam wins the attack, then Pong’s power would become 97, and Lam’s power would become 103:


Pong: 99 -> 97
Lam: 101-> 103

If the difference is zero before the attack, then use 1 as the difference. For example, consider that Pong and Lam also have 100 points of power respectively before the attack. If Lam wins the attack, then Pong’s power would become 99, and Lam’s power would become 101:

Pong: 100 -> 99
Lam: 100-> 101

The process is repeated until one player is dead, which occurs when the power becomes negative. End the game and display the power of all the users.