'Push' Game

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
Jake
Prole
Posts: 27
Joined: Sun Jul 20, 2008 2:01 pm

'Push' Game

Post by Jake »

Here is the game I was developing for Love. Unfortunately college has been a bit hectic and I have had zero time to do any coding at all. Too much Maths! I've decided I shan't be continuing with this game for a while, and if I do it will be on PSP. It was nice knowing you, Love.

This game is not finished and there isn't much to play. But I felt it was a massive waste of time if I just let it rot on my hard drive. And for some people it's nice to look at code of working games.

Image
Image
Image

It's pretty modular too. Here's how levels are made.

Code: Select all

LEVEL.Category = "Yummy Custom Levels"
LEVEL.ID = 1
LEVEL.Name = "Level the first one"

LEVEL.Map = {
	{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
	{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
	{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
	{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
	{1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1},
	{1,0,0,1,3,0,0,0,0,0,0,0,0,0,0,1},
	{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
	{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
	{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
	{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
	{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
	{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
	{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
	{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
	{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
	{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
}

function LEVEL:Start()
	Player:SetPos(2,2)
	
	AddItem( 10, 7, "Crate" )
	local light = AddItem( 5, 5, "Light" )

	local tile = GetTile(5, 6)
	function tile:OnPushOver( item, xdir, ydir )
		if item.type == "Crate" then
			light:TurnOn()
		end
	end
end
zlib license.
Attachments
push.love
(55.95 KiB) Downloaded 566 times
User avatar
SamPerson12345
Prole
Posts: 41
Joined: Sat Aug 30, 2008 5:35 pm

Re: 'Push' Game

Post by SamPerson12345 »

Very nice! The only bug I found is that you can play at awesome difficulty even though the level isn't unlocked. Otherwise, it looks great! It just needs some more levels. :D
User avatar
thelinx
The Strongest
Posts: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

Re: 'Push' Game

Post by thelinx »

This reminds of that game called "Chips". Ever heard of it?
User avatar
Xfcn
Citizen
Posts: 65
Joined: Sat Jul 12, 2008 6:53 am

Re: 'Push' Game

Post by Xfcn »

Aaah. Sokoban with a point. Interesting.
"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
User avatar
farvardin
Party member
Posts: 167
Joined: Sat Jun 28, 2008 6:46 pm

Re: 'Push' Game

Post by farvardin »

very nice and smooth. The menu and tutorial are impressive. It's a pity the movement of the player is not that smooth. I hope you will continue to work on this game.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 5 guests