Colör Lines

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
darkfrei
Party member
Posts: 1168
Joined: Sat Feb 08, 2020 11:09 pm

Colör Lines

Post 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 3721 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 3721 times
color-lines-05.love
(6.36 KiB) Downloaded 133 times
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
darkfrei
Party member
Posts: 1168
Joined: Sat Feb 08, 2020 11:09 pm

Re: Colör Lines

Post by darkfrei »

Also, it works pretty well on Android.
Screenshot_20220919-122637.png
Screenshot_20220919-122637.png (55.09 KiB) Viewed 3668 times
Screenshot_20220919-123059.png
Screenshot_20220919-123059.png (51.57 KiB) Viewed 3668 times
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
knorke
Party member
Posts: 237
Joined: Wed Jul 14, 2010 7:06 pm
Contact:

Re: Colör Lines

Post 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.
Ross
Citizen
Posts: 97
Joined: Tue Mar 13, 2018 12:12 pm
Contact:

Re: Colör Lines

Post 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 93 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
User avatar
Gunroar:Cannon()
Party member
Posts: 1085
Joined: Thu Dec 10, 2020 1:57 am

Re: Colör Lines

Post by Gunroar:Cannon() »

Or Resolution Solution next time.
The risk I took was calculated,
but man, am I bad at math.

-How to be saved and born again :huh:
User avatar
sanjiv
Citizen
Posts: 88
Joined: Mon Feb 27, 2012 5:11 am

Re: Colör Lines

Post 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.
User avatar
Roland Chastain
Prole
Posts: 34
Joined: Sat Feb 07, 2015 2:30 pm
Location: France
Contact:

Re: Colör Lines

Post by Roland Chastain »

@Ross

It works fine. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests