Giter VIP home page Giter VIP logo

fruit-ninja-client's Introduction

FRUIT NINJA ๐Ÿฅ

Fruit Ninja - the most popular fruit-slicing game in the world! This game is built completely using the p5js JavaScript library.

GETTING STARTED ๐Ÿ“

To start playing:

HOW TO PLAY? โ‰๏ธ

RULE 1: Slice fruit ๐Ÿฅ
RULE 2: Don't slice bombs ๐Ÿ’ฃ
...and that is all you need to know to get started with the addictive Fruit Ninja action!!

TO-DO ๐Ÿ“‹

  • Add sounds
  • Fix bugs
  • Add modes
  • Mobile friendly

ABOUT p5js ๐Ÿ’ฌ

Basic sketch

  • This is the basic setup for a p5.js sketch- setup() and draw().

  • Note: p5.js will also require an empty HTML file that links to the p5.js library and your sketch file in the header.

    function setup() {
      // setup stuff
    }
    function draw() {
      // draw stuff
    }
  • Alternatively, you could use the preload() function.

  • If a preload() block exists it runs first, then setup() will wait until everything in there has completed before it gets run, so you can make use of things loaded in preload in setup and draw.

    let img;
    function preload() {
      img = loadImage('img.jpg');
    }

Game Snapshot ๐Ÿ“ท

Fruit Ninja

REFERENCES ๐Ÿ“š

p5js Documentation: A complete guide on how to use the p5js library.

CONTRIBUTE :shipit:

Issues, PRs, and all your suggestions and discussions are very welcome!

fruit-ninja-client's People

Contributors

aliusuf avatar

Watchers

 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.