Giter Site home page Giter Site logo

tile-world's Introduction

tile-world

a tile based world with sorta smart collision ig

a maze built with tiles. theres an array full of 1s and 0s (1 = tile, 0 = air) the 1s get converted into tile objects, the 0s are left over (idk if this is the right way to go about doing this)

in a big world, drawing all the individual tiles (whilst having to deal with 0s) will really take a toll on the performance, which is why i want to find a way to rid the map array of 0s, and to speed up drawing the tiles however since the collision counts on indexes i can't really find a way to do that

since i can access any tile with an index, the player can get neighbouring indexes and only check collision with those tiles, instead of checking every single tile

the world is a top down maze that the player can navigate through player is controlled by WASD keys

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.