OOP for the novice

About Monkey 2 Forums Monkey 2 Programming Help OOP for the novice

This topic contains 5 replies, has 3 voices, and was last updated by  codifies 2 years, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6307

    codifies
    Participant

    aimed squarely at the novice this is a introduction to using Classes to create the beginnings of a simple game…
    http://bedroomcoders.co.uk/object-oriented-programming-with-monkey-2/

    #6373

    cocon
    Participant

    Very cool project, I really like that one. This can become a “banana” 🙂 since it’s very useful.

    #6410

    nerobot
    Participant

    Cool! Notes:

    Some keywords starts with lowercase.

    I prefer to use update before draw.

    #6414

    codifies
    Participant

    which keywords?

    update before or after draw is basically irrelevant because there is always draw before an update, regardless of which way round they happen in the code…

    #6430

    nerobot
    Participant

    Keywords : local, method, function, override . In some places starts with lower chars but in other with upper. Not consistent. I didn’t see the sources, only an article.

    About update order. When you draw before update you will see previous logic frame, for example objects had moved in current frame but you can see it in the next frame.

    RequestRender ask app to call render next frame, it doesn’t call actual render.

    #6434

    codifies
    Participant

    It makes practically NO difference.

    Code is available throygh the link at the end of the article

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.