But isn't that correct behaviour in terms of the polymorphism as defined in the OOP paradigm?
To be honest I wasn't aware that you *could* inherit in this way - it might be useful to know for future use, thanks for sharing.
At the end of the day t…
I'm currently running on Ubuntu 12.04 beta and was using 11.10 until a couple days ago. It works with both but looks nicer in 12.04. The fonts in 11.10 looked a little wonky.
I'll look into the size difference later tonight.
init is called through all the layers of inheritance but be aware that other functions don't work that way. Suppose you have two classes, Base and Character, in which Base is never instantiated directly with the following functions.
The API would be a great addition. Also, enhancing auto-complete would be nice too. I noticed that it will give the tooltips for some functions even though they don't show in the autocomplete dropdown/popup.
I'm new to lua so I don't quite know all the inner workings of it yet but is there a difference between instantiating an options class like you are showing as opposed to instantiating it like:
stage.options = Options.new()
I thought I would elaborate.
If you want to use Crop you'll loose part of the background so you need to leave an area which has more of the background but has parts that can be cut off. I use this template (based off a 1280x800 screen) to do that…
What I'm currently doing is that I have three different files for each image.
gameBackground.png - 512x320
gameBackground@1.5x.png - 1024x640
gameBackground@2x.png - 1280x800
Then in the project properties I set:
Scale Mode: Letterbox