Top Down Map Demo
A simple demonstration of a sprite moving around a map. Includes *very* simple graphical map editor.
Pygame.org account Comments
Ian1045 2013-06-16 02:56:11
Didn't work for me for some reason... I ran demo.py, and it crashed. :/ Seems awesome though.
mindkeep 2013-08-04 22:13:47
I had to update map_generator.py, but it seems to work well enough with this change:
#this takes in the list of tiles you can't walk through, and
#returns a new list of those tile rect translated with the camera.
#collision_tiles_list = 
for b in self.bumplist:
if self.scrolling_up == True:
b.y += self.scroll_speed
elif self.scrolling_down == True:
b.y -= self.scroll_speed
elif self.scrolling_right == True:
b.x -= self.scroll_speed
elif self.scrolling_left == True:
b.x += self.scroll_speed
# I'm really not sure about this line, total guess at the original intent