Log In  

Cart #cooling_particles-0 | 2019-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

Inspired by @dw817

Controls:

-Arrow Keys to move

// comment cls() call in draw method for those effects:

P#70739 2019-12-09 04:05 ( Edited 2019-12-09 07:32)

:: dw817
1

Cart #refoyoyaru-0 | 2019-12-09 | Code ▽ | Embed ▽ | No License
1

Definitely looks a lot better with the CLS off.
WOW ! It's like a fiery dragon ! Hats off and a STAR to you.

Minju instead of using NEW and DEL you can just scan the whole screen for colors to "burn" them. That's what I do HERE:

https://www.lexaloffle.com/bbs/?tid=27955

P#70740 2019-12-09 04:14 ( Edited 2019-12-09 04:17)

@dw817 haha nice !! The credits belong to you since I got inspired to do this by your version actually :D I only saw a gif these days in the gif dump so I am really happy that I now get to try out your version and get these tips from you!

P#70746 2019-12-09 05:11 ( Edited 2019-12-09 05:14)
:: dw817

Hey ! Glad to help, @Yesyoor. Yours is quite different though in that it makes a cool Dragon's tail. I'm thinking you could make a wicked SNAKE game where you eat glowing fireballs and have to avoid moving ice-bugs or ice-cubes or something.

I'm done for the day though. Have a good one !

P#70748 2019-12-09 05:15

:D thanks !
I started my pico-8 journey with my version of snake and currently I am working on a top down 2d game using libgdx, thats why I felt like recreating smaller things here and try stuff out ;)

Thanks again for showing me the people behind the magic :D

P#70750 2019-12-09 05:24

@dw817
you said you look for a color and burn them, I only found the pal() function in your code. Do you mean you change its transparency to "burn" it? Btw your code is so compact, impressive!

P#70980 2019-12-13 15:56 ( Edited 2019-12-13 15:58)
:: dw817

It's pretty straight-forward and the reason my code is often compact is I'm bone lazy. :)

I rarely use a variable name that exceeds 2-letters or an array that is 3. Now if @zep does make a custom IDE or something where you have 64-characters across, I may start to use longer variable names.

The PAL() function is just to set the colors in a line from dark to light for the fire.

Then I scan the screen a bunch of times. If the pixel is not black I change it to the next color darker and plot a random one beside it. By doing this thousands of time you get a nice burn effect.

Glad you're enjoying this code ! I also make use of this for the logo in my major release game, "Mildew Manor" found HERE:

https://www.lexaloffle.com/bbs/?tid=31730

P#70986 2019-12-13 16:52 ( Edited 2019-12-13 16:53)

yes please! More characters across would really be a big help! I tried coding in vs and then copying it to pico-8 once, but it was no good and I stick to code everything inside the pico-8 editor :D a possibility to zoom would be awesome!

I ll look up your code again right away :D

P#71019 2019-12-14 15:47 ( Edited 2019-12-14 15:48)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-11-28 22:23 | 0.052s | 4194k | Q:58