Git Product home page Git Product logo

laser's Introduction

**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

laser's People

Contributors

anaish avatar quintok avatar

Stargazers

 avatar

Watchers

 avatar

laser's Issues

Create main window

Get a window showing with a game loop displaying something on the screen (a flashing dot perhaps)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.