Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
thwack.rb
thwack_armor.rb
thwack_barbarian.rb
thwack_combat.rb
thwack_init.rb
thwack_knight.rb
thwack_ninja.rb
thwack_player_attr.rb
thwack_weapons.rb

README.md

THWACK

A very simple fighting game.

You will select two warriors, and equip them with a weapon and armor.

###Warrior Classes * Barbarian - Strong, but not agile * Knight - Blend of strength and agility * Ninja - High agility, but low strength

###Weapon Classes * Club - Heavy damage, decreases agility * Katana - Medium damage, no effect on agility * Dagger - Low damage, increases agility

###Armor Classes * Iron Armor - Decreases agility, increases defense * Bronze Armor - No effect on agility or defense * Leather Armor - Increases agility, decreases defense

####Player Attributes HP - Hit points/health STR - Strength/Attack Damage DEF - Defense AGI - Agility (affects chance of an attack connecting)

###Gameplay

The basic formula is DMG = (ATK - DEF). The game continues until one player has been killed.

####Files * thwack_init.rb = Main gameplay script * thwack_combat.rb = fight and defense algorithms

* thwack_armor.rb = Armor classes
* thwack_weapon.rb = Weapon classes

* thwack_barbarian.rb = Barbarian warrior classes
* thwack_knight.rb = Knight warrior classes
* thwack_ninja.rb = Ninja warrior classes