[epiar-commits] [cthielen/Epiar] 62b46c: Added a Video global to Lua. Also refactored Simul...

noreply at github.com noreply at github.com
Sun Nov 14 15:06:54 PST 2010


Branch: refs/heads/ui
Home:   https://github.com/cthielen/Epiar

Commit: 62b46c317e271d8b70a475e20ac644db7c4aa487
    https://github.com/cthielen/Epiar/commit/62b46c317e271d8b70a475e20ac644db7c4aa487
Author: Christopher Thielen <chris at epiar.net>
Date:   2010-11-14 (Sun, 14 Nov 2010)

Changed paths:
  M Resources/Scripts/player.lua
  M Source/Engine/simulation.cpp
  M Source/Engine/simulation.h
  M Source/Graphics/video.cpp
  M Source/Graphics/video.h

Log Message:
-----------
Added a Video global to Lua. Also refactored Simulation Lua loads.

Video.getWidth() and Video.getHeight() was added to Lua. Though not
strictly necessary yet, the screen resolution could change mid-game
down the road should we offer an in-game screen resolution switch
or a fullscreen/window-mode switch as historic offered. Replaces
WIDTH and HEIGHT though those are currently left in.

Also re-factored Simulation's various Lua registers into a simple
subroutine to DRY up Simulation::Run and Simulation::Edit.




More information about the epiar-commits mailing list