Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Defender
#7
(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  Big Grin Big Grin Big Grin

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
Reply


Messages In This Thread
Defender - by Marcus - 01-18-2024, 06:35 PM
RE: Defender - by johnno56 - 01-18-2024, 06:55 PM
RE: Defender - by Marcus - 01-18-2024, 07:15 PM
RE: Defender - by johnno56 - 01-18-2024, 08:36 PM
RE: Defender - by Marcus - 01-20-2024, 08:44 PM
RE: Defender - by 1micha.elok - 01-25-2024, 06:08 AM
RE: Defender - by johnno56 - 01-21-2024, 02:04 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)