April Game Jam Week 1

Helllllloooooo evry1

So right now where I am 50+ people in Tempe are doing a month long game jam. We had no restrictions on what we were to do but I knew I wanted to make it small. I partnered up with a friend who is a music engineer and we are making a "metal as fuck" mobile "fighting" game kinda. You have 3 actions, slash, stab, and guard but you can make combos with those. The Goal was defiantly to make is very crazy with flashing colors and other stuff to make you go insane. I based the style off cheesy 80s movies but for what I have so far I went a little more blood dragon. I have been working really hard on it as I want to get it done at the end of the month and release it and I am really exciting on the progress I have made. It is really starting to shape up. The next thing to do is flesh out the level transition and add combos. I really think I got something here that could be really fun. And Just crazy enough to get peoples attention. Ill try and make this a weekly thing to show progress and get feedback.

You can check out the latest version here:

http://pufferfiz.net/Protfolio/Breakdown/Breakdown.html

Plug time: I am looking for more designs to fill out the enemies you fight.If you can do pixel animation hook me up.

Learning time:

So in unity you can not use the invoke method, a method to execute methods on a delay, in static classes. Normally that is ok but I had already developed a static effect class that will take in gameobjects and put a effect on them. What I wanted to do was flash the sprite to complete white, and to do that I needed to run a method in the sprite's render component to modify the sprites shader. Which would be ok to do in a static method but I want it to flash back and forth, if I just made 2 methods I would still have to write code for every character/boss to do that. I am using a Unity extension called LeanTween and its pretty awesome, its open source and very lite. In this case I wanted to exploit its On Complete function which is called when the game object finishes its tween move. In order to do that I had to create System.Actions, and I was like what I have never heard of those. Welllll they are like Method Delegates. I thought it would hard to figure out but it was really easy. All you have to do is make static methods like normal where they take the param generic C# obejct. You create them like any other member, new Action(yourMethod); . That is it you have an action! Ok so now that I have all that I can make the flasher. the method takes a game object then tells LeanTween to move that object(LT is instantiated automatically when called), no where, yeah move it to the same spot where it was at. BUT on a delay, so in .4 seconds complete this action. the complete action is turn on white. the next line is the same thing but goes to the off white. Repeat that a few times and you have a flash effect that will work on any sprite( that has this shader). Obviously you may not need it to flash but this is a great way to get around the pesky unity everything has to be a mono behavior to work crap that can get in your way.

Full Source

White Enabled Sprite Shader *Have to use this

2 Comments