athanazio

LD14

lets do it

Participated in the GlobalGameJam This year and was pretty nice, let´s see what I can in this challenge. will use Love2d game engine.

Tags: love2d, lua

desktop ready

I’m with 50% of the brain working … but the desktop is ready, run desktop run !! lol

Tags: desktop, half-brain, sleepy

Comments

sinoth
17. Apr 2009 · 22:54 UTC
what is that thing above the headphones?

just cant sleep =)

Just made the first draft of the game scene, and wrote some rules about the “Diodontidae” lets works on this tomorrow when I awake.

good luck all, c you tomorrow

Tags: Diodontidae, draft, sketch, sleep, zzzz

Diodontidae necandi – final version !

YEs ! YEahhh

Helpthe little Diodontidae to clean up the sea !

download here the LOVE player and then
download the game diodontidae_necandi_lurumdare14.love

or download the Windows package here Diodontidae_necandi_LurumDare14_Win.zip

Tags: final

Comments

shizzy0
21. Apr 2009 · 22:31 UTC
That’s pretty cool concept for the game. I may have to try LOVE.

Diodontidae – postmortem

I believe a better name than post mortem would be lessons learned, so let’s see my lessons learned from the  competition. I would love to read this before the compo, as I can’t make the time go backawards, let try at least to help other newbies.
1. create the menu navigation at the start of the competition
As I was fighting agains some physics problems during the development process most of the menu was left behind. Then I realized 30 minutes to the end that my menu would be an image =) and a play button…

The lesson on this would be, use time in the middle of the nightmares to do these brainless activities, because what can go wrong while build a menu ? =)

2. draw in the paper build and color in the computer
That helped alot, I save my day manipulate the lines with inkscape, but … in order to slice images I have a nightmare with inkscape, go with Gimp works as a breeze

3. dont split images, let the engine split for you
ahhhh I spend some hours cutting images lol !!, could use something like http://love2d.org/docs/love_graphics_draws_1.html to draw a subsprite of the image …

4. make physics work for you
Oh Well after the physics hit me in the head, I learned some details and was able to make it work in a decent way, special note for the boats that hang around over the sea, for that I created a sequence of x,y that is the path to the boats, and I try to follow the path, I believe if I make the water line as an object and change its group to only colide with the boat would be the best to move the boat around.

5. clean the tables in one place only.
Not sure why, buit when I was removing items from my objects list in teh collision handler the LOVE was just crashing … workaroiund that I found : flag to items to be removed and remove in the update() method and one by one from each table, this is call at the end of the update() for each cleanable table :

[code]— clean the tables
function cleanTable(table2Clean)

for n=1,table.getn(table2Clean),1 do
if table2Clean[n].dirty ~= nill then
table2Clean[n].poly:destroy()
table2Clean[n].body:destroy()
table.remove( table2Clean, n )
break
end
end
end
[/code]

and at the collision handler, I dont remove the pig from the list, just flag it
and I believe that this would be a nice way to animate the pig booom =)
by using a multistate, like alive/almost dead/dying/im outa here :)
would change the image section, or play an animation … and at the end remove from the list
that would be great …

[code]
function killThePig( id )

love.audio.play( audioCollision, 1 )
pigsKilled = pigsKilled +1

for n=1,table.getn(pigs),1 do
if pigs[n].poly:getData() == id then
pigs[n].dirty = true
break
end
end
end
[/code]

6. reusable files should be in a folder
I’m using for labels the .lua classes that I made called LOVEly-eyes, but I had this problem with the Text object that wasnt transparent … Oh well I went in the code changed the super class, Rectangle to handle this and the Text is transparent by default, cool, but but but … :) after that I just copied all the files from the LOVEly-eyes folder to my game folder … too bad because I copied a main.lua file together … If I wasnt using subversion would be a nightmare … now LOVELy-eyes are in a separated folder =)

7. use a version control system
I used subversion, saved me when I made an stupid folder copy … revert and just lost some minutes of work… bu remember keep on committing =)

8. put together a zip with everything
Better that just the .love file, create a package with the execs, the best would be create an installer.

9. level up level up !!!
people like rewards, so more than the score I should add level concept, just with faster attack of the pigs, or a different scenario with different speed .. hummmm that would be cool a .lua file for each level :)

10. collision has 2 sides … A and B
It took me some time to realize that A and B collision data, first they are the DATA from the polygon nothing else, just disconnected data, not a reference, not and pointer … hehehhe string data what makes very nice and unplugged from the code, and you have to test both sides, if wherever A colide on B and the oposite, this was my colision code

