Friday, 1 April 2016

2D game assignment Dev Blog - Week 8


Follow me into a magical adventure of code 


So this week something cool was made, hand to hand combat. And when I say hand to hand combat I actually mean a trigger that spawns in front of the player when a key is pressed. This magical trigger takes damage off of enemies if they are in the trigger box when it is activated then 10 points of health are taken off them. Or whatever number I assign. At the moment I have exactly the same number of health points assigned to the trigger, so it's pretty much instakill for whatever is caught in it. 
I did this mainly because it will make the gameplay fast, and hopefully fun. Also because mashing the same button to kill someone is tedious. 

Press F to punch someone.


Thanks to the help of Ewan we were able to implement a cool system that stops the player from melee attacking while he had a gun. Pretty much the level manager is called and says whether the player has a gun or not. If player.hasgun == true; then he can't punch people. 

Paris managed to get some low frame animations made for the game, including a run animation that don't fully loop and other animations that are a different color.

The run sprite sheet, which is pretty much indistinguishable from the background. 


The jump animation.

Ray also turned after ages of absence, and reported his astounding progress of two icons, despite the fact that I set him the the task five weeks ago. A few days after our meeting he completed the full set of icons, with transparent backgrounds that allowed them to be put into the game.



Weapon icons

We also got a proper health bar set up, which now works with the already working health system. 


As you can see there a four states that indicate health, unsurprisingly the empty and red health bar indicates that the player is dead.


Irina also completed the weapon designs for the game's guns, so now we actually had our own weapons, instead of just using placeholder images.


The great thing about unity is that you can change the color of a sprite, so we could change the gun's colors to match the level. 








Thursday, 31 March 2016

2D game assignment Dev Blog - Week 6 & 7

"So how's your project going?"

Me: 

Warren, who had vanished off the face of the earth, was tasked with making the levels for the game. But with him gone I had to do that myself, which was more work. Ray, who pretty much was in the same situation was Warren, wasn't in at all, despite the fact that he only had the simple task of making icons for the game. I mean he made the icons, just he didn't give them a transparent background, so I was unable to add them to the game without them looking like clip art.

Paris was on and off with avalibility, something would always pop up and she would be unable to do whatever task that she was set. 

Irina was the only one who turned up to each group meeting we had every week, when since week 3 no one else would come in. She also was the only one who would do tasks when set and deliver results in time. 

More and more I was starting to hate group work. I had to take over other peoples work because I could not get in contact with them, or because something would pop up and they would be un able to do the task.

Seeing as Irina was the only one with determination to work on the project, I set her the task of coming up with some concepts for some main villains of the game. 

Anyway that's all for this post. Until then, toodles.

2D game assignment Dev Blog - Week 5

So Warren turned up with something cool this week, a main menu for the game, and stuff.

Well that was the only thing he came up with really.

Yes that's right everyone, our game now has a main menu, one that is animated with flying cars, and what I can only describe as even more flying cars.

Even better was the fact that the menu buttons worked, they loaded levels too, woo.


Honestly when I first saw this I was quite blown away, the whole background with the menu design and moving cars looked so sleek and nice. 


And really that's all Warren did in terms of gameplay. Since then he's disappeared. Some say he's still out there, playing videogames and doing the odd drawing now and then. But in truth we'll never know.

Oh also I gave the character a health system. Awh yeah. Now the player can take damage from triggers (which can act as traps)

Jake (Another group leader who I really wish I was working with) showed me how to make some sweet stuff like enemies and other cool stuff like enemy health. I tied this into the health system which now allowed the player to take damage from enemies. Or as we didn't have enemies yet, giant placeholder images. 

I also tasked Irina to make a sprint system for the player, and she delivered the same day. She didn't just make a sprint system, she also made it so the player would slow down while taking damage which was awesome. 

Finally the game was getting somewhere. 

2D game assignment Dev Blog - Week 4

Week 4 we hit a road block.
And I mean a really, really big roadblock.

We had two major problems, well actually three but I was ignoring the third one hoping it went away.
The first was that we had a problem with the gun script. For some reason the bullets were not going were we wanted them to. Not in the way that they were flying about the screen like someone gave a toddler a uzi. Instead they were not hitting where we clicked. Somehow even though the bullets were going in the direction that the player was shooting, they weren't hitting anything.
This didn't make sense. At all.

Added to that we still had trouble getting guns to enable when the player activated a pickup.
The thing was we had tried out multiple ideas to get the gun to work after pickup. Like for example the gun prefab being attached to the pickup. Then again we were in experienced with coding, so none of the ideas worked. 

So like all great developers we asked Ewan for help.

