diff options
author | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-12-09 16:32:22 +0000 |
---|---|---|
committer | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-12-09 16:32:22 +0000 |
commit | d267ce95e1743fad0d383d1d7fe51e9b8bf5b66f (patch) | |
tree | 3bc133649ffb0bd32b9c461e3d67fe5d810dbc0b /Lua/game/plugins/LuaTest.usdx | |
parent | c3a430e61e20c47ad2b0632e35f48c83af22a5b3 (diff) | |
download | usdx-d267ce95e1743fad0d383d1d7fe51e9b8bf5b66f.tar.gz usdx-d267ce95e1743fad0d383d1d7fe51e9b8bf5b66f.tar.xz usdx-d267ce95e1743fad0d383d1d7fe51e9b8bf5b66f.zip |
adds working teamduel lua plugin
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2010 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Lua/game/plugins/LuaTest.usdx')
-rw-r--r-- | Lua/game/plugins/LuaTest.usdx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lua/game/plugins/LuaTest.usdx b/Lua/game/plugins/LuaTest.usdx index 4cfd718f..553fca13 100644 --- a/Lua/game/plugins/LuaTest.usdx +++ b/Lua/game/plugins/LuaTest.usdx @@ -1,8 +1,7 @@ function plugin_init()
register('lua interface test plugin', 'not Versioned', 'Hawkear');
- require('Usdx.Gl');
- require('Usdx.TextGl');
+ require('Usdx.Gl', 'Usdx.TextGl', 'Usdx.ScreenSing');
Usdx.Hook('Display.Draw', 'OnDraw');
@@ -34,6 +33,9 @@ function OnDraw() Gl.Color(0.9, 0.9, 0.9, 0.7)
TextGl.Print('FPS: ' .. LastFPSCounted)
+ TextGl.Pos(650, 50)
+ TextGl.Print('Beat: ' .. ScreenSing.GetBeat())
+
-- Draw some rectanGles
Gl.Enable("Gl_BLEND")
Gl.Color(1, 1, 1, 0.5)
|