Ross
Ross_@mastodon.gamedev.place
<p>Ross Grams - Semi-hobbyist indie game dev using <a href="https://mastodon.gamedev.place/tags/Love2d" class="mention hashtag" rel="tag">#<span>Love2d</span></a>, here to see & post about game dev stuff.</p><p>Long-time <a href="https://mastodon.gamedev.place/tags/Defold" class="mention hashtag" rel="tag">#<span>Defold</span></a> user, professional digital & traditional artist, cow caretaker, handyman.</p>
Posts
-
Post #2651379
I love #Box2D. :) I&#39;m considering making a &quot;Lovers in a Dangerous Spacetime&quot;-like (tiny characters moving around inside a spaceship to manually control it using various workstations) and after 30 minutes I&#39;ve got the basic physics working without a hitch. 🥳 At first the player could push the ship around from the inside, but with a few lines of code in the postSolve callback I apply the reverse of the impulse from each resolved contact back to the ship. Problem...
-
Post #2651378
Normally I&#39;m not a fan of coroutines in #lua, they tend to just make the code confusing. However, when you have a long, looping process that would normally be run in one go (pathfinding, recursive tree iteration, proc. gen., etc.), coroutines let you run it step-by-step *without changing the code structure at all*, which is awesome for debugging. Wherever you want to pause your loop, just add: if coroutine.running() then coroutine.yield(coroutine.running()) end ...
-
Post #2651377
@fossapps@mastodon.social Thanks, I&#39;m definitely working on it! Most of the basic gameplay is functional: all the ship stations, various different weapons, the map, minimap, fog-of-war, a few basic enemies, enemy spawning, and some &quot;jails&quot; that you destroy to rescue friends. Gotta love #love2d.
-
Post #2651376
@fossapps@mastodon.social Thanks! Yeah, I think Lovers is still one of the best local co-op games out there.