Thankfully Ewan was able to help us sort out the pickup problem. Instead of the gun being a separate object to the player, we kept the gun attached to the player, but disabled it on game start up. It was only after the player activates the pickup that the gun is enabled. How cool is that.

Now the bullet problem, we tried a number of things to get the bullets to go where we wanted them to, like a bullet target that was attached to the mouse, and other things. But in the end nothing worked, the idea had us all stumped as to why the bullets would go in the direction we wanted them to, but not hit anything.
Then I noticed I was an idiot and had the bullet prefab rotated slightly, so it was going in the direction we wanted, just the aim was off a bit. 

Honestly though without Ewan we would not have been able to figure out the problem with the pickup script, and other code problems.

Bless you Ewan our savior.

[ARTIST CONCEPTION]

2D game assignment Dev Blog - Week 3

Aww yiss here we go


Ladies and gentlemen, we finally had guns implemented in our game. After three weeks in development, hopefully it was worth the wait. Now instead of jumping around and flying off into space, thanks to no ground check, we finally had a game mechanic that allowed the player to go postal on the game's non existent enemies.

Snippit of the gun code.


Thanks to endless web page searches and YouTube videos, I found out how to use raycasts to make bullets appear and stuff. I was pretty pleased with managing to get a working script that spawned instantiated bullet prefabs, that appeared from a firepoint. 

[VIDEO OF ME SHOWING OFF THE GUN SCRIPT]

Also Paris made a start on the pickup script, we now had an object with pop up text that would disappear if the player pressed "E" while in the trigger. 

Before I forget, I also added in a re-spawn system, that reset the player back to the start if he was an idiot and fell off the level somehow. Nioce.

We did have one problem though. How do we make an gun appear out the pickup?





2D game assignment Dev Blog - Week 2

Since our first week we started to work on the game. I assigned tasks to different people in the group based on what needed to be done. Warren was set to do the main menu, Irina more character concepts for the villains and enemies, and Paris was tasked to make a pickup script. We also had a new group member, Ray. Ray was tasked to make pickup icons for the game, while I set myself to make movement scripts for the character as no one else said they were confident with scripting. 

The first thing I set out to do was to make a movement script for the character, at the time I had a lot of problems. First thing was I had no clue what so ever how to code. I made a trigger work once on my own and that was it. Yes. One trigger. 

So as you can imagine I ran into a lot of trouble trying to get the character to move. Ages was spent trying to figure out how to actually apply force in one direction. The main problem was that I had no clue how to go about this as I was new to scripting. 

It took roughly three days of trail and error before I said "fuck it"and copied lines of the script that were used in a standard unity project, and wrote them out in my project.

I the end I (somehow) managed to get the player to move, so now the player could jump around and stuff woo yay wow well done yippie yay.



[REENACTMENT OF WHEN THE SCRIPT MANAGED TO WORK]


Also I went about making some more concept art images for the game. The first one was a concept of what one level in the game could be like, while the second was a cover for the game itself.






Friday, 25 March 2016

Personal work, B17 concept art

This one just really came out of the blue when I was bored one night. 

Behold, the process of making the final image.
First we start with a photo of two sassy bombers from the internet.


Then we cut the bomber in the background out and add some hue to the image to change the color, as well as a background to match the tone. 



Then we fuck up by saving over 30 minutes of progress so we can't go back to show how it was done.


Add some fancy prototype Horten ho 229's, because Bf109's are so 1942, and some more US planes to the scene, maybe even start to add some trails in to help give off the illusion of speed. 


Pushed the fighters into the background and add a bit of color to them to make it seem like they are further away, made the tail of the front bomber look like it took damage. Remove the out of place smoke effect at the bottom. Also add a smoke trail to a B17 in the photo, because it is important to show one B17 getting shot down when depicting a B17 bomber group in any form of media. 


Then I thought the burning bomber was stealing the limelight from the bomber in the foreground, so I moved it away a bit. Oh and also added a bit of color to make it look like it was in the distance. also I removed the terrible flak effects that littered the photo.


I wanted to then add two things, color to the image to make it look like light was coming in from the left side of the photo, and vapour trails to make it seem like there was a dogfight going on in the photo.



The clouds were then changed to match the lighting in the photo, also details on the foreground bomber were changed to give it some personality. Also changed the color of the pilots shirt to match that of bomber pilots of the time. 


The color of the clouds was also changed to match the background.


Also the nose art on the foreground bomber was finished off, snazzy.


Finally I added shadow to the bomber in the image to help it look like sun was coming from the left side, also some propeller blades were added that were missing. Ta-da!