Phil Hassey - game dev blog
Phil Hassey as Wolverine
"What kind of
arrogant jerk
has a website like this?"

Archive for the 'proto' Category

More lights and shadows

Sunday, January 21st, 2018

I spent a bit more time fooling around with my light / shadow engine. Got it running nice and fast with a ton! Changed the colors to make it look better.

This shot has about 200 moving light sources.

-Phil

Lighting engine

Saturday, January 20th, 2018

I put together a lighting engine this week.  It took a lot of coding before I could really test anything.

My first test effort I just rendered things as boxes to ensure that I even had the correct data.

Next I did some ray casting so I could see if I got that working.

Lastly I rendered those rays using a triangle fan.

I found that the CPU was being maxed out pretty bad, it turns out my first step (showing the boxes) was using the most. So I turned those off and things ran at a nice clip.

-Phil

BREAK(re)WIND

Monday, January 15th, 2018

So I spent some time adding time rewind to a simple breakout style game.  Once you miss a ball, it rewinds a few seconds.

The rewind worked, but I didn’t feel it really added much to the breakout experience.  It would do just as well to just give the player more balls.  While creating this prototype, I named the folder “breakwind” and only an hour or so later did I realize the double meaning.  I’m not sure if that makes it the best or worst game name idea I’ve ever had.

-Phil

Time rewinding fire effect

Wednesday, January 10th, 2018

Part of the trick of time rewinding is to have as little state as possible.  This fire effect is generated from just this:

fire_draw(GAME.t,0,100,100,12,234)
To get this to work, I’ve pre-calculated how the flames will move.  Since the state is so small, fast-forward and rewind only depends on changing the GAME.t .
-Phil

Nifty time rewinding star field

Saturday, January 6th, 2018

I’ve been playing around with various prototypes over the past few months.  I decided I might as well start sharing what I’m doing.  Gifs are easy to make!

I made some simple time rewinding code the other day.  I’m pretty pleased with how it came out.  I updated it with fancier particles and a slightly different pattern and got a really neat effect:

Anyway, hope to make some more fun prototypes off this concept.  We’ll see!

-Phil