made with löve
http://globalgamejam.org/2011/alienslime
AlienSlime! (GlobalGameJam2011)
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
AlienSlime! (GlobalGameJam2011)
love-android - gamejams
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: AlienSlime! (GlobalGameJam2011)
Haha, very nice game. Reminds me of deathball a lot.
Re: AlienSlime! (GlobalGameJam2011)
Yeah, kill those puny humans!
- ghoulsblade
- Party member
- Posts: 111
- Joined: Sun Oct 31, 2010 6:11 pm
Re: AlienSlime! (GlobalGameJam2011)
we used the "tiled" map editor ( http://www.mapeditor.org/ )
which supports multiple layers and has a xml based map format.
since we couldn't find a loader for lua/love at the gamejam,
i now extracted everything needed to load and display one of those map files into a single lua file,
might be useful for a few people at the next game jam.
EDIT : also wrote it to the wiki : http://love2d.org/wiki/TiledMapLoader
which supports multiple layers and has a xml based map format.
since we couldn't find a loader for lua/love at the gamejam,
i now extracted everything needed to load and display one of those map files into a single lua file,
might be useful for a few people at the next game jam.
EDIT : also wrote it to the wiki : http://love2d.org/wiki/TiledMapLoader
- Attachments
-
- love_tiledmap.zip
- demo
- (140.13 KiB) Downloaded 2406 times
-
- tiledmap.lua
- tiledmap.lua
- (4.41 KiB) Downloaded 1346 times
Last edited by ghoulsblade on Mon Jan 31, 2011 6:16 pm, edited 1 time in total.
love-android - gamejams
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: AlienSlime! (GlobalGameJam2011)
When I write def I mean function.
Re: AlienSlime! (GlobalGameJam2011)
Re: AlienSlime! (GlobalGameJam2011)
Very nice work and the amount of replies you have for this project is just epic very very nice work 10 ++ for you and the dev team
Sir Kittenface
Möko IDE Codename (Erös) Returns Soon
I am dyslexic so if any of my replys confusing please just ask me to reword it as this will make things a lot easier for all parties lol.
Möko IDE Codename (Erös) Returns Soon
I am dyslexic so if any of my replys confusing please just ask me to reword it as this will make things a lot easier for all parties lol.
Re: AlienSlime! (GlobalGameJam2011)
I found this before the Advanced Tiled Loader, and this seems sufficient with the following addition:
So I can access defined start areas etc.
*edit*
I had a need to access created properties (ie. a chest object could contain a 'loot' property, so I ended up expanding this. I should really switch the loader I'm using, but this is working for now. Hm.
Code: Select all
function TiledMap_Objects(filename, objectname)
local xml = LoadXML(love.filesystem.read(filename))
local objects = {}
for k, sub in ipairs(xml[2]) do
if (sub.label == "objectgroup") then
print ("found objectgroup")
for l, child in ipairs(sub) do
to = child.xarg
to.properties = nil
if child[1] ~= nil then
to.properties = {}
local property = {}
for i, prop in ipairs(child[1]) do
local name = prop.xarg.name
local value = prop.xarg.value
--property[name]=value
property.name = name
property.value = value
end
table.insert(to.properties, property)
end
if objectname == nil then
table.insert(objects, to)
else
if child.xarg.name == objectname then
table.insert(objects, to)
end
end
end
end
end
return objects
end
*edit*
I had a need to access created properties (ie. a chest object could contain a 'loot' property, so I ended up expanding this. I should really switch the loader I'm using, but this is working for now. Hm.
-
- Prole
- Posts: 1
- Joined: Tue Jul 21, 2015 1:43 pm
- Location: Australia
- Contact:
Re: AlienSlime! (GlobalGameJam2011)
Thanks for the Tiled loader, it's a great start.
I've started extending it a bit (CSV encoding support, arbitrary tile sizes) at https://github.com/cxong/LoveTiledMap so feel free to try it out!
I've started extending it a bit (CSV encoding support, arbitrary tile sizes) at https://github.com/cxong/LoveTiledMap so feel free to try it out!
Who is online
Users browsing this forum: Ahrefs [Bot] and 3 guests