Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
N7 version 24.03.05 released
#1
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.
Reply
#2
"texture mapped polygons"? Could be useful in say... 3D games as walls etc... nudge, nudge, wink, wink... lol

Thank you for the update.
Logic is the beginning of wisdom.
Reply
#3
(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.
Reply
#4
Sounds like fun...
Logic is the beginning of wisdom.
Reply
#5
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.".
Reply
#6
Thanks for the updateSmile .
You have not introduced the polyline library
Reply
#7
(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).
Reply
#8
(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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)