(WIP) Medikaren
This was a game I was making and then covid19 struck and I haven't worked on it to much, I might come back to this and finish it but here it is if you want to look at it. (the game dosen't auto-reset so you will have to your self.)
Hope you enjoy it anyways.
I love the style in your game! How did you achieve the transparent looking game over screen?
Thanks! the shadowing on the ui boxes and gameover screen was done with a function that takes a x1,y1 and x2,y2 and within those cords it getts the pixel color with pget, and then psets that pixel with the color value of that color in my own 16-long table that has the data for what colors should be replaced with what.
uishawdowcol={
0,1,1,2,1,5,6,2,4,9,3,1,1,8,9
}
function shadowbox(x1,y1,x2,y2)
for i=x1,x2 do
for i2=y1,y2 do
a=pget(camx+i,i2+1)
pset(camx+i,i2,uishawdowcol[a])
end
end
Warning though, it uses alot of cpu so if you can somehow optimize it or use it in regulated amounts like I did it should be good. Thanks for playing my crappy game that isen't done!
(PS: I had it so that the y value of the pixel was placed one up, that's just what I did; not needed.)
Thanks for the detailed response @SmellyFishstiks, I really appreciate it :)
[Please log in to post a comment]