Git Product home page Git Product logo

code-invader's Introduction

Code-Invader

Description

A young developer is starting his career in the tech universe. The evil javascript is trying to block the Y.D with booleans, nan, undefined, numbers, strings.. and the evil boss the CALLBACK!

Save the Y.D day and escape (or attack) from the block's, so he can success in life.. and get some sleep!

MPV

The enemies fall from high, and the player escapes with left and right movement.

insert photo

img

Backlog

The enemies (JS) attacks

The student attacks

The student moves up and down

High Score

The attacks are logical with the concept, strings launch 'strings', numbers launch numbers etc..

Borders

Bombs (TA's help and LT help), student have 10 seconds of ultimate weapon to fight JS.

Data structure

6 data archives.

Index.html

โ€‹ Basic html structure

style.css

Basic css structure, with the images, sounds and all display features

Player.js

Is a Construction Object, with properties and methods of the player.

Properties: Methods:

this.ctx move

this.canvas draw

this.x

this.y

this.height

this.weight

this.color

this.live

Enemy.js

Is a Construction Object, with properties and methods of the enemy.

Properties: Methods:

this.ctx move

this.canvas draw

this.x

this.y

this.height

this.weight

this.color

this.direction

this.velocity

Game.js

Is a Construction Object, that uses Player.js and Enemy.js to create the rules of the game and the loop iteration.

properties: methods:

this.player startGame

this.enemies update

this.isGameOver clear

this.canvas draw

this.ctx checkCollisions

this.onGameOver gameOverCallback

โ€‹ checklives

main.js

contents all the functions, variables, content, that it's displayed on the screen

States & states Transition

splashScreen : start screen, the player start here, there's a button which uses the function startGame to the start the game, and transition to gameScreen.

gameScreen: this is the main screen, the player will see and play in this screen, this is where most of the properties, & methods are used.

When the player loses all lives, we call the GameOverCallback function to transition to gameoverScreen.

gameoverScreen: This is the end screen, we will display a the letter's Game over and a restart button which will call startGame function to transition to gameScreen.

Task

To do

- create archives

- copy boilerplates

- setup git, github

- Create the 3 screens

- Transition of the 3 screens

- Create Game loop

- Create player

- Move player

- Create enemy

- Collision enemy player

- Game Over condition x

code-invader's People

Watchers

James Cloos 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.