NaaLaa

Full Version: N7 version 24.03.05 released
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
https://naalaa.com/n7/N7_240305.zip

I haven't experimented with (or even tested, to be honest) the new commands much yet, and the included examples are minimal. But I will provide game examples soon.

Release notes
2024-03-05
  • 'this.' can now be written as just '.'
  • Added the commands 'draw image xform' and 'draw poly image'. You can find two small examples under examples/help: draw_image_xform.n7 and draw_poly_image.n7

'draw image xform' is for drawing transformed (scaled and rotated) images. 'draw poly image' is for drawing texture mapped polygons.
"texture mapped polygons"? Could be useful in say... 3D games as walls etc... nudge, nudge, wink, wink... lol

Thank you for the update.
(03-05-2024, 07:37 PM)johnno56 Wrote: [ -> ]"texture mapped polygons"? Could be useful in say... 3D games as walls etc... nudge, nudge, wink, wink...  lol

Thank you for the update.

'draw poly image' doesn't support z coordinates yet, so you can't get perspective correct texture mapping. On the other hand, the first playstation only had affine texture mapping, so ...

I have lots of experiments to do with the new commands, that much I can say. Implementing them is one thing, using them is another.
Sounds like fun...
Code:
obj = [
    x: 0, y: 0, dx: 0, dy: 0,
    Update: function()
        ' this.x = this.x + this.dx
        ' this.y = this.y + this.dy
        ' Can now be written as:
        .x = .x + .dx
        .y = .y + .dy
    endfunc,
    GetX: function()
        return .x
    endfuc
]

An example of the first bullet in the release notes. I got sick of writing "this.".
Thanks for the updateSmile .
You have not introduced the polyline library
(03-07-2024, 04:37 PM)aliensoldier Wrote: [ -> ]Thanks for the updateSmile .
You have not introduced the polyline library

Nope, I decided to wait with that library until I've fixed the "closed curve" request (it's not difficult, but I'm too busy playing around with other things).
(03-05-2024, 07:15 PM)Marcus Wrote: [ -> ]...

Release notes
2024-03-05
  • 'this.' can now be written as just '.'
  • Added the commands 'draw image xform' and 'draw poly image'. You can find two small examples under examples/help: draw_image_xform.n7 and draw_poly_image.n7

'draw image xform' is for drawing transformed (scaled and rotated) images. 'draw poly image' is for drawing texture mapped polygons.

Thank you for your precious and invaluable updates.
Awesome.