Adblock breaks this site

HTML5 Canvas game - forksteroids

Discussion in 'Web Programming' started by Jazz00006, Nov 29, 2012.

  1. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    HTML5 Canvas game - forksteroids

    For GitHubs GameOff Challenge I made a simple HTML5 game.

    I've never touched the HTML5 canvas stuff before so everything I did I learnt on the fly.
    I don't think the code is perfect, and in fact the last portion of the work was rushed and still needs to be cleaned up. But it's working and playable, and for those interested it offers a chance to learn some things about JavaScript and HTML5 canvas.



    The object of the game is simply to dodge all of the spaceforks flying from the top of the screen. No shooting or powerups like in fancy games.

    Arrow keys move the players ship.


    Also comes with high scores. The input field has no checking for swear words, and I take no responsibility for what others type as their name.


    You can find the playable game here: http://lab.jcode.me/forksteroids/
    And the source here: https://github.com/JasonMillward/game-off-2012
     
  2. iJava

    iJava .Previously known as RSGoldRush
    $200 USD Donor New

    Joined:
    Nov 21, 2011
    Posts:
    1,197
    Referrals:
    11
    Sythe Gold:
    485
    Discord Unique ID:
    220055593568829441
    HTML5 Canvas game - forksteroids

    Fun game, reloading is a bit slow. You should add different difficulties...
     
  3. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    HTML5 Canvas game - forksteroids

    Cheers. I probably should do something about the reloading, but after the competition is over.

    The difficulty increases by adding an extra spacefork for every 3000 points.
    Eventually it becomes impossible by design.
     
  4. iJava

    iJava .Previously known as RSGoldRush
    $200 USD Donor New

    Joined:
    Nov 21, 2011
    Posts:
    1,197
    Referrals:
    11
    Sythe Gold:
    485
    Discord Unique ID:
    220055593568829441
    HTML5 Canvas game - forksteroids

    I was meaning for the user to change, instead of adding forks just change the amount of forks that fly at you.
     
  5. NameGuy

    NameGuy Guru
    Banned

    Joined:
    Jul 22, 2012
    Posts:
    1,007
    Referrals:
    1
    Sythe Gold:
    0
    HTML5 Canvas game - forksteroids

    Really fun game ^_^ Nice work!
     
  6. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    HTML5 Canvas game - forksteroids

    Thank you.


    Fair enough, should be an easy change to make.
     
  7. n4n0

    n4n0 Legend
    Village Drunk Legendary Heavenly Highly Respected

    Joined:
    Jun 17, 2007
    Posts:
    14,207
    Referrals:
    66
    Sythe Gold:
    10,701
    Poképedia
    Charmeleon Abra Gastly
    Tier 1 Prizebox (15) Live Streamer Pokémon Trainer (15) The Dark Side Oktoberfest 2013 MushyMuncher (2) Rupee (4) St. Patrick's Day 2013 Poker Chip
    Not sure if srs or just newfag... (9) Ninja Tortoise Penis DIAF St. Patrick's Day 2014 Cool Kid (6) Cook (4) Heidy (17) Halloween 2013 Village Drunk (8)
    Voluntaryist (3) We Are Legion (4) Penguin (9)
    HTML5 Canvas game - forksteroids

    Just took over the #2 spot on the highscores. Don't have a high enough attention span to get #1 :p
     
< JavaScript/HTML Forms? | CSS Help >


 
 
Adblock breaks this site