1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. To chat with the GameOgre community, you need to have at least 100 posts. Once you have the 100 posts, post at Become A New Ogre
    Dismiss Notice

small question about Html5

Discussion in 'Online Game Development' started by rtkwar, Sep 27, 2013.

  1. rtkwar

    rtkwar Big Brute New Ogre

    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    18
    Credit:
    298.66
    [​IMG]
    For example
    I want to draw a spaceship No. 3
    How do I know the coordinates of this part of the picture
    Is there some way
    Or must guess and I try some numbers
     
  2. Admin Post
    ogreman

    ogreman Ogre In Charge Staff Member GameOgre Admin

    Messages:
    51,981
    Likes Received:
    8,869
    Trophy Points:
    113
    Credit:
    497,296.69
    Ah, you are making a game in HTML? We have one called Ogre Bounce, but it was made by somebody else.

    Hopefully, somebody else will know the answer to this question:).
     
  3. shugo

    shugo Elite Ogre Ogre Veteran

    Messages:
    2,093
    Likes Received:
    12
    Trophy Points:
    38
    Credit:
    15,378.42
    actually html canvas is basically javascript

    wish i could help with the coordinates but it's not my cup of tea to be honest
     
  4. rtkwar

    rtkwar Big Brute New Ogre

    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    18
    Credit:
    298.66
    Yes, I hope that
    I decided to study every day 1 to 5 pages from html5 book
    No problem
    Anyway thank you for all
     
  5. rtkwar

    rtkwar Big Brute New Ogre

    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    18
    Credit:
    298.66

    anyway i solved this problem
    I used Status Bar in Paint program
    To determine The X and Y for a portion of the image
    [​IMG]
    I painted each part of the image in a different place
    code work now (i changed X only But Y=0)
    [​IMG]
     
    Last edited by a moderator: Sep 28, 2013
  6. shugo

    shugo Elite Ogre Ogre Veteran

    Messages:
    2,093
    Likes Received:
    12
    Trophy Points:
    38
    Credit:
    15,378.42
    nicely done

    so you have different images of the spaceship?
     
  7. shugo

    shugo Elite Ogre Ogre Veteran

    Messages:
    2,093
    Likes Received:
    12
    Trophy Points:
    38
    Credit:
    15,378.42
    you have a html5 book? Is it digital or paper?
     
  8. shugo

    shugo Elite Ogre Ogre Veteran

    Messages:
    2,093
    Likes Received:
    12
    Trophy Points:
    38
    Credit:
    15,378.42
    ah that's what I use paint for too. Paint is good for that. For everything else I use Gimp though. Is a much better program than paint and it's free to download.
     
  9. rtkwar

    rtkwar Big Brute New Ogre

    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    18
    Credit:
    298.66
    spaceship image came with the source files of the book
    I used the code to cut parts from the picture and paste it in different places
    (sprite Sheets)
    I also used rotate function
    In order to change the angles
    And drawing the ship at different angles
    [​IMG]
    may be I will bring Other Images from: Reiner`s Tilesets

    digital , I Read this book:
    [​IMG]
    Book Index:
    [​IMG]
    I did not Read the the whole book (I finished from chapter 1)
    But it seems a good book and easy
     
    Last edited by a moderator: Oct 2, 2013
  10. shugo

    shugo Elite Ogre Ogre Veteran

    Messages:
    2,093
    Likes Received:
    12
    Trophy Points:
    38
    Credit:
    15,378.42
    would love to have copy of that
     
  11. rtkwar

    rtkwar Big Brute New Ogre

    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    18
    Credit:
    298.66
  12. Admin Post
    ogreman

    ogreman Ogre In Charge Staff Member GameOgre Admin

    Messages:
    51,981
    Likes Received:
    8,869
    Trophy Points:
    113
    Credit:
    497,296.69
    Thanks, wanted to learn more about HTML5 since we now have a game in it:).

    Ogre Bounce Browser Game on HTML 5

    The developer made a good start, but I think it needs a lot of work before becoming a complete game.
     
  13. rtkwar

    rtkwar Big Brute New Ogre

    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    18
    Credit:
    298.66
    you welcome
    and good luck with your game
    Maybe you are going to make great games in the future
     
  14. Admin Post
    ogreman

    ogreman Ogre In Charge Staff Member GameOgre Admin

    Messages:
    51,981
    Likes Received:
    8,869
    Trophy Points:
    113
    Credit:
    497,296.69
    Hope so, also have a 3D one in the oven lol.
     
  15. Admin Post
    ogreman

    ogreman Ogre In Charge Staff Member GameOgre Admin

    Messages:
    51,981
    Likes Received:
    8,869
    Trophy Points:
    113
    Credit:
    497,296.69
    How are you doing in HTML now?
     

Share This Page