01-25-2024, 06:08 AM
(01-20-2024, 08:44 PM)Marcus Wrote: ...all assets generated in game...
It would take months for me to understand these "assets generated in game" , no external sounds, no external image files ... all resources are packed into one single Naalaa file .... It's super amazing
It inspired me to recreate Mario's character pixel-art using ImageFromMonoData function from your game. Voila !
Code:
#win32
set window "Mario - Pixel Art", 1, 1, false, 10
MarioImage = ImageFromMonoData([
[0,0,0,0,0,0,0,1,1,1,0,0,0,0,0],
[0,0,0,0,0,1,1,0,0,0,1,0,0,0,0],
[0,0,0,0,1,0,0,0,0,0,1,0,0,0,0],
[0,0,0,1,0,0,0,0,1,1,1,1,0,0,0],
[0,0,1,0,0,1,1,1,1,1,1,1,1,1,0],
[0,0,1,0,1,1,0,0,0,0,0,1,1,0,0],
[0,1,1,1,1,0,0,0,1,0,1,1,0,0,0],
[0,1,0,0,1,0,0,0,1,0,1,1,1,0,0],
[0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],
[0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],
[0,0,1,0,0,0,1,1,1,1,0,0,1,1,1],
[0,0,0,1,0,0,0,0,1,1,1,1,1,0,0],
[0,0,0,1,1,0,0,0,0,0,1,0,0,0,0],
[0,1,1,0,1,1,1,1,1,1,0,0,0,0,0],
[0,1,0,0,0,1,1,0,0,1,1,0,1,0,0],
[1,0,0,0,1,0,0,1,0,0,1,1,0,1,0],
[1,0,0,1,0,0,0,0,1,0,0,1,0,1,0],
[1,1,0,0,1,0,0,1,0,1,1,0,1,0,0],
[0,1,1,1,1,1,1,0,0,1,1,0,1,0,0],
[0,1,1,1,1,1,1,1,1,1,1,1,1,0,0],
[0,1,1,1,1,1,1,1,1,1,1,1,1,1,0],
[1,0,1,1,1,1,1,0,1,1,1,0,0,0,1],
[1,0,0,1,1,1,0,0,0,1,0,0,0,0,1],
[0,1,0,0,0,0,1,0,0,1,0,0,0,1,0],
[0,0,1,1,1,0,0,0,0,0,1,1,1,0,0]])
set color 0, 0, 0; cls; set color 255,255,255'clear screen
draw image MarioImage,0,0
do;wait 1;until keydown(KEY_ESCAPE)'pause
function ImageFromMonoData(data)
...
endfunc