Saturday, October 7, 2017

Game-A-Week?

October 2, 2017 Video game dev diary?

Since most of my work of late has been in game development I thought I should try to post a weekly blog about my indy game dev projects. I had this ridiculous idea that I could try to write a new game each week, kind of like a weekly game jam.  I would focus mostly on VR I guess but I've considered writing desktop and mobile games as well. Here are some examples of what you might see.

Color blending game:
This is kind of a tech demo. I was trying to figure out a good way to blend paint colors. Through my research I discovered that there are additive and subtractive methods of blending colors. But to blend the way paint blends you need all sorts of crazy math like in this pdf:


 http://gfx.cs.princeton.edu/pubs/Lu_2014_RPC/realpig.pdf

Here's a video of the game that I started to develop to test a simple rgb linear interpolation method of mixing colors:



Beez VR game:
The most ambitious game I'm trying to make is called Beez. I tried to make this in a weekend but I put it down and kept working on it during my spare time. The current iteration has lots of audio and paddles so you can smack the beez and kill them.



I still need to figure out how to turn this into a game or maybe I'll just clean up the graphics and make it into a silly experience for free download.


Wed October 4, 2017
It's already wednesday of my first "official" week of game-a-week and I wasn't sure if I would have anything new to show. But I came up something that looks promising. This is an idea I've had for a very long time. It's based on one of my favorite classic horror films, Scanners. Basically I spent a few hours downloading animations from mixamo and tried to come up with a way to make the heads explode.

Scanners head explosion:




Saturday October 7, 2017
Hi again,
  I'm going to wrap up this post with one last video of my current progress on the psychic head explosion game. I think I'll start a new blog for my weekly game dev posts. The first post will be more focused on this head exploding game and what I learned etc... I made this game for VR and I've been testing it on the GearVR with my Samsung Galaxy S6, but this video is captured on my mac using the mouse to simulate VR gameplay. By the way, all of the animations and the character model were downloaded for free from mixamo.com. Dang, I should have added some original music...



Tuesday, July 11, 2017

Unemployed-ish


Well, I can't sleep so I'm drinking beer and writing a blog post. This is something I plan to do pretty regularly now since I'm more-or-less unemployed.  Well, I mean I quit my full time job of 15 years at Blue Sky Studios so I can make video games.  But I did join a VR startup so I'm not just picking my nose all day...

What have I been up to though? Here's something recent... I woke up one morning and decided to try and replicate the old vector displays via a script and shader in Unity. This is what resulted. I was able to convert a mesh to a lineRenderers and apply a cool shader to the lines. Add a little bloom and it kinda feels right...


On the music front, Jamie and Eric happened to be in town a few weeks ago so we managed to squeeze in one jam session at Astoria Soundworks. I will be posting those mixes sometime real soon...

Thursday, April 20, 2017

Long overdue! - Talent show, video game dev, and bees!

Well, it's been almost a year since my last post. This is because I haven't been very active with music except for maybe the Blue Sky Talent Show which took place in the evening of Nov 16, 2017. So, to keep this blog semi-on-topic here's footage of my one-week-a-year band, The Dead Pigeons.  We had months to prepare for the talent show but I was on hiatus for 6 weeks concentrating on learning game development in Unity3d (more to come). So, I came back after my hiatus and we all got to rehearse for about a week while still trying to do my job. Here's video of the The Dead Pigeons performance:



I also performed in a recorder ensemble and played a saxophone solo. When I get around to digging up that old video footage I'll post them here as well.

So yeah... By the middle of 2016, all of my regular jam buddies had left New York to work out west in sunny California.  I guess what happened was I had all this free time so I decided to start developing video games.  I've been hungrily consuming tutorials and I even attended a weekend VR Bootcamp where I got my body scanned and put into an AR Business Card app. This is me testing it with a Metrocard:


Anyhow, fast-forward to a couple weeks ago, 4/1/2017...  I really wanted to try to do something impossible, which is to make a video game from scratch in one day, or over a weekend...  Earlier in the week I had chatted with a co-worker about a funny game idea involving bumblebees.   The idea would be you're in VR and a swarm of bees is surrounding you and you need to try to keep still and try not to get stung.  An alternate version of this game would involve shooting them with a bazooka or something.

I knew making this game in 1 or 2 days would be impossible since I had never really tried anything like this before, but I just needed to see how far I could get. So this is what happened:

I drank lots of coffee and looked like this for most of the day on Saturday:
10:00AM - 12:00PM 4/1/2017


Yeah, I stayed in my pajamas for most of the day...
And then some time after lunch I had built a bee hive, and a funky looking bee out of sphere primitives and then I taught the bee hive to shit the bees out like this. That's the thirdpersoncontroller standard asset running that is intended to be the target for the bees:

2:17PM 4/1/2017

I realized that the bees were spawning too fast and the rigidbodies were colliding with each other causing them to repel each other resulting in this funny scene.

4:44PM 4/1/2017
So then I tried to make the bees fly using purely rigidbody forces and I got them moving in an almost natural way but they were kind of wobbling around as if someone is pulling them with string.




7:23PM 4/1/2017
 I guess I got bored with writing the bee flying script so I added sounds. This is me going "zzzzz" into my MacBook Air.  I manually looped the audio in the Sound Studio App. The pitch shifting is pretty rough but it was a good start and I felt very encouraged.  My hope is to always remember to add sound as early as possible when prototyping a game. It just brings everything to life don't it? Plus, it's the sound of bees that makes them really scary in my opinion.



Late into the evening I refined the flying and targeting algorithms. I made some audio tweaks and also stabilized the rotation of the bees. One of the rules I gave the bees was not to get within a certain range so some of the bees revolve around the character because their targets are inside the illegal area. This was an accident but it made for some pretty cool behavior.

11:51PM 4/1/2017


The following video that I captured on Monday morning represents my final tweaks that I added on Sunday. I had big plans for Sunday but I was so burnt out from the previous day that I just tweaked the code for a couple hours. For the most part I was trying to get the bees to behave in a particular way that would seem natural and maybe be a little terrifying in VR.  In an attempt to make it feel like a game I made the bees die if they collided 5 times.  As a sort of indication of aggression due to bumping into things I made the bees get larger after every bump. Kind of goofy, but I wanted a quick visual representation of their mental states in a manner of speaking. Maybe they're bees with some pufferfish DNA thrown into the mix? Oh, and after 5 bumps they die and scream. Yeah, that's the infamous "Wilhelm" scream.

7:55AM 4/3/2017


I had plans to make it into a VR game but I'll put this down for now. This was a great learning experience in developing a flying / targeting behavior. I was pretty happy with the sound design for the bees and the pitch shifting that I linked to the bees velocity. I like that I got the bees to be very stable in their flight patterns but now I need to make them go a little more crazy.