Giter VIP home page Giter VIP logo

jsgame's Introduction

Basic JavaScript Game using a text-based grid.

Just something I threw together to see if I remember my game programming skills from the 90s.

There are multiple versions. Each version adds more features. index.html is always the latest version (it's version is (X+1) where X is from latest versionX.html).

Version 1 has a basic grid to constain movement, version 2 adds colors, version 3 adds actual game logic (locks and doors), version 4 adds mouse (therefore also mobile) support and "food" (which depletes on each move), making it a logic puzzle. Each version also probably add more things I forgot about too.

You can view the latest version at http://dbgame01.azurewebsites.net/.

[
    "**k*f***************",
    "*& #^[#            *",
    "*  # d#     ##### d*",
    "*  #        #   ] d*",
    "*  ###]######   ###*",
    "*  d[#]#[[dd       *",
    "*  ###]#########   *",
    "*         #       d*",
    "*        d        [*",
    "******** ***********",
    "*   #            d *",
    "* # #       #####  *",
    "* # ]      d#     [*",
    "* # #########   ###*",
    "*0# #             d*",
    "*## #[dd#######]###*",
    "*   #####^#[ d#   d*",
    "*   d ^]    #     [*",
    "********************"
]

Run server

docker run --name jsgame --rm -dt -p 80:80 -v `pwd`:/usr/share/nginx/html nginx:1.19.1

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.