Jump to content

  • Log In with Google      Sign In   
  • Create Account

Pixel → Tile → World

Code snippet for typesafe void* userdata

Posted by Servant of the Lord, in Code snippets 28 July 2013 - - - - - - · 1,239 views
Just tossed this piece of code together - it wraps void* points with asserts() to ensure you are getting the same type that you originally set.
Normally I shy away from void* pointers as I feel like they are indicators of bad design, but sometimes you need to use them, and when you do, they might as well be type-safe.

This is kinda a lightweight alternat...

Tiny bit of art, some programming talk

Posted by Servant of the Lord, in AdventureFar, Pixel art, Code snippets 21 July 2013 - - - - - - · 1,063 views
Here's a few pieces of art I made for my game, in between programming.

Stone fence

I just finished this a few minutes ago - it took about an hour.


I guess about a week ago? Maybe two.


Didn't get anything done today - rather lazy. Still have a few hours left in the day, so I'm going to crack back into the code for a bi...

Easing along, one step at a time

Posted by Servant of the Lord, in Code snippets 02 March 2013 - - - - - - · 2,313 views
interpolation, easing, tweening
I just finished adding some of the standard Ease equations to my code base for use in Of Stranger Flames.In discussion about the equations, it was requested for me to share the code here. This is not a tutorial , I don't have enough familiarity with the subject (or with math in general) to explain how every equation works. I'm just posting what I added to...