Re: What's everyone working on? (tigsource inspired)
Posted: Wed Mar 02, 2016 4:15 pm
Don't be offended or anything, since I really liked that concept, but this background reminds me of Ortho Robot a lot :T
Code: Select all
loop = Loop square, 1, {square.a, square.b, nil, 1}, (a, b, c, dir) ->
new = random_color!
new_a = random_color!
new_b = random_color!
uuntil 0, a: new, b: a, c: b
colorease 1, a: new_a, b: new_b, c: a
easeto 1, rot: dir * math.pi/4
uuntil 0, size: max_size/2
easeto 1, size: max_size
new_a, new_b, a, -dir
time = 0
love.draw = ->
{:a, :b, :c, :size, :rot} = square
love.graphics.setColor c
love.graphics.rectangle "fill", 0, 0, width, height
mx, my = (love.math.noise(time/3)-.5)*width*0.7, (love.math.noise(time/4, 0.3)-.5)*height*0.7
d = 1 - size/max_size
love.graphics.push!
love.graphics.setColor b
love.graphics.translate width/2 + mx*d, height/2 + my*d
love.graphics.rotate time/20
love.graphics.rotate rot
love.graphics.rectangle "fill", -size/2, -size/2, size, size
love.graphics.pop!
size -= max_size/2
d = 1 - size/max_size
love.graphics.setColor a
love.graphics.translate width/2 + mx*d, height/2 + my*d
love.graphics.rotate time/20
love.graphics.rotate -rot
love.graphics.rectangle "fill", -size/2, -size/2, size, size, (max_size/2-size)/4, (max_size/2-size/1.3)/3
love.update = (dt) ->
loop\update dt
time += dt
Code: Select all
loop = Loop(square, 1, {square.a, square.b, nil, 1}, function (a, b, c, dir)
local new, new_a, new_b
new = random_color()
new_a = random_color()
new_b = random_color()
uuntil( 0, a: new, b: a, c: b )
colorease( 1, a: new_a, b: new_b, c: a )
easeto( 1, rot: dir * math.pi/4 )
uuntil( 0, size: max_size/2 )
easeto( 1, size: max_size )
return new_a, new_b, a, -dir
end
time = 0
function love.draw()
local size = square.size
love.graphics.setColor(square.c)
love.graphics.rectangle("fill", 0, 0, width, height)
local mx, my = (love.math.noise(time/3)-.5)*width*0.7, (love.math.noise(time/4, 0.3)-.5)*height*0.7
local d = 1 - size/max_size
love.graphics.push()
love.graphics.setColor(square.b)
love.graphics.translate(width/2 + mx*d, height/2 + my*d)
love.graphics.rotate(time/20)
love.graphics.rotate(square.rot)
love.graphics.rectangle("fill", -size/2, -size/2, size, size)
love.graphics.pop()
size -= max_size/2
d = 1 - size/max_size
love.graphics.setColor(square.a)
love.graphics.translate(width/2 + mx*d, height/2 + my*d)
love.graphics.rotate(time/20)
love.graphics.rotate(-square.rot)
love.graphics.rectangle("fill", -size/2, -size/2, size, size, (max_size/2-size)/4, (max_size/2-size/1.3)/3)
end
function love.update(dt)
loop:update(dt)
time = time + dt
end
Nice one! I spent an awful amount of hours on the C64 (something like 30 years ago) with the original game! Good work!MadByte wrote:Just started to redo my old Airtaxi project.
Just an idea since it's relevant: taxi vs. über modeMadByte wrote:Just started to redo my old Airtaxi project.
Still a lot work to do ...
You should make it more clear that you have to retract the landing gear in order to move. It took me a while to figure this out, having never played the original. Looks good, though.MadByte wrote:...
I'll add a quick tutorial at some point since there are some more mechanics which may be importent to know e.g that a passenger who won't pay you (because you took to long) gonna jump out on any platform you land on.davisdude wrote: You should make it more clear that you have to retract the landing gear in order to move. It took me a while to figure this out, having never played the original...
ThanksMadByte wrote:btw. congrats in advance to 1000 posts, davisdude!