Hello everyone :) New update is finally here. I am sure you all 4 watchers eagerly waited for this LOL.
I updated website (again). You can check it here: Non2d.github.io. Also, new logo:
So, stop talking, start showcasing.
I created new super awesome splash screen which now also logs progress.
Here is example of old method of drawing images and text (with resource loading displayed on splash screen):
def init(assets)
assets.add :image, "nokia_logo.png"
end
def ready
@image = Graphics.image "nokia_logo.png"
end
def render(dt)
Graphics.print "What hath Matz wrought?", position: [10, 10]
Graphics.draw @image, position: [50, 50]
end
And here is same functionality with new API:
def draw
NON.graphics.print "What hath Matz wrought?", position: [10, 10]
NON.graphics.draw @image, position: [50, 50]
end
Awesome right? Same applies to rest of NÖN functionality. Also, added new file API.
Reading from files:
text = file.read_string
Writing to files:
file.write_string "My god, it's full of stars"
Also, added support for parsing YAML, JSON and XML files. Small example of parsing YAML:
@config = NON.files.parse_yaml @file.read_string
puts @config["name"]