Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3D-ized 2D, a sort of challenge or a how to question...
#6
Really, output is not good. So then you can use hardware images, output is better. 

Code: (Select All)

Dim Image As Long
Image = _LoadImage("si.png", 32)
ih& = _CopyImage(Image, 33)

Screen _NewImage(640, 480, 32)


Do Until _KeyHit = 27
    _MapTriangle (0, 0)-(0, 479)-(639, 479), ih& To(-2, 2, -3)-(-2, -2, -1)-(2, -2, -1), 0
    _MapTriangle (0, 0)-(639, 479)-(639, 0), ih& To(-2, 2, -3)-(2, -2, -1)-(2, 2, -3), 0
    _Display
    _Limit 20
Loop


[Image: image.png]
it's just that it gets a little more complicated, the movement of the game will run in the virtual software screen and it will be copied as a hardware screen. Yeah, it's a little complicated. I tried with MapTriangle (2D) to figure out why it distorts, I couldn't figure it out.


Reply


Messages In This Thread
RE: 3D-ized 2D, a sort of challenge or a how to question... - by Petr - 03-30-2024, 11:02 PM



Users browsing this thread: 8 Guest(s)