Search found 190 matches

by markgo
Sun Jan 05, 2014 6:49 pm
Forum: Support and Development
Topic: [SOLVED] Weird segmentation fault or freeze
Replies: 2
Views: 1426

Re: [SOLVED] Weird segmentation fault or freeze

Good news. I've reported the problem to the LuaJIT dev and it was promptly fixed in the latest commit.
by markgo
Sat Jan 04, 2014 3:26 am
Forum: Support and Development
Topic: [SOLVED] Weird segmentation fault or freeze
Replies: 2
Views: 1426

[SOLVED] Weird segmentation fault or freeze

I've been getting segmentation faults or freezes (may be related) on some code I've been working on. It's a real head scratcher. I'm not sure whether it's luajit related or something's wrong with my code. I've already did thorough testing on my skip list and pathfinder. It seems pretty random as I c...
by markgo
Mon Dec 30, 2013 2:06 am
Forum: Libraries and Tools
Topic: Field of View Libs(FOV)
Replies: 6
Views: 7811

Re: Field of View Libs(FOV)

Another update. I've split the module into two. You can use either recursive shadowcasting or precise permissiveness. The old way was experimental and didn't have the required symmetry. Enjoy!
by markgo
Sat Dec 28, 2013 12:36 am
Forum: Support and Development
Topic: does not update if screen is too small.
Replies: 5
Views: 4513

Re: does not update if screen is too small.

The sprites are small, but I can see them animating at 300x300. The counter on the top right is also increasing. I see nothing unusual.
by markgo
Fri Dec 27, 2013 4:03 am
Forum: Support and Development
Topic: Box2D Concave Polygons?
Replies: 3
Views: 3459

Re: Box2D Concave Polygons?

A body can have multiple shapes attached to it. It should be easy to attach multiple triangles to your body to form a concave shape.
by markgo
Tue Dec 24, 2013 11:10 pm
Forum: Support and Development
Topic: Source:play() works but Source.play(self) doesn't
Replies: 5
Views: 2031

Re: Source:play() works but Source.play(self) doesn't

The colon adds Source as a first argument. self doesn't work because it is not a reference to "Source".

Source.play(Source) is the long way if you don't use the ":" shortcut.
by markgo
Sun Dec 22, 2013 5:29 am
Forum: Libraries and Tools
Topic: Field of View Libs(FOV)
Replies: 6
Views: 7811

Re: Permissive Field of View (FOV)

An update has been made. The module now supports cone field of view! Just specify the starting and last angle of the cone.
by markgo
Wed Dec 04, 2013 11:50 pm
Forum: Support and Development
Topic: Shadow-Casting Help
Replies: 2
Views: 2040

Re: Shadow-Casting Help

viewtopic.php?f=5&t=76400

Also checkout Roguebasin and look for articles pertaining to line of sight (LOS) or field of view (FOV). Recursive shadowcasting seems to be the easiest to understand and works well so you're on the right track.