Skip to content

Files

Latest commit

751cdd9 · Feb 8, 2015

History

History
28 lines (19 loc) · 1.22 KB

README.md

File metadata and controls

28 lines (19 loc) · 1.22 KB

ShootTheBlocks

This is a very simple example using Three.js and Physijs to build a shoot-a-pile-of-blocks type of game.

I wrote this to learn how both frameworks work and also to experience what is like to write a game (even the simplest one like this).

This is how it looks like: alt tag

Some of the things I've used in this code that you may think is useful:

  1. Directional light with shadows
  2. Control the direction of the shooting using the keyboard
  3. Control the camera using the mouse

How to use this

Download the code as .zip or clone this repository.

To run the game you'll need a HTTP server. You can either put the files in your running HTTP server if you have one or use the simple one that comes with Python if you have Python installed:

$ cd /path/to/where/you/unzipped/the/files
$ python -m SimpleHTTPServer