Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
9029e0d
member name
xint0n9 Jul 26, 2024
834b6aa
2.0
xint0n9 Jul 26, 2024
a83f846
hello i am testing out git
UrgedReaper34 Jul 26, 2024
5b5bd42
I am taking back my changes
UrgedReaper34 Jul 26, 2024
da3de1f
shane
Chilliken Jul 26, 2024
92d72bb
What the?
JaywenTan Jul 26, 2024
88bf8c0
Merge branch 'main' of https://github.com/UrgedReaper34/WWWWWEYTON
JaywenTan Jul 26, 2024
fd0d47c
Hi lleyton
JaywenTan Jul 26, 2024
e8358c3
LLLLLLLLEYYTOONNNNN
UrgedReaper34 Jul 26, 2024
f25861f
o
JaywenTan Aug 1, 2024
83e867f
hihi
UrgedReaper34 Aug 1, 2024
9381b42
hihihi
UrgedReaper34 Aug 1, 2024
e8d1e84
Merge pull request #1 from UrgedReaper34/sigma
UrgedReaper34 Aug 1, 2024
3194cf1
idk
Chilliken Aug 1, 2024
30c7eac
Merge pull request #2 from UrgedReaper34/data
Chilliken Aug 1, 2024
a513313
Modified the main file
xint0n9 Aug 1, 2024
9eb0a07
Merge branch 'main' into shane
xint0n9 Aug 1, 2024
a0d5b25
Merge pull request #3 from UrgedReaper34/shane
xint0n9 Aug 1, 2024
c5e44cf
idk
Chilliken Aug 1, 2024
1944ddb
reset
UrgedReaper34 Aug 1, 2024
5da7e61
Merge branch 'main' into reset
UrgedReaper34 Aug 1, 2024
0deffc3
Merge pull request #4 from UrgedReaper34/reset
UrgedReaper34 Aug 2, 2024
d0a6bf5
entity
Chilliken Aug 2, 2024
28e861b
entity 2
Chilliken Aug 2, 2024
818a588
Merge remote-tracking branch 'origin/main' into Entity
Chilliken Aug 2, 2024
5447cf2
entity 3
Chilliken Aug 2, 2024
fdac649
Merge pull request #5 from UrgedReaper34/Entity
UrgedReaper34 Aug 2, 2024
1a4e25c
First commit
UrgedReaper34 Aug 2, 2024
327a524
version 1.0
xint0n9 Aug 2, 2024
244aa4f
entity 4
Chilliken Aug 2, 2024
143eafb
Save progress
UrgedReaper34 Aug 2, 2024
063a09a
Map V1
JaywenTan Aug 2, 2024
ee75ab9
entity 5
Chilliken Aug 7, 2024
aea28c0
version 2.0
xint0n9 Aug 7, 2024
474fd2a
Merge pull request #6 from UrgedReaper34/Entity
UrgedReaper34 Aug 7, 2024
ba34b64
Merge pull request #7 from UrgedReaper34/Level
UrgedReaper34 Aug 7, 2024
642688d
entity 6
Chilliken Aug 7, 2024
c3839fc
Day 2 :(
JaywenTan Aug 7, 2024
062db27
Finish adjacent tiles function
UrgedReaper34 Aug 7, 2024
5e60923
level 3
Chilliken Aug 8, 2024
955001e
Item 1
Chilliken Aug 8, 2024
bd5ee6b
action class
xint0n9 Aug 15, 2024
d84d32b
Intro finished, missing action part
UrgedReaper34 Aug 15, 2024
3cc7d7b
items 2 (entities changed a bit)
Chilliken Aug 15, 2024
e7a07cc
Merge branch 'main' into Gameloop
UrgedReaper34 Aug 15, 2024
4444fb9
Merge pull request #8 from UrgedReaper34/Gameloop
UrgedReaper34 Aug 15, 2024
5900ec0
Merge pull request #9 from UrgedReaper34/Item
UrgedReaper34 Aug 15, 2024
d986b29
Merge pull request #10 from UrgedReaper34/Level
UrgedReaper34 Aug 15, 2024
8082fde
Storyline test
JaywenTan Aug 15, 2024
a92bb11
fminor fix
UrgedReaper34 Aug 15, 2024
c710ba2
Storyline tile info update
JaywenTan Aug 15, 2024
d24ba66
test again
JaywenTan Aug 15, 2024
464ea81
entity 7
Chilliken Aug 16, 2024
1b0581b
items 3
Chilliken Aug 16, 2024
7852e5a
Merge pull request #11 from UrgedReaper34/Entity
Chilliken Aug 16, 2024
f7b69c8
Merge pull request #12 from UrgedReaper34/Item
Chilliken Aug 16, 2024
101176b
Merge branch 'main' into storyline
JaywenTan Aug 16, 2024
eb5a742
Merge branch 'main' into storyline
Chilliken Aug 16, 2024
8e808f4
Merge pull request #13 from UrgedReaper34/storyline
Chilliken Aug 16, 2024
574bbf6
delete storyline file
Chilliken Aug 16, 2024
9b4ef94
Merge pull request #14 from UrgedReaper34/Gameloop
Chilliken Aug 16, 2024
d78a643
Storyline V3
JaywenTan Aug 16, 2024
3c25add
testing py testing only
xint0n9 Aug 16, 2024
3999fa9
fminor fix
UrgedReaper34 Aug 15, 2024
6e890e3
delete storyline file
Chilliken Aug 16, 2024
240d97f
Merge pull request #15 from UrgedReaper34/storyline
JaywenTan Aug 16, 2024
b467f49
first v
xint0n9 Aug 16, 2024
1c2fad8
Merge remote-tracking branch 'origin/main' into test
xint0n9 Aug 16, 2024
35711a5
Map V4
JaywenTan Aug 16, 2024
8638206
Merge branch 'main' into storyline
JaywenTan Aug 16, 2024
3b25b4a
Name Change
JaywenTan Aug 16, 2024
5bfa176
Merge pull request #17 from UrgedReaper34/storyline
JaywenTan Aug 16, 2024
3e6c1ae
Comments added
JaywenTan Aug 16, 2024
86da2d3
update game loop
Chilliken Aug 16, 2024
cd8feea
Merge pull request #18 from UrgedReaper34/Gameloop
Chilliken Aug 16, 2024
365edc8
gameloop functions
Chilliken Aug 16, 2024
70115fa
Merge pull request #19 from UrgedReaper34/Gameloop
Chilliken Aug 16, 2024
aa0c6dc
Merge pull request #20 from UrgedReaper34/storyline
JaywenTan Aug 16, 2024
2410ba3
Merge branch 'main' into test
Chilliken Aug 16, 2024
43c58e4
Merge pull request #16 from UrgedReaper34/test
Chilliken Aug 16, 2024
4527413
Merge remote-tracking branch 'origin/main' into Gameloop
Chilliken Aug 16, 2024
cdd61f8
Merge remote-tracking branch 'origin/main' into Gameloop
Chilliken Aug 16, 2024
2e0166b
everything v1
Chilliken Aug 17, 2024
bbcfe06
everything v2
Chilliken Aug 17, 2024
46d2568
Merge pull request #21 from UrgedReaper34/Gameloop
Chilliken Aug 17, 2024
56da06d
everything v3 (minor changed only)
Chilliken Aug 17, 2024
a8100fb
Merge pull request #22 from UrgedReaper34/Gameloop
Chilliken Aug 17, 2024
c18a67a
game
Chilliken Aug 19, 2024
1fa4b58
entities
Chilliken Aug 19, 2024
611da8b
main
Chilliken Aug 19, 2024
bb45509
monster data
Chilliken Aug 19, 2024
f3371ef
items
Chilliken Aug 19, 2024
e81cf4b
Merge pull request #23 from UrgedReaper34/Gameloop
Chilliken Aug 19, 2024
58853ab
editted a bit
Chilliken Aug 19, 2024
762510d
Merge pull request #24 from UrgedReaper34/Gameloop
Chilliken Aug 19, 2024
d6e1036
last changes
Chilliken Aug 20, 2024
629b08a
Merge pull request #25 from UrgedReaper34/Gameloop
Chilliken Aug 20, 2024
73d3625
small changes (input error, added item position on map)
Chilliken Aug 21, 2024
5f1b820
Merge pull request #26 from UrgedReaper34/Gameloop
Chilliken Aug 21, 2024
546f759
added help command
UrgedReaper34 Aug 21, 2024
853b0f1
Merge pull request #27 from UrgedReaper34/minoredits
UrgedReaper34 Aug 21, 2024
99cb85a
changed data to make it easier
Chilliken Aug 21, 2024
e86259a
Merge pull request #28 from UrgedReaper34/Gameloop
Chilliken Aug 21, 2024
d68bddf
Changed drop key in help to R instead of D
UrgedReaper34 Aug 21, 2024
6cb3876
comma
Chilliken Aug 21, 2024
f54a6e2
added help command
UrgedReaper34 Aug 21, 2024
4a995d5
Changed drop key in help to R instead of D
UrgedReaper34 Aug 21, 2024
5c87b14
Merge pull request #29 from UrgedReaper34/Gameloop
Chilliken Aug 22, 2024
8166ce1
readme
Chilliken Aug 23, 2024
45674b9
Merge pull request #30 from UrgedReaper34/Gameloop
Chilliken Aug 23, 2024
b535e7d
minor changes
Chilliken Aug 23, 2024
951f8f6
Merge pull request #31 from UrgedReaper34/Gameloop
Chilliken Aug 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,25 @@

## Members

- Member 1
- Member 2
- Member 3
- Member 4
- Shane
- Jayven
- Lleyton
- Xintong

Player Spawns into the level with 100 Health and 0 Aura.
You will spawn with an empty inventory, but will be able to punch and kick for 5 and 10 damage respectively.

The goal of the game is to get to the BigBoss and kill the BigBoss.

The BigBoss has 1000 Health and does 250 Damage.

You are supposed to pick up weapons and potions which helps boost your chances of winning against the BigBoss.

Along the way, you will also meet smaller monsters who spawn on random tiles which will try to kill you. Run away if you cannot kill them!

Health Potions increase your health which you need to stay alive, and there is no maximum health.

Aura Potion boosts your damage as a percentage. For example, 10 Aura allows you to do 10% more damage for all your weapons and basic attacks.

Tip: If you move to a monster tile, either fight the monster immediately or run away, do not use potions or view items as monsters can still damage you while doing those actions.

<Description of your project>
118 changes: 118 additions & 0 deletions Tile_data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
[
{
"position": [1,1],
"description": "Starting Point"
},
{
"position": [3,3],
"description": "Ancient Ruins"
},
{
"position": [9,3],
"description": "Mystic Grove"
},
{
"position": [9,5],
"description": "Forgotten Fountain"
},
{
"position": [19,2],
"description": "Enchanted Clearing"
},
{
"position": [19,5],
"description": "Hidden Cave"
},
{
"position": [19,8],
"description": "Abandoned Temple"
},
{
"position": [19,10],
"description": "Dragon's Lair"
},
{
"position": [16,10],
"description": "Elder Tree"
},
{
"position": [5,5],
"description": "Crystal Lake"
},
{
"position": [7,2],
"description": "Goblin's Hideout"
},
{
"position": [11,7],
"description": "Ancient Battlefield"
},
{
"position": [13,5],
"description": "Moonlit Meadow"
},
{
"position": [15,8],
"description": "Mysterious Altar"
},
{
"position": [18,3],
"description": "Witch's Hut"
},
{
"position": [10,9],
"description": "Ruined Watchtower"
},
{
"position": [6,10],
"description": "Overgrown Garden"
},
{
"position": [14,12],
"description": "Sunken Crypt"
},
{
"position": [18,15],
"description": "Glimmering Cavern"
},
{
"position": [2,7],
"description": "Hidden Spring"
},
{
"position": [4,11],
"description": "Echoing Grotto"
},
{
"position": [8,13],
"description": "Serpent's Nest"
},
{
"position": [10,15],
"description": "Twilight Grove"
},
{
"position": [12,3],
"description": "Crystal Cavern"
},
{
"position": [17,7],
"description": "Phantom Ridge"
},
{
"position": [14,4],
"description": "Ancient Obelisk"
},
{
"position": [16,2],
"description": "Celestial Plateau"
},
{
"position": [3,9],
"description": "Forgotten Path"
},
{
"position": [19,12],
"description": "Spectral Forest"
}
]
137 changes: 137 additions & 0 deletions entities.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@

class Entity:

def __init__(self, name, health, position):
self.name = name
self.health = health
self.position = position

def get_name(self):
return self.name

def get_health(self):
return self.health

def gain_health(self, gained_health):
self.health += gained_health

def lose_health(self, damage):
self.health -= damage

def take_damage(self, damage):
self.health -= damage

def get_position(self):
return self.position

def dead(self):
return self.health <= 0

def move(self, move):

if move in "Ww":
if self.get_position()[1] <= 1:
return "invalid"
else:
self.position[1] -= 1
return self.get_position()

elif move in "Aa":
if self.get_position()[0] <= 1:
return "invalid"
else:
self.position[0] -= 1
return self.get_position()

elif move in "Ss":
if self.get_position()[1] >= 20:
return "invalid"
else:
self.position[1] += 1
return self.get_position()


elif move in "Dd":
if self.get_position()[0] >= 20:
return "invalid"
else:
self.position[0] += 1
return self.get_position()




class Player(Entity):

def __init__(self, name, health, aura, position, inventory = []):
super().__init__(name, health, position)
self.inventory = inventory
self.aura = aura

def get_aura(self):
return self.aura

def set_aura(self,aura):
self.aura = aura

def gain_aura(self,aura_gained):
self.aura += aura_gained

def add_item(self,item):
self.inventory.append(item)

def remove_item(self,item_index):
self.inventory.pop(item_index)

def punch(self, monster):
monster.take_damage(5*(1+self.aura/100))

def kick(self, monster):
monster.take_damage(10*(1+self.aura/100))

def use_item(self, item_index, monster):
item = self.inventory[item_index]
item.use_item(monster)

def get_inventory(self):
return self.inventory


class Monsters(Entity):

def __init__(self, name, health, position, damage, description):
super().__init__(name, health, position)
self.damage = damage
self.description = description


def get_damage(self):
return self.damage

def set_damage(self, damage):
self.damage = damage

def get_description(self):
return self.description

def display_monster(self):
print(f'Monster Name: {self.get_name()}')
print(f'Monster Health: {self.get_health()}')
print(f'Monster Description: {self.get_description()}')
print(f'Damage: {self.get_damage()}\n')



# test
# person1 = Player("Lleyton",100000,10,[1,2])

# adj_tiles = {
# "UP" : [1,3],
# "DOWN" : [1,1],
# "RIGHT" : [2,2],
# "LEFT" : None
# }
# print(person1.move("RIGHT",adj_tiles))



Loading