anaish / laser Goto Github PK
View Code? Open in Web Editor NEWLaser Game
Laser Game
**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
The model currently doesn't display the textures
Get a window showing with a game loop displaying something on the screen (a flashing dot perhaps)
Create the basic game loop logic.
Good overview of logic here:
http://gamedev.stackexchange.com/questions/651/tips-for-writing-the-main-game-loop
Advanced threading:
http://altdevblogaday.com/2011/07/03/threading-and-your-game-loop/
Create an array of colidable objects that ODE can use to simulate collisions
Setup IDE/Builder for a simple test
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.