[code]function collision(a, b, c)

if string.starts(a, “pig”) and string.starts(b, “battery”) then
killThePig( a )
removeTheBattery( b )
elseif string.starts(b, “pig”) and string.starts(a, “battery”) then
killThePig( b )
removeTheBattery( a )
elseif a == DIODONTIDAE and string.starts(b, “food”) then
eatFood( b )
elseif b == DIODONTIDAE and string.starts(a, “food”) then
eatFood( a )
end

end

function string.starts(String,Start)
return string.sub(String,1,string.len(Start))==Start
end
[/code]

note that I used start() because I add the object id after the type, so I can grabb it from the list, something like “crap_2”, “crap_3”

11. scroll the view is possible Luke… use the force !
Ha ! not the force, at the end I solved the screen scrolling with a simple solution, calculated a shif from the main character and update this shift in the update() method and every single draw has this shift. So the camera is following the character, thats stays in the screen all the time, and to avoid the char to drop outside the world I add invisible walls on left and right side and check if the cameraX is in the possible range,

this in the start of the code

[code]
startCameraX = love.graphics.getWidth( ) / 2
startCameraY = 200

cameraX = -startCameraX
cameraXLimit = {}
cameraXLimit.start  = 0
cameraXLimit.finish = -2905
[/code]

+ cameraX on each draw
[code]
love.graphics.draw(diodontidae.image,
diodontidae.theChar:getX() + cameraX,
diodontidae.theChar:getY())

—— draw the batteries
for n=1,table.getn(batteries),1 do
love.graphics.draw(
imageBattery,
batteries[n].body:getX() + cameraX,
batteries[n].body:getY(),
batteries[n].body:getAngle() )
end
[/code]
this on the update()

[code]    cameraX = startCameraX – diodontidae.theChar:getX()

— keep the camera in the boundaries
if cameraX > cameraXLimit.start then
cameraX = cameraXLimit.start
elseif cameraX < cameraXLimit.finish then
cameraX = cameraXLimit.finish
end
[/code]

Tags: Diodontidae, lessons learned, Love, lua, postmortem

Comments

Jpfed
05. May 2009 · 01:08 UTC
Regarding destroying objects: I’m weirded out by modifying the game objects table while iterating over it. Even if it works, it seems like it shouldn’t. I do something like

timetris – this is the real tetris :P

Tired of a tetris that give you headaches ? tired of a tetris that show fancy pics as background ? tired of question ? play timeTris ! a tetris that clocks are the pieces, and in the hard mode … hummm not sure you can handle …

click here to download.

screenshots

Tags: clock, final, MiniLD, time, timetris

Comments

27. May 2009 · 15:10 UTC
i didn’t get too much out of this from what i played. partly this might be a legibility issue…

LD15

I’m not alone for the LD15

ld15_friends

My friends are ready to go with me on this LD15, and so these others:

  • Java 1.5
  • Eclipse
  • Jlayer (yes still alive)
  • Gimp
  • Inkscape
  • SFXR (my new best friend)
  • some unknown installer friend (will decide tomorrow)
  • lots of water
  • random food (this time will take pics)
  • some good music to cleanup my brain, remove old ideas, and leave room for the new ones.

edit:
more friends:

will use this to record my screen each minute and build a video :) – this one I tested hehehe
http://www.athanazio.com/2007/06/02/screen-capture-2/

planning to build the video using this
http://www.snapfiles.com/download/dlssmm.html (didn’t test yet)

edit2 : will use this java classes to help me
vacavitoria-engine-2009-08-25.zip

Tags: deskphoto, friends, homer, LD #15 - Caverns - 2009, mickey, yoda

Comments

28. Aug 2009 · 08:20 UTC
You do realize that Homer isn’t going to help you finish your game?
28. Aug 2009 · 09:35 UTC
no ?? at least yoda will do something… and the penguim will keep me marching :) LOL

be brave

Comments

Edison Moreira
01. Sep 2009 · 02:39 UTC
Good Job !

the cave of Glaucon

aha ! now I can go to sleep… I have the ideia to dream on :) Glaucon after a boring class from Plato fall in a cave and have to escape from it, but in order to escape will have to find the sequence that opens the door of the cave, the keys are around the cave, but you cant see all around because the light dont go too far … and watch out the monsters of the cave Glaucon !! throw fire on it !!

here are the drafts

draft_page1

draft_page2

draft_page3

Tags: cave, enlightment, fire, glaucon, idea, LD #15 - Caverns - 2009, light