Search found 190 matches

by markgo
Fri Jan 18, 2013 6:19 pm
Forum: Libraries and Tools
Topic: Re: Tile collision example
Replies: 8
Views: 10022

Re: Tile collision example

Update! It now supports slopes and continuous collision detection. Syntax is similar to my lib: ATC, except you don't need Tiled. Just feed it a grid structure and a table with tile properties. Modify it however you want!
by markgo
Fri Jan 18, 2013 6:10 pm
Forum: Support and Development
Topic: [Solved] Combining Collision Tiles In tile-based Game?
Replies: 5
Views: 2370

Re: Combining Collision Tiles In tile-based Game?

I would not recommend using HardonCollider for tile collision. There are plenty of examples in the forum that demonstrates how to handle tile collision. With that said, if you are willing to use HC for tile collision, you can do what MarekkPie suggested with the object layer in tiled.
by markgo
Thu Jan 17, 2013 7:14 pm
Forum: Support and Development
Topic: Share your favourite helper functions
Replies: 48
Views: 16392

Re: Share your favourite helper functions

A function to force fixed timestep return function(timestep,maxBuffer) local stepBuffer = 0 timestep = timestep or 1/60 -- 60 updates per second maxBuffer = maxBuffer or 1/10 assert(maxBuffer >= timestep, 'Max time step must be greater than or equal to desired time step') return function(dt,func) st...
by markgo
Mon Jan 14, 2013 11:41 am
Forum: Support and Development
Topic: Lua 5.2
Replies: 9
Views: 3117

Re: Lua 5.2

You can modify bump to store it's entries in a weak table. That'll auto collect when you want something gone.
by markgo
Fri Jan 11, 2013 7:42 pm
Forum: Games and Creations
Topic: Indie Game Story, First Official Screenshots!
Replies: 14
Views: 10159

Re: Indie Game Story, First Official Screenshots!

Sounds like a good game to not work on my game.
by markgo
Fri Jan 11, 2013 7:36 pm
Forum: Support and Development
Topic: Write to file in real time
Replies: 2
Views: 1455

Re: Write to file in real time

Ah you read my mind. I intend to execute the function multiple times for different output files. Your version is definitely nicer as it catches errors. However it's still not working for me. It seems that the file updates itself arbitrarily for me. Sometimes it updates after one print out, and somet...
by markgo
Thu Jan 10, 2013 9:26 pm
Forum: Support and Development
Topic: Write to file in real time
Replies: 2
Views: 1455

Write to file in real time

I'm trying to modify the print function to print to a text file in real time for debugging purposes. I can't get it to update the newly created text file without closing it and opening it again before each write operation. I've tried file:flush() and file:setvbuf('no') to force the log file to updat...
by markgo
Tue Jan 08, 2013 9:52 pm
Forum: General
Topic: Ludum Dare 25 Results
Replies: 10
Views: 3544

Re: Ludum Dare 25 Results

Sweet. Some fun games to try. Speed Run has really nice pixel art! The car starts a bit too close to the popo's though, otherwise, it's pretty addicting.
by markgo
Tue Jan 08, 2013 6:39 pm
Forum: General
Topic: Collision Help
Replies: 2
Views: 2220

Re: Collision Help

Each of your object were updating their movement twice because your object was colliding with itself and not colliding with the other object. This caused you to move twice as fast. Your physics checking wasn't logical so I restructured it. Best to resolve one direction and then the other direction.
by markgo
Tue Jan 08, 2013 8:49 am
Forum: Libraries and Tools
Topic: Advanced Tiled Collider [v0.22]
Replies: 6
Views: 5520

Advanced Tiled Collider [v0.22]

Advanced Tiled Collider (ATC) is a collision module for Advanced Tiled Loader. It specializes in collision detection and resolution of tiles. I thought it'd be nice if there was a collision library to assist Lovers when using ATL. Much thanks to Kadoba and other contributors for your work and librar...