Tutorial part 4 and 5
This commit is contained in:
parent
994e8d186e
commit
0938a53c4a
2 changed files with 279 additions and 541 deletions
|
|
@ -166,8 +166,8 @@ if len(rooms) > 1:
|
|||
enemy_x, enemy_y = rooms[1].center()
|
||||
enemy = mcrfpy.Entity(
|
||||
(enemy_x, enemy_y),
|
||||
texture=texture,
|
||||
sprite_index=117 # Enemy sprite
|
||||
texture=hero_texture,
|
||||
sprite_index=0 # Enemy sprite
|
||||
)
|
||||
grid.entities.append(enemy)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue