4

Cart #unterganginderfeuerdaemmerung-0 | 2022-02-21 | Code ▽ | No License
4

# Untergang in der Feuerdämmerung

An entry in the Lovebyte 2022 https://lovebyte.party/ and the program achieved the fifth place in the Tiny Executable Graaphics Competition.

The task in this competition was to achieve a graphic with a program of a length of at most 256 Bytes. We used a Fractal to generate the scenery mathematically. In the .p8 file, it was also necessary to cut some text in the header to meet the size requirements.

Here is the whole code in its full glory:

 ```g=127for x=0,g do for y=0,g do v=x*3/g-2k=v w=y*4/g-3l=w i=0while v*v+w*w<4and ic*89)c=1 pset(x,y,c)i%=9pset(i*91%g,i*g%70,7)line(6+c%4,83+c%8,c,91)end end while(1)?```

Only 254 bytes...

You can have a look at the Demozoo page https://demozoo.org/graphics/305297/.

P#107418 2022-02-21 19:34 ( Edited 2022-02-21 19:53)

Love the burning ship fractal, Good stuffs

P#107423 2022-02-21 21:26

Looks like a fire broke out on the Titanic, @pararaum. Interesting imagery generated from math. For that a gold star.

P#107439 2022-02-22 00:15

Well done. What does the last line do:

`while(1)?`

I wasn't aware the question mark (?) was an operator in Lua or Pico-8's version of Lua.

P#107498 2022-02-22 21:54 ( Edited 2022-02-22 21:54)
1

@UnitVector ?str is shorthand for print(str).
it's basically
While true print()

P#107511 2022-02-23 00:15
1

@SmellyFishstiks thanks! In that case, it's time to go reduce my code by a few tokens to eke in those last few features. :)

Just searched through the manual for this, and found it slipped in near the PRINT section. I wonder why this isn't included in the Shortcuts section...

P#107523 2022-02-23 06:11 ( Edited 2022-02-23 06:28)