Log In  

Cart #rainbow_rays-9 | 2024-03-07 | Code ▽ | Embed ▽ | No License
2

P#142565 2024-03-07 21:09

2

You can use a more rainbow like palette for your rainbow rays :
check palette maker.
https://www.lexaloffle.com/bbs/?pid=68190
for example, with
pal({[0]=0,8,137,9,10,135,11,138,139,3,12,140,1,129,141,2},1)
I got this result :

P#142570 2024-03-07 22:31 ( Edited 2024-03-07 22:35)
1

@RealShadowCaster
Thank you for the feedback!
I’m not quit sure how to implement this though…
Im not that good at coding i just started and this was my first game

however i do think that you’re idea was good though and i will try to add it once i’m experienced enough! :)

P#142579 2024-03-08 02:38

Palette is a subject complex but important to master in pico-8, as it allows you to do lots of things like the rainbow example I just shown, but also things like using a single car sprite to draw a lot of them in different colors.
By default, the 16 colors that each pixel can take are the ones shown in the sprite editor. Pico-8 has in fact 32 colors available that can be used onscreen, not just the 16 default ones.
To change what the Nth color will look like onscreen, you use
pal(N,color_number_to_be_used_instead_of_N,1)
the pal({[0]=0,8,137,9,10,135,11,138,139,3,12,140,1,129,141,2},1)
is just a fancy shortcut way of assigning colours to the 16 entries in one go, so same as pal(0,0,1) pal(1,8,1) pal(2,137,1) pal(3,9,1)...
All there is to change to your program is to add the
pal({[0]=0,8,137,9,10,135,11,138,139,3,12,140,1,129,141,2},1)
into _init() to change the default palette into a rainbow palette.

P#142596 2024-03-08 13:32

@RealShadowCaster
I just want to compliment you, I would have never come up with something like that myself, even though I am not in-need for your code, it still does amaze me.

P#142600 2024-03-08 14:11

@RealShadowCaster
here i figured this might be a better version of rainbow rays making them look a bit more rainbow all though it might not look perfect i do think it looks better.

Cart #rainbow_rays_2-0 | 2024-03-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#144193 2024-03-23 03:38

[Please log in to post a comment]