Giter Site home page Giter Site logo

sengal-psycho's Introduction

sengal-psycho

Build work flow License GitHub package.json version

A HTML5 breakout clone in typescript

Notes (0.7.2)

  • Fixed paddle goes beyond bounds on mouse

  • added global config to store mouse coordinates inside canvas

  • Change ball direction when hit on paddle

    • The ball changes direction based on whether it hits on paddle hit on left side of paddle makes ball bounce only to left hit on right side of paddle makes ball bounce only to right
  • Increase ball speed on brick break combo to make game-play experience better

  • Improved collision Detection b/w paddle & ball

Used AABB collision detection algorithm

  • Moved to TypeScript

  • Improved collision Detection

*[AABB]: Axis Aligned Bounding Box Used AABB collision detection algorithm and optimized circle & Rectangle collision detection

  • Added level system for multiple levels
  • Used simple particle system

A simple particle system and explosion physics to display bricks shattering effect on collision with ball

  • Used Custom DOM events

Custom events to trigger action on collision detection, trigger state changes and trigger reaction to inputs.

  • Used custom VT323 font
  • Used State management for different game states

Game has the following states viz: Start state, Game play state, paused state, Win state and game over state.

  • Moved to Class based from functional programming
  • Used basic shapes for Game props

Used rectangle for bricks and paddle. And used circle for ball.

  • Used simple physics for collision detection

Used the coordinates of the centre of the ball and the ball's radius to detect the world bounds. Used the coordinates of the centre of the ball to check if the centre is within the bounds of the rectangle (paddle & brick) to detect collision.

  • Used a scoring system to provide scores for the player
  • Used a lives system to liven up the game play and to detect when the game is over.

sengal-psycho's People

Contributors

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