Re: Cardioid: Sunday kind of LÖVE 1K Challenge
Posted: Mon Dec 30, 2019 6:02 am
Good one zorg.
This last one by grump is amazing.
This last one by grump is amazing.
Alright, let's see how far we can bend the rules.
Code: Select all
function love.draw()love.graphics.print("<3",os.time()%9)end
Code: Select all
function love.draw()love.graphics.print"<3"end
Code: Select all
print"<3"
Code: Select all
a={0,15,10,5,-5,0,0,15}b={0,15,7,15,7,5,0,5}c={}e=0
l=love
z=l.graphics
l.draw=function()z.translate(400,-200)e=.02+e%2
f=e*(2-e)for i=1,8 do
c[i]=50*(f*a[i]+(1-f)*b[i])g=(-1)^i c[17-i+g]=g*c[i]end
z.polygon("fill",l.math.newBezierCurve(c):render())end
Code: Select all
"<3"
Same with meraidho36 wrote: ↑Sat Dec 28, 2019 5:39 am Last time I did this challenge I cheated too, but I used a binary string instead of a base64 encoded string. It allowed me to implement tic-tac-toe with pixel graphics, different colors, score tracking, play against a human and a 2 level AI (no minimax though). Try your luck compressing it into a binary string. Be aware that C++ doesn't likes null characters, so you'll have to screw around with raw text until you get the right compression; automated tools do this but it takes a fair bit of time. You can also improve compression ratio by screwing around with order of text and whatnot. Also, putting the string in a variable instead of passing it directly into the function is a bunch of extra bytes.