Merge pull request 'main' (#54) from Spafi/game:main into Development

Reviewed-on: InfoProjekt/game#54
This commit is contained in:
Spafi 2024-02-26 11:29:29 +00:00
commit 886059527b
12 changed files with 26 additions and 4 deletions

BIN
art/images/blau1.kra Normal file

Binary file not shown.

BIN
art/images/blau1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
art/images/blau2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
art/images/blau3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
art/images/rot1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
art/images/rot2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
art/images/rot3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View file

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

22
ideas.txt Normal file
View file

@ -0,0 +1,22 @@
Game:
Rogue-like Game mit Story
Pixel
viele Gegner:
Skelette
Zombies
Story:
Homeless guy in Berlin (oder so) im Winter in einer Stadtbibliothek, weil warm und Shelter.
er hasst eigentlich Bücher, aber aus Langeweile durchstöbert er die Bibo
findet cool aussehendes antikes/magisches Buch, nimmt es aus dem Regal, blättert es auf und wird ohnmächtig
-> Erwacht als magische Person in magischer Welt wieder
Buch dient als Skillbaum (verschiedene Kapitel)
Kampfmagier
Heilender Magier -> Priester?
Elementmagier(?)
maybe noch irgendwas 4.
Ziel(e)
-> Zurückkommen
-> Happy werden (?)

View file

@ -29,7 +29,7 @@ def quitGame():
def play(screen, clock, running, background, isblack, WIDTH, HEIGHT):
main = [MainCharacter('Herbert', 100, 'oldman.png', 500, 500, 20, 5, 1, 1, 50)]
mobs=[Skeleton(i, 50, 'reddy.png', random.randint(20,1000), random.randint(20,700), 125, 1, 1, 1, 200) for i in range(0,random.randint(2,8))]
mobs=[Skeleton(i, random.randint(40, 60), 'reddy.png', random.randint(20,1000), random.randint(20,700), 125, 1, 1, 1, 200) for i in range(0,random.randint(2, 8))]
others = []
objects = [main, mobs, others]

View file

@ -69,7 +69,7 @@ class Fighter(Objects):
self.attack_range = atr
self.lastHurt = pg.time.get_ticks()
self.lastAttack = pg.time.get_ticks()
self.hurtCooldown = 1000
self.hurtCooldown = 250
@ -227,7 +227,7 @@ class Arrow(Weapons):
pos = vec(1,0)
angle = pos.angle_to(moveto)
with open(f'art/images/{sprite}') as i:
self.sprite = pg.transform.rotate(pg.image.load(i), angle)
self.sprite = pg.transform.rotate(pg.image.load(i), -angle)
def move(self):
self.moveto.scale_to_length(self.speed)
@ -242,4 +242,4 @@ class Arrow(Weapons):
def update(self,objects):
self.move()
self.die(objects)
self.die(objects)