https://github.com/codenameyau/swish
Three.js basketball game
https://github.com/codenameyau/swish
Last synced: over 1 year ago
JSON representation
Three.js basketball game
- Host: GitHub
- URL: https://github.com/codenameyau/swish
- Owner: codenameyau
- License: apache-2.0
- Created: 2014-06-23T17:47:26.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-29T21:49:05.000Z (about 12 years ago)
- Last Synced: 2025-01-29T20:19:48.069Z (over 1 year ago)
- Language: JavaScript
- Size: 1.17 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
swish
=====
Three.js basketball game
##Progress
Development progress has stopped for now. More to come in upcomming years.
##ThreeGen Game Engine Documentation
###Entities
#####Create an entity
Default values: collision = 0, velocity.y = -10
```javascript
var basketball = THREE.Mesh(geometry, material);
var entityID = engine.add(basketball);
```
Add entity with different collision and velocity
```javascript
var basketball = THREE.Mesh(geometry, material);
var options = {collision: 1, vX: 20, vY: 0};
var entityID = engine.add(basketball, options);
```
###Collision
* -1 -> No collision with any objects
* 0 -> Environment, doesn't move
* 1 -> Collide with everything except for 0 or 1
* 2 -> Collide with everything except for 0 or 2
* ... and so on
* n -> Collide with everything except for 0 or n