Page 1 of 1

Colör Lines

Posted: Sun Sep 18, 2022 9:11 pm
by darkfrei
Hi all!

Here is a Color Lines-like game, where you are need to place 5 color balls (or more than 5) in line of them.
Settings are not available, but you can play it.
2022-09-18T22_44_07-Color Lines 1280 800.png
2022-09-18T22_44_07-Color Lines 1280 800.png (50.43 KiB) Viewed 3988 times
2022-09-18T22_44_12-Color Lines 1280 800.png
2022-09-18T22_44_12-Color Lines 1280 800.png (56.33 KiB) Viewed 3988 times
color-lines-05.love
(6.36 KiB) Downloaded 139 times

Re: Colör Lines

Posted: Mon Sep 19, 2022 10:32 am
by darkfrei
Also, it works pretty well on Android.
Screenshot_20220919-122637.png
Screenshot_20220919-122637.png (55.09 KiB) Viewed 3935 times
Screenshot_20220919-123059.png
Screenshot_20220919-123059.png (51.57 KiB) Viewed 3935 times

Re: Colör Lines

Posted: Mon Sep 19, 2022 11:06 pm
by knorke
my laptop has 1366x768 resolution, so the window did not fully fit vertically.
it was playable by moving the titlebar offscreen.
https://www.youtube.com/watch?v=QQXGgNeivxg
(I am making a "playing wip games from love2d forum" playlist)

I like the jumping animation of the bubbles. It seems there is no way to lose: When the last tile gets field by a small bubble, you can still jump on it and endlessly shuffle bubbles until you get a line.
Some effect when clearing a line would be good, too. Maybe some combo-system too.

Re: Colör Lines

Posted: Tue Sep 20, 2022 6:36 pm
by Ross
I would set the window to be resizable and add something like this to your love.draw, so anyone can play it at whatever resolution they like:

Code: Select all

local gameW, gameH = 1280, 800

function love.draw()
	local winW, winH = love.graphics.getDimensions()
	local scale = math.min(winW/gameW, winH/gameH)
	local extraX, extraY = winW - gameW*scale, winH - gameH*scale
	love.graphics.push()
	love.graphics.translate(extraX/2, extraY/2)
	love.graphics.scale(scale, scale)

	cl.draw()

	love.graphics.pop()
end
[Edit] Ach, sorry, that by itself breaks mouse coordinates and the display after switching screens. Here's a properly working main.lua:
main.lua
(1.35 KiB) Downloaded 97 times
And then in color-lines.lua, in game.load and menu.load, replace

Code: Select all

local w, h = love.graphics.getDimensions()
with:

Code: Select all

local w, h = gameW, gameH

Re: Colör Lines

Posted: Sat Sep 24, 2022 7:30 pm
by Gunroar:Cannon()
Or Resolution Solution next time.

Re: Colör Lines

Posted: Sun Sep 25, 2022 1:07 am
by sanjiv
O cool! Maybe if the little circles were pulsing (growing bigger and smaller), then it would be more clear that they're going to "appear" after the player's next move.

Re: Colör Lines

Posted: Mon Dec 19, 2022 8:23 am
by Roland Chastain
@Ross

It works fine. Thanks!