Log In  

(WIP) Medikaren

Cart #pastehaste-0 | 2020-04-06 | Code ▽ | Embed ▽ | No License
1

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.

P#74515 2020-04-06 23:48

1

I love the style in your game! How did you achieve the transparent looking game over screen?

P#74651 2020-04-11 16:41

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.)

P#74659 2020-04-12 05:25 ( Edited 2020-04-12 05:28)
:: Felice
1

Cute!

(psst: "field")

P#74685 2020-04-13 05:19
1

Thanks for the detailed response @SmellyFishstiks, I really appreciate it :)

P#74706 2020-04-13 18:10

@jeremyindie No problem

P#74708 2020-04-13 18:37

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-06-04 15:43 | 0.040s | 4194k | Q:44