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 15 posts. Once you have the 15 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 Member

    Messages:
    139
    Likes Received:
    0
    Trophy Points:
    16
    Credit:
    - 54.14
    [​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:
    37,558
    Likes Received:
    7,089
    Trophy Points:
    113
    Credit:
    2,396.73
    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 Active Member Ogre Veteran

    Messages:
    2,092
    Likes Received:
    10
    Trophy Points:
    38
    Credit:
    14,301.21
    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 Member

    Messages:
    139
    Likes Received:
    0
    Trophy Points:
    16
    Credit:
    - 54.14
    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 Member

    Messages:
    139
    Likes Received:
    0
    Trophy Points:
    16
    Credit:
    - 54.14

    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 Active Member Ogre Veteran

    Messages:
    2,092
    Likes Received:
    10
    Trophy Points:
    38
    Credit:
    14,301.21
    nicely done

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

    shugo Active Member Ogre Veteran

    Messages:
    2,092
    Likes Received:
    10
    Trophy Points:
    38
    Credit:
    14,301.21
    you have a html5 book? Is it digital or paper?
     
  8. shugo

    shugo Active Member Ogre Veteran

    Messages:
    2,092
    Likes Received:
    10
    Trophy Points:
    38
    Credit:
    14,301.21
    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 Member

    Messages:
    139
    Likes Received:
    0
    Trophy Points:
    16
    Credit:
    - 54.14
    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 Active Member Ogre Veteran

    Messages:
    2,092
    Likes Received:
    10
    Trophy Points:
    38
    Credit:
    14,301.21
    would love to have copy of that
     
  11. rtkwar

    rtkwar Member

    Messages:
    139
    Likes Received:
    0
    Trophy Points:
    16
    Credit:
    - 54.14
  12. Admin Post
    ogreman

    ogreman Ogre In Charge Staff Member GameOgre Admin

    Messages:
    37,558
    Likes Received:
    7,089
    Trophy Points:
    113
    Credit:
    2,396.73
    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 Member

    Messages:
    139
    Likes Received:
    0
    Trophy Points:
    16
    Credit:
    - 54.14
    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:
    37,558
    Likes Received:
    7,089
    Trophy Points:
    113
    Credit:
    2,396.73
    Hope so, also have a 3D one in the oven lol.
     
  15. Admin Post
    ogreman

    ogreman Ogre In Charge Staff Member GameOgre Admin

    Messages:
    37,558
    Likes Received:
    7,089
    Trophy Points:
    113
    Credit:
    2,396.73
    How are you doing in HTML now?
     

Share This Page