Code Monkey home page Code Monkey logo

jsgames's Introduction

jsgames

My playground repo for building simple Javascript Games.

I try to keep an updated repo available here whenever I change something: http://img.failar.nu/etu/.jsgames/

Table of Contents of repo

game_01/ - Capture the goblin

game_01/ is in the base a pure copy of this tutorial: http://www.lostdecadegames.com/how-to-make-a-simple-html5-canvas-game/

With following modifications:

  • You can’t walk outside of the canvas
  • The players position doesn’t reset when the goblin is captured
  • The goblin moves away from the player, but does’t understand corners or have any “smart AI” at all.

I won’t do anything more with this.

game_02/ - Jump on platforms

game_02/ is based on this tutorial: http://michalbe.blogspot.se/2010/09/simple-game-with-html5-canvas-part-1.html

With following modifications:

  • I haven’t implemented scrolling, at all.
  • The platforms does not appear at random and does have collision detection from bottom and the sides
  • Implemented falling of platforms better
  • My clouds moves at different speed depending on their size to make a fake-3d-feeling-effect

This could be a fairly simple platformer game without too much modifications, but I didn’t bother. I won’t do anything more with this, and if I would, I would start from the beginning.

game_03/ - Nyancat space shooter

game_03/ is what I think I want to keep working on for a while, I started it from scratch, with inspiration of the tutorials used for game_01/ and game_02/, but decided to do everything my own way :)

It’s going to be a Nyancat shooter game in space.

To Implement

  • Implement things to collide with
  • Implement collisiondetection for things to collide with and for projectiles
  • Implement progression to make the game harder over time

Already done

  • Implemented space with stars moving at different speed
  • Implemented player with animated nyancat
  • Implemented basic projectiles so the cat can shoot (but got nothing to hit (so far!))
  • Implemented controlls for the cat (Up, Down, Space)
  • Implemented monsters
  • Implemented that you can kill monsters
  • Implemented that monsters can kill you
  • Implemented score of some kind
  • Added graphics for monsters, it’s spaceinvaders in 4 different colors!
  • Monsters shoot and they will kill you
  • Added Hidden “Insane Mode”

Insane Mode

Fire up a JS-Console and type:

gameState.insane = true

And just hit enter, then you will notice that monsters spawn more often, like when you kill one or it despawns, it will also decrease their shooting cooldown :-)

jsgames's People

Watchers

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