Week #2 – Alpha

Compared to my first week I implemented a ton more & learnt twice that.

Capture
Player Ship, Health & Aether Bar, and one of our two Enemies

Week #2 – My Activities and Progress

What did I do last Week? 
Last week I created the Player scene as well as the ability to shoot harpoons from the cannon located on the ship,

What have I done this week? 
This week I created two enemies, Player Function Teleport, Updated the Movement of of the Player Ship. Another thing I managed to accomplish was the ability for the Player & Enemy to kill one another.

How did I Program Everything?
*Enemy 1: The first Enemy, named the Chaser, is able to figure out player coordinates and move towards them, blowing up on impact. This was not all that hard to code as it mostly had to locate the player and use the function MoveTowards to eventually get to it.

*Enemy 2: The Second Enemy I implemented with a bit more code/assets to it. For this Enemy I wanted it to fly withing range of the Player to shoot at it, stop a certain distance away from the Player, and finally have it retreat when the player moved towards it. I plan on coming back to this code eventually as I believe there were many different ways I could have handled the way I coded the enemy, currently there is way too much code and I am sure that once I get better I can improve the quality of its movement as right now it feels very static and boring. I mostly used player location to code every part of the enemy movement + shooting.

*Enemy 2 Projectile: This projectile once shot by the enemy will move to player position when it was fired and once it reaches its destination will explode. Any player hit by the projectile + the explosion will sustain much more damage than one that only gets hit by the explosion. The coding for this was fairly simple and was mostly unworthy of mentioning specifics.

*Teleportation: This was by far the most fun bit of coding I have had to figure out so far! We wanted our Player to be able to teleport to the mouse position by spending Aether (our in game mana) and deal damage to all enemies upon arrival. This was done simply by finding the mouse position, converting its coordinates to the player coordinates, and then simple as that the ship moves. Once the ship has teleported I basically reused the code for the enemy projectile explosion so our ship could hard enemies upon arrival. To use this ability in the first place the Player has to spend aether which created another side coding job where I had to make sure the ship spent aether/Was unable to teleport if it had none left. Implementing our Aether bar made for some interesting errors in our project.

Capture
The 4 Lines of code needed to Teleport

I will have to come back to this code every week as adding assets the ship could potentially teleport into and collision boxes we don’t want them to cross will create a whole lot of issues for future game play. We plan on making our game with a somewhat open world the player can explore and as it stands currently, the Player could use teleport to leave our game world and travel elsewhere.

*Updated Other: Otherwise I mostly worked on making other elements of our game feel good mechanically. Initially we had a lot of issues with how our game felt which lead to use disliking the way our ship moved. As I have worked more on this game I have started to see the value of mechanics more & more, because they are a valuable component in how the game feels to play. We need the Players to feel as if they are flying a steampunk ship through the sky.

Summary of the Second week:
I had a good time programming all this and I am getting into it more and more, my only issue being all the problems my team and I had with Github.

Am I happy with my Work so Far? 
Yes, I have a lot of improvement and small changes I want to make but for I think the mechanics are quite solid.happy-man-looking-at-computer-e1294094012103-500x339.jpg

What to Expect for Week 3?
Enemy Spawners that can be destroyed, floating islands for the Player to avoid, and possibly a new power up!

See you next time!

“I’m sweaty and I want to go home” – Marcus Ford

About Marcus Ford

2017 Programming