Search found 16 matches

by lizard
Mon Nov 04, 2013 10:43 am
Forum: General
Topic: Good text editor for linux?
Replies: 33
Views: 16095

Re: Good text editor for linux?

I use Zerobrane Studio. This is not editor but complete Lua IDE with fully love2d support. And it's really lighweight, comparing to Eclipse with Lua Development Tools or even to Sublime Text.
by lizard
Sat Mar 31, 2012 2:38 pm
Forum: Support and Development
Topic: Problem with finding stuff in a table
Replies: 4
Views: 2721

Re: Problem with finding stuff in a table

Do not use table.remove() with large tables if you have a large amount of elements to removal. Copy elements which should not to be removed into new table, and then remove old table.
by lizard
Sun Jul 31, 2011 9:23 am
Forum: Libraries and Tools
Topic: Explosions (yay, we like them!)
Replies: 3
Views: 2009

Explosions (yay, we like them!)

At the 4KB Explosions Contest I made an example, based on Komoplode . Now I'm trying to make it more playable. Controls - LMB - boom! RMB - create entity, r - reset, esc - quit. If Love crashed with "Assertion: inRange failed..." try to reduce the amount of explosives. PS. Yes, I know - it...
by lizard
Sun Jul 31, 2011 8:54 am
Forum: Support and Development
Topic: stopping camera at the edge of a tile map (black_background)
Replies: 5
Views: 3193

Re: stopping camera at the edge of a tile map (black_backgro

I use this modified code (from vrld-hump).
by lizard
Wed Jun 29, 2011 12:29 pm
Forum: Support and Development
Topic: Contact normals between circle shapes
Replies: 6
Views: 3268

Re: Contact normals between circle shapes

Well, I'm trying to set angle of sprite according to the angle of inclination of the surface, and apply a jump impulse by normal impulse vector. But in some cases (only with circle shapes) normal impulse vector calculated in another direction. Position 1: http://img196.imageshack.us/img196/1681/2011...
by lizard
Tue Jun 28, 2011 3:49 pm
Forum: Support and Development
Topic: Contact normals between circle shapes
Replies: 6
Views: 3268

Contact normals between circle shapes

I'm confused. Why in some cases the normal vector is calculated incorrectly (with negative sign)? This only occurs with CircleShapes.
Image
by lizard
Thu May 19, 2011 5:31 pm
Forum: General
Topic: Textured sprites
Replies: 32
Views: 7595

Re: Textured sprites

Not at all. It's a matter of working backwards really. You could write a function that draws an input texture map template and you're all set. backwards OMFG, man, you are genius! At this weekend I will try a reverse algorithm. Thank you for suggestion! EDIT: second look - hmm, but the texture will...
by lizard
Tue May 17, 2011 8:20 pm
Forum: General
Topic: Textured sprites
Replies: 32
Views: 7595

Textured sprites

Few weeks ago I found this article - http://habrahabr.ru/blogs/gdev/117420/ (sorry, russian only, but google translate can help ;) ). Pro: for lots of 'skinned' sprites, only one animation sheet needed. Contra: I don't know how to create 'model map' without 3D-modelling :huh: Here also a example wit...
by lizard
Wed Apr 06, 2011 3:11 pm
Forum: General
Topic: Convert sprite to shape
Replies: 3
Views: 2326

Re: Convert sprite to shape

Thank you for suggestion.
by lizard
Tue Apr 05, 2011 8:26 pm
Forum: General
Topic: Convert sprite to shape
Replies: 3
Views: 2326

Convert sprite to shape

How to convert an external border of the sprite in the polygon? Google gives horrible words like triangulation for convex objects, Graham-scan and pattern recognition. Found that , but how to find external border of sprite? I have a very rough idea about the edge-detection , but would love to hear y...