Die Präsentation wird geladen. Bitte warten

Die Präsentation wird geladen. Bitte warten

LUA FÜR 2D S YSTEME Universität zu Köln Re-usable Content in 3D und Simulationssystemen Pr. Dr. Manfred Thaller SoSe 2013 Barbara von Hunnius.

Ähnliche Präsentationen


Präsentation zum Thema: "LUA FÜR 2D S YSTEME Universität zu Köln Re-usable Content in 3D und Simulationssystemen Pr. Dr. Manfred Thaller SoSe 2013 Barbara von Hunnius."—  Präsentation transkript:

1 LUA FÜR 2D S YSTEME Universität zu Köln Re-usable Content in 3D und Simulationssystemen Pr. Dr. Manfred Thaller SoSe 2013 Barbara von Hunnius

2 W AS BRAUCHEN WIR ? Programmiersprache Grafik Sound Interaktion

3 D IE L ÖSUNG LuaCheia Distribution von Lua AddOn Bibliotheken u.a. SDL (Simple DirectMedia Layer) Löve Framework speziell für Spiele in Lua Opensource Privat sowie komerziell nutzbar http://luacheia.lua-users.org/http://luacheia.lua-users.org/ https://love2d.org/https://love2d.org/

4 L UA C HEIA 1. Download 2. Unter Systemsteuerung\System und Sicherheit\System auf Erweiterte Systemeinstellungen 3. Umgebungsvariablen, dort die Variable Path bearbeiten 4. Programmpfad von LuaCheia anhängen

5

6

7

8 L ÖVE

9 H ELLO W ORLD Hello World in Lua Hello World für Löve

10 P ROGRAMMIERSCHNITTSTELLE - API Unterteilt in Module, die wiederum dem Modul love untergeordnet sind, u.a.: love.graphics love.filesystem love.mouse love.audio love.physics

11 W ICHTIGE F UNKTIONEN love.load love.update love.draw love.mousepressed love.mousereleased love.keypressed love.keyreleased love.focus love.quit

12

13 V ON DEN E INZELTEILEN ZUR E XE main.lua und alle weiteren Dateien zu einer.zip- Datei zusammen fassen -> main.lua auf oberster Ebene! Game.zip umbenennen in Game.love -> Durch Doppelklick spielbar In Konsole: copy /b love.exe+game.love game.exe Love.exe -> Dateipfad von Love-Installation Game.love -> Dateipfad des Spiels Game.exe -> Gewünschter Zielpfad für Spiel Game.exe zusammen mit.dll-Dateien von Love in einen Ordner

14 H ILFREICHE L INKS /Q UELLEN https://www.love2d.org/ https://www.love2d.org/wiki/Main_Page https://www.love2d.org/wiki/Tutorials https://www.love2d.org/wiki/Tutorial:Hamster_B all https://www.love2d.org/wiki/Tutorial:Hamster_B all http://nova-fusion.com/2011/06/14/a-guide-to- getting-started-with-love2d/ http://nova-fusion.com/2011/06/14/a-guide-to- getting-started-with-love2d/

15 V IELEN D ANK FÜR DIE A UFMERKSAMKEIT !


Herunterladen ppt "LUA FÜR 2D S YSTEME Universität zu Köln Re-usable Content in 3D und Simulationssystemen Pr. Dr. Manfred Thaller SoSe 2013 Barbara von Hunnius."

Ähnliche Präsentationen


Google-Anzeigen