-
Notifications
You must be signed in to change notification settings - Fork 0
anaish/Laser
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
**CONFIGURATION*** In order to run Light you will need to make sure you have the config.json and test models in <your home directory>/Laser (only tested on linux) e.g: /home/username/Laser/config.json /home/username/Laser/models/* **COMPILATION** ok so I've got a sort of mock up of the structure /src /engine /light main.cpp /test /assets /images /audio /fonts /scripts /levels /scripts we can use v8 as the scripting engine, that should be simple and will run just about anywhere and is probably the fastest scripting engine available. It's c++. so basically I was thinking this: == broad strokes on how it works == engine loads sdl, v8, etc v8 is embedded: http://code.google.com/apis/v8/embed.html the engine runs the game loop: http://altdevblogaday.com/2011/07/03/threading-and-your-game-loop/ engine loads the rules(src/light) for the game which is basically where we describe wtf the game is, and what methods we want to expose to the scripts that make sense for the game. the game rules run the scripts, tell the engine what to do, errors that occur that break the rules etc basic premise is that the engine is game neutral, the rules are game specific but still c++ so we can pull in shaders, assets and shit upon request by the scripts and tell the engine to load them == build & test stuff == googletest and googlemock look good, they're robust and can give us junit style reports if we want. using scons to build because it seems easier then the others. full list of libraries: v8 sdl sdl-sound sdl-ttf google test google mock scons asset importer google log (glog) : http://google-glog.googlecode.com/svn/trunk/doc/glog.html ode (open dynamics engine) build specific ones: google test google mock scons dev environment: sudo apt-get install libv8-dev libsdl1.2-dev libgtest-dev google-mock libsdl-sound1.2-dev libsdl-ttf2.0-dev scons libboost-all-dev libgoogle-glog-dev need to download/make/install the following asset importer open dynamics engine ... quite a list and will probably get bigger but fuck, saves us writing so much code. - especially boost and v8
About
Laser Game
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published