Log In  
Follow
abel0910
[ :: Read More :: ]

Cart #zopowunida-0 | 2021-02-15 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

finally finished something, the basics were made in one day, prob 5 hours, then kept adding effects and sound, planning on adding transitions with dithering!

P#87646 2021-02-15 00:23

[ :: Read More :: ]

Cart #sinwaveee-0 | 2021-02-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

sine wave viewer to study the sin() function

P#87572 2021-02-13 02:21

[ :: Read More :: ]

easy way to center any text on the screen, just copy and paste the hcenter(s)

function _init()

-- table with all the text

texts={

a="center text",

b="easy",

c="compact",

e="simple"

}

end

function _draw()

cls()

print(texts.a,hcenter(texts.a),64,7)

print(texts.b,hcenter(texts.b),70,7)

print(texts.c,hcenter(texts.c),76,7)

print(texts.e,hcenter(texts.e),82,7)

end

function hcenter(s)

-- takes a string

-- gets 64, rests the string

-- lenght and multiplys by 2

return 64-#s*2
end

P#87550 2021-02-12 20:38