Skip to content

Commit

Permalink
unit 1 project
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Skeen committed Aug 23, 2024
0 parents commit 2d9af85
Show file tree
Hide file tree
Showing 17 changed files with 2,259 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added README_example/.DS_Store
Binary file not shown.
21 changes: 21 additions & 0 deletions README_example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<div align="center">
<img style="width: 30%;" src="wiz-102-logo.png" alt="project image">

# **Wizard 102**

#### Wizard 102 is currently a 1 vs. 1 arena where you and your enemy get to choose from 4 different elements and fight eachother. Each element has a different specialty such as more health, freezing abilities, more damage, or extra charge. May whoever wins be the superior wizard.


COLOR PALETTE | DEMO
:-------------------------:|:-------------------------:
<img style="width: 100%;" src="wiz-102-pallete.png" alt="Color Palette"> | <video width=100% controls><source src="wiz-102-demo.mp4" type="video/mp4">DEMO Video</video>
</div>

## **KEY FEATURES:**
The program Wizard 102 was inspired behind the game Wizard 101. Wizard 102 is a 1v1 wizard arena game where you and your friend/enemy get to hash it out with magical spells. Each mage type has a different ability or strength that makes them have their own strength
## **HOW TO USE (Visual Studio Code)**
1. You 2 users names.
2. If you want to see ability descriptions you can check each mage type ability
3. Afterwards it rolls a dice to determine who attacks first
4. Throughout the course of the game you build up charge and certain abilities can take more charge.
5. Damage is multiplied by dice rolls when you say fight and choose your ability.
Binary file added README_example/wiz-102-demo.mp4
Binary file not shown.
Binary file added README_example/wiz-102-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added README_example/wiz-102-pallete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added __pycache__/ability_desc.cpython-312.pyc
Binary file not shown.
Binary file added __pycache__/damage_classes.cpython-312.pyc
Binary file not shown.
Binary file added __pycache__/dice.cpython-312.pyc
Binary file not shown.
Binary file added __pycache__/main.cpython-312.pyc
Binary file not shown.
Binary file added __pycache__/stat_classes.cpython-312.pyc
Binary file not shown.
30 changes: 30 additions & 0 deletions ability_desc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Pyromancer Descriptions:
def fire_desc():
FIREBALL_DESC = "Fire Ball - Shoots a fireball at your enemies dealing 0.50x your damage to inital target."
FLAMETHROWER_DESC = "Flame Thrower - Release fire from your palms dealing 0.75x your damage to your eney."
FIRE_STORM_DESC = "Fire Storm - A hellish tornado ignites under the enemies feet dealing 1x your damge to all enemies on the field."
fire_desc_list = [FIREBALL_DESC, FLAMETHROWER_DESC, FIRE_STORM_DESC]
return fire_desc_list

## Cryomancer Descriptions:
def ice_desc():
ICEBOLT_DESC = "Ice Bolt - Shoots an icicle lance at your enemies dealing 0.50x your damage to a single target of your choosing. Freezes that enemy for the entirety of their next turn."
ICEWALL_DESC = "Ice Wall - Erect an ice wall out the ground shielding you from the next attack towards you. When broken, this wall breaks into shards which hurts the enemy that broke it for 0.75x your damage."
BLIZZARD_DESC = "Blizzard - Conjure a blizzard that whips around snow and hail dealing 1.0x of your damage to all enemies on the field. This will freeze all enemies on the field"
ice_desc_list = [ICEBOLT_DESC, ICEWALL_DESC, BLIZZARD_DESC]
return ice_desc_list

## Geomancer Descriptions:
def earth_desc():
ROCK_GAUNTLETS_DESC = "Rock Gauntlets - Encase your fist in stone punching the enemy of your choice for 0.50x your damage "
BOULDER_THROW_DESC = "Boulder Throw - Pull a boulder out of the ground lifting it above your head and lob it at the enemy dealing 0.75x of your damage to a single target"
EARTHQUAKE_DESC = "Earth Quake - The earth rumbles as the ground quakes summon an earth quake below your enemies dealing 1.0x of your damage to the entire field"
earth_desc_list = [ROCK_GAUNTLETS_DESC, BOULDER_THROW_DESC, EARTHQUAKE_DESC]
return earth_desc_list

def lightning_desc():
ZAP_DESC = "Zap - Quickly Zap your enemies dealing 0.50x of your damage. High speed will make this ability does large amounts of damage."
STORM_DESC = "Storm - Summon Lightning bolts from the sky dealing 0.75x damage to all enemies on the field"
CHAIN_LIGHTNING_DESC = "Chain Lightning - Turn yourself into lightning itself Blitzing through all enemies on the field dealing 1.0x of your damage."
lightning_desc_list = [ZAP_DESC, STORM_DESC, CHAIN_LIGHTNING_DESC]
return lightning_desc_list
51 changes: 51 additions & 0 deletions dice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import random
class Dice():
def dice():
dice_art = {
1: ("┌─────────┐",
"│ │",
"│ ● │",
"│ │",
"└─────────┘"),
2: ("┌─────────┐",
"│ ● │",
"│ │",
"│ ● │",
"└─────────┘"),
3: ("┌─────────┐",
"│ ● │",
"│ ● │",
"│ ● │",
"└─────────┘"),
4: ("┌─────────┐",
"│ ● ● │",
"│ │",
"│ ● ● │",
"└─────────┘"),
5: ("┌─────────┐",
"│ ● ● │",
"│ ● │",
"│ ● ● │",
"└─────────┘"),
6: ("┌─────────┐",
"│ ● ● │",
"│ ● ● │",
"│ ● ● │",
"└─────────┘")
}


dice = []
total = 0
num_of_dice = 1
for die in range(num_of_dice):
dice.append(random.randint(1, 6))

for line in range(5):
for die in dice:
print(dice_art.get(die)[line], end="")
print()
for die in dice:
total += die
print(f"total: {total}")
return total
Loading

0 comments on commit 2d9af85

Please sign in to comment.