Coder Social home page Coder Social logo

red-colony's Introduction

Red Colony

Red Colony (play now)

Controls:

  • WASD Motion
  • Mouse camera rotation
  • Left Click shooting
  • 1 & 2: Orange and Blue
  • 3: Place a voxel
  • 4: Restore voxel
  • 5: Destroy voxel
  • R: Reset

Credits:

Made by Rasmus Jepsen, with three.js and pointer lock API.

red-colony's People

Contributors

theplasm avatar galexite avatar georgeseif avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

red-colony's Issues

Is master branch necessary?

gh-pages should be set as the default branch, and master should be merged with it, keeping the source in lib and src.

Player Size

The player should have a width, this could prevent wallhacking. The testCol function may need to be called on every vertex in the WASD, SHIFT and SPACE events.

Faster Bullets

Bullets are very slow and should be sped up, however, I don't think the testCol function would detect the collision if it went too fast. I will experiment with it, but I can't guarantee an immediate fix.

Can't shoot bullets when camera is looking straight up or down.

When the camera is looking straight up or down no bullets will shoot. I believe it has something to do with the following:

if (camera.rotation.x < (-Math.PI/2)) {
    camera.rotation.x = (-Math.PI/2);
}
if (camera.rotation.x > (Math.PI/2)) {
    camera.rotation.x = (Math.PI/2);
}

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.