GithubHelp home page GithubHelp logo

abdi0987 / tilegame Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andersevenrud/tilegame

0.0 2.0 0.0 372 KB

Top-down 2D tile engine with infinite terrain generation (JavaScript)

Home Page: http://andersevenrud.github.io/

JavaScript 98.39% HTML 1.61%

tilegame's Introduction

Top-down 2D tile based game engnine with infinite procedural chunk generation using only browser JavaScript.

This is just an experiment and not complete in any way

Installation

Just clone and open index.html in your browser.

Compability

Latest Chrome and Firefox works fine (Chrome has better performance)

Controls

  • W Forward
  • A Strafe Left
  • S Backward
  • D Strafe Right
  • SHIFT Hold to run
  • MOUSE Look around
  • MWHEEL Change weapon
  • LMB Shoot/Action

Debugging controls

  • 1 Toggle tile overlay
  • 2 Toggle chunk overlay
  • 3 Toggle data overlay
  • 7 Toggle cheat mode (noclip, speedup, disable stats)
  • 8 Toggle metadata and bounding overlays
  • 9 Toggle UI

Configuration

Game config is located in main.js

Engine config is located in config.js

You can supply these arguments in the URL:

  • seed Seed string
  • x Starting X position
  • y Starting Y position

Example: ?seed=foo&x=1000

Features

  • Infinite 2D procedural tile generation using Perlin and Simplex noise
  • Map Generation using seeds
  • Chunk/Region based rendering
  • Character controls and weapons
  • Collision detection
  • Animations

You can see it in action on my YouTube channel

TODO

Lots of stuff...

tilegame's People

Contributors

andersevenrud avatar

Watchers

James Cloos avatar  avatar

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.