RenderWindow description?

About Monkey 2 Forums Monkey 2 Programming Help RenderWindow description?

This topic contains 2 replies, has 3 voices, and was last updated by  Hezkore 1 year, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8479

    gunduzs
    Participant

    I noticed in one of the /banana apps, there is “gridshooter” and it includes the line:

    Class Game Extends RenderWindow

    what’s a “RenderWindow”? and how does it differ from Window?

    Thanx in advance!

    #8480

    Ethernaut
    Participant

    Hi,

    If you look in the “src” subfolder you’ll find the renderwindow.monkey2 file that contains the RenderWindow class (which is an extension of the Window class), as well as other classes like Player and Actor. It adds some features I need like simple to use parallax, layers, mouse coordinates in world space, etc. I’ve made many changes to it since then, will probably push those changes to Github eventually.

    I made that test when I had just started to learn Monkey2, so don’t take it as a good example on how to do things in the best way possible! 😉

    #8481

    Hezkore
    Participant

    You can always hit F2 (or F1 twice) in Ted2Go after clicking something to jump straight to the source! 🙂
    And the window title tells you where the file you’re viewing is located.

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

You must be logged in to reply to this topic.