10-20-2024, 11:31 AM
(10-18-2024, 04:11 PM)Marcus Wrote: Here's an example of the idea that I mentioned yesterday....
Code:...
function CreateAssets()
' Wall image.
vWallImage = createimage(64, 64)
set image vWallImage
for y = 0 to 63 for x = 0 to 63
if rnd(4) = 0 set color 96 - y, 96 - y/2, 64 + rnd(64)
else set color 144 - rnd(64) - y, 64 - rnd(64) + y/2, 16 + rnd(32)
set pixel x, y
next
set image vWallImage
...
endfunc
I have just learnt that you didn't use any image files ( *.png , *.jpg ) as your game assets, instead you created math-generated-image .... Very Cool