NaaLaa
N7 version 24.03.05 released - Printable Version

+- NaaLaa (https://www.naalaa.com/forum)
+-- Forum: NaaLaa (https://www.naalaa.com/forum/forum-1.html)
+--- Forum: Announcements (https://www.naalaa.com/forum/forum-2.html)
+--- Thread: N7 version 24.03.05 released (/thread-94.html)



N7 version 24.03.05 released - Marcus - 03-05-2024

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.


RE: N7 version 24.03.05 released - johnno56 - 03-05-2024

"texture mapped polygons"? Could be useful in say... 3D games as walls etc... nudge, nudge, wink, wink... lol

Thank you for the update.


RE: N7 version 24.03.05 released - Marcus - 03-05-2024

(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.


RE: N7 version 24.03.05 released - johnno56 - 03-05-2024

Sounds like fun...


RE: N7 version 24.03.05 released - Marcus - 03-05-2024

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.".


RE: N7 version 24.03.05 released - aliensoldier - 03-07-2024

Thanks for the updateSmile .
You have not introduced the polyline library


RE: N7 version 24.03.05 released - Marcus - 03-07-2024

(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).


RE: N7 version 24.03.05 released - 1micha.elok - 03-08-2024

(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.