Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
Added Dark Corners engine. No levels, assets, website or editor.
  • Loading branch information
tapio committed Nov 1, 2012
0 parents commit c0b9e8f
Show file tree
Hide file tree
Showing 37 changed files with 89,310 additions and 0 deletions.
22 changes: 22 additions & 0 deletions LICENSE
@@ -0,0 +1,22 @@
Parts of this project may have different license - see readme.md

Copyright (c) 2012 Tapio Vierros

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

39 changes: 39 additions & 0 deletions Makefile
@@ -0,0 +1,39 @@
.SUFFIXES: .md .html

all: build

server:
python -m SimpleHTTPServer

chrome:
google-chrome --allow-file-access-from-files

hint:
jshint js/*.js assets/*.js editor/*.js

help: README.html CONTRIBUTING.html ART-TODO.html CODE-TODO.html

.md.html:
markdown $< > build/$@

deploy:
git checkout gh-pages
git merge master
git push origin gh-pages
git checkout master

build: concat minify

concat:
cat `grep "<script " game_dev.html | cut -d'"' -f2 | egrep "^libs/"` > build/libs.js
cat `grep "<script " game_dev.html | cut -d'"' -f2 | egrep "(^js/)|(^assets/)"` > build/game.js

minify: concat
cat build/libs.js | uglifyjs -nc --max-line-len 1024 > build/libs.min.js
cat build/game.js | uglifyjs -nc --max-line-len 512 > build/game.min.js

clean:
rm build/*.html

.PHONY: all server chrome hint help deploy build clean

50 changes: 50 additions & 0 deletions README.md
@@ -0,0 +1,50 @@
Dark Corners
============

This is 3d first person game prototype with a level editor.
The main design guideline is sacrificing artistic liberties for quickness of content creation.
See http://tapio.github.com/darkcorners/ for more information and demo.


System Requirements
-------------------

* Latest version of Chrome or Firefox
* Chrome offers noticeable better performance
* IE does not support WebGL and Opera has issues
* Good dedicated GPU and drivers (both must not be blacklisted for WebGL by the browser vendors)
* Decent CPU so that JavaScript runs well


Acknowledgements
----------------

This is based on several JS libraries, most prominently:

* Three.js - http://mrdoob.github.com/three.js/
* Graphics engine
* Physijs - http://chandlerprall.github.com/Physijs/
* Physics engine
* Fireworks.js - http://jeromeetienne.github.com/fireworks.js/
* Particle engine
* dat.GUI - http://code.google.com/p/dat-gui/
* Settings and editor GUI

With art assets, Blendswap (http://www.blendswap.com/) and especially
Open Game Art (http://opengameart.org/) have been invaluable.


Copyright
---------

Unless otherwise stated, code in `js/` and all `.html` files are mine and
licensed under MIT (see LICENSE file).

Third-party code is in `libs/` and belongs to their respective owners.
Their licenses are mentioned in the files.

The licenses of models and textures in `assets/` can be
viewed from their respective `readme.txt` files.
However, all of them are available under at least one the following licenses:
CC0/PD, CC-BY-3.0, CC-BY-SA-3.0

0 comments on commit c0b9e8f

Please sign in to comment.