facebook

html5 canvas-javascript game

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #345767 Reply

    AdamRogan
    Member

    just a sample of html canvas-javascript game ive been playing with.

    doesnt resize properly on iphone5 and samsung galaxy2
    works ok on iphone 4 and ipads and notepads.
    im not good on the responsive side of things cant seem to work it out.
    maybe something simple im not seeing.
    but feel free to play with it as you like
    just thought someone might like to have a look and play with the script.

    Attachments:
    You must be logged in to view attached files.
    #348063 Reply

    Code_A
    Member

    @adrog

    I am just starting to mess around with game development. Your example is great!

    One question, where is the call that initiates your game on startup? What instantiates the basketball class?

    EDIT: Figured it out. Sorry, didn’t realize you could start an app this way.

    window.onload = function() {
        game = new Basketball().init();
    };
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: html5 canvas-javascript game

You must be logged in to post in the forum log in