Giter Site home page Giter Site logo

battleship's Introduction

JPJ game repo

Play the game here.

We made this whole game only using open source tools including assets and to continue the tradition we are making the code and all related assets open source.

Feel free to use any or all of this repository.

JPJ is pretty much recreation of the iconic(not really) battle scene where they use tsunami buoys to track aliens(bad guys?) and kill them using nothing but their wits and VL-ASROC missiles (Yes, I looked it up) .

Files

← README.md

Repo structure.

← index.html

Welcome page. Motivation and controls.

← indexStyle.css

Minified CSS for index page

← game.html

Basic tags for the game.

← style.css

Basic CSS like no margin and no padding. CSS for WIN and LOSE screens.

← script.js

Pretty much everything is here.

We used PixiJS as our renderer.

setup function creates sprites for map,ship,shipTitle,Battleship,Beacons. Uses the minimap to construct the whole map background(Not my best algorithm, suggest something)

gameLoop is our ticker function.

Creates basic animations such as active status of beacons.

onClick function is called when any part of map is pressed and it triggers aim box.

onBattleshipClick function uses a bit state to invert the ship's direction everytime the Battleship sprite is clicked.

← scriptMin.js

Minified js for game.html

← assets

All assets are made using open sourced 2D tilesets.

We are using glitch's CDN for all asset distribution.

We'll rename the asset files later.

Shout out to Glitch, our primary editor and Vercel, our hosting platform.

Made by Anil Turaga and Ashritha Sanka.

27

battleship's People

Contributors

anilturaga 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.