Page 1 of 1

'Push' Game

Posted: Sat Oct 04, 2008 9:05 pm
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.

Re: 'Push' Game

Posted: Sun Oct 05, 2008 12:32 am
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

Re: 'Push' Game

Posted: Mon Oct 06, 2008 1:01 pm
by thelinx
This reminds of that game called "Chips". Ever heard of it?

Re: 'Push' Game

Posted: Tue Oct 07, 2008 6:28 am
by Xfcn
Aaah. Sokoban with a point. Interesting.

Re: 'Push' Game

Posted: Sun Oct 12, 2008 7:25 pm
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.