Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ffa8436e authored by DETROYAT Alexis's avatar DETROYAT Alexis
Browse files

Fixed an issue that caused guards to not reset properly on restart

parent 9205b468
No related branches found
No related tags found
3 merge requests!51Improved Holy grail + better objects & characters handling + changed map management,!23Multi character sprite management update,!20Draft: Multi-character sprite management system (same sprite used for various NPCs, each one being independent) + upgraded holy_grail
......@@ -12,12 +12,16 @@ class Level(AbstractLevel):
knights = [self.map.named_objects[f"knight_{i}"] for i in range(1,7)]
self.last_knight_update = False
self.scattered_knights = False
for i in range(6):
if i<3:
knights[i].place_at(11,i+1)
else:
knights[i].place_at(11,i+2)
knights[i].direction = cst.Direction.LEFT
knights[i].visible = True
knights[i].send_update()
cus.debug(f"knights objects: {knights}")
def set_knight_position(i):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment