Skip to content

Commit

Permalink
Rewriting y GlitchFix:
Browse files Browse the repository at this point in the history
* EngineData.on_cambiarmapa(): lo que se ubica en la entrada es el foco
  del renderer, no el HERO necesariamente.
+ Renderer.clear(): no se estaba ejecutando on SetMap porque no estaba
  registrado.
  • Loading branch information
danielrossyamitrano committed Jul 17, 2018
1 parent 31747a2 commit 1c42f44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/globs/engine_data.py
Expand Up @@ -41,7 +41,7 @@ def on_cambiarmapa(cls, evento):
mob=evento.data['mob'])
stage = evento.data['target_stage']
x, y = cls.mapas[stage].posicion_entrada(evento.data['target_entrada'])
cls.HERO.ubicar_en_entrada(x, y)
Renderer.camara.focus.ubicar_en_entrada(x, y)

@classmethod
def on_setkey(cls, event):
Expand Down
2 changes: 1 addition & 1 deletion engine/globs/renderer.py
Expand Up @@ -296,4 +296,4 @@ def update(cls):

EventDispatcher.register(Camara.save_focus, 'Save')
EventDispatcher.register(Camara.rotate_view, 'Rotate')
EventDispatcher.register(Renderer.clear, 'EndDialog', 'NewGame')
EventDispatcher.register(Renderer.clear, 'EndDialog', 'NewGame', 'SetMap')

0 comments on commit 1c42f44

Please sign in to comment.