Python Forum
Python Maze Game by Christian Thompson
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Maze Game by Christian Thompson
#2
Hi peeps, just firstly like to thank Christian for this excellent tutorial. I wonder if anyone will be able to help me with my little 'door' issue

for door in doors:
if player.is_collision(door):
walls.clear()
pen.clear()
for enemy in enemies:
Enemy.destroy(enemy)
for Coin in coins:
Coin.destroy()

setup_maze(levels[2])

This code is within the 'while loop' .. Even though it will clear all coins and enemy on the screen when it generates the level 2 there are two issues
1) 'Coin' object is not callable, = If i don't put any coins in the second level this isn't an issue

2) My enemies are static hence do not move

If anyone got any advice or tips that would be great !!
Reply


Messages In This Thread
RE: Python Maze Game by Christian Thompson - by ninedeadeyes - Apr-05-2019, 11:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  From python game in terminal to a website game using bottle Njanez 0 3,887 Aug-13-2021, 01:11 PM
Last Post: Njanez
  Dugeon maze game with turtle module. Newbie1114 3 3,390 Jun-15-2021, 03:11 AM
Last Post: stephen645

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020