Nebula drawing that could have been background.
This is the book work that kept track of the start of our project.
The name that we have chosen for the game is blackbird.
Starting off the game coding creating the basic needs for
what we will have in our game
I used a basic cube that will act as the main player and I
shall start to fix the camera. I shall also place the player where they start.
Since the game we are producing is a pixel based game these are only stand in
for what will be placed.
The cube acts as the player I need to make the code that
will be able to use under the pixel art.
Setting the player to be the main focus and moving the
camera seems to be the main focus. With the player set in the center this will
make the enemy spawning easier as it would have to be a certain distance away.
I need to see how the back ground that I have created will
affect the game look and style. As it’s a pixel game I have to be aware of what
it will look like.
I have changed the stars to add a bit of colour. At the
moment they are very bland and have limited range of colour
An Influence (shown below)
http://forums.tigsource.com/index.php?topic=26304.0 date accessed 23/02/2015 this is only an influence the amount of stars seems too cluttered
and I thought a more basic approach would be more appropriate to our game.
This has more of the effect that I want to create. I ending up
using an image and changing it so that it can have more of the effect that I
needed to find. The image link is shown below.
http://pixabay.com/static/uploads/photo/2012/12/27/19/40/night-72871_640.jpg
; imaged used for the background changed and applied to the game. i tweaked the colorization and lowered some of the star count to crate a more spare feeling.
By adding a rigged body to the plane I was able to make the
main ship move with this piece of code. This also created a boundary of where
the ship can go as we don’t want the player going to the top to get killed
easily
Creating the shot was next but as I do not have a texture
for the projectiles I am creating the basics for the shot fire. But as shown I
am having some difficulties. With the colliders on it they crash into one
another possibly if I turn off one then what is needed to destroy the game
object is missing.
Now I have fixed the shooting and have it fire the correct
projectile. I also created a boundary as it will destroy anything that leaves
the screen. I made it so that there is a small gap around the edge as it will
make it seem that the projectiles have fully gone off screen so that they don’t
just disappear on screen.
The next stage will be making the Drone move and spawn
randomly.
This is the code for the enemy movement where it moves
toward the player direction. at the start it would spawn where the player was i moved the transform position to above the screen so that when they spawned they would do so off screen. But i still have the problem where they go away from the player.
I have tried to make the ship spawn in waves but I have
certain difficulties with making it spawn correctly as it goes backwards rather
than forwards.
I had to change one area of the code it was starting off in
a area that I did not want as well as the rotation of the enemy ship.
This code has what I need for the game what was changed is;
Quaternion spawnRotation = Quaternion.Euler(new Vector3(0f,
180f, 0f);
The rotation of the ship was changed so that it would now go
in the direction of what we wanted
We added the walls and animated them this was done by Steve;
I needed to create the score next as I need to make the
score appear above the enemies and increase along the bottom. I created a bar
to place the image of the text to appear, the health bar could also appear
along the bottom to show the progression of death but at this stage I do not
know how to do that.
The wall colour dose need to change as it is too bright. As
this wall was just a concept to start off with. I will try different colours to
find the best outcome that I could achieve.
The code that I have used for my game is different from the
initial outcome. The score has move from the bottom to the top. This is to give
a more arcade style to the game.
The score now goes appears at the top left of the screen.
The lives you have remaining would go at the top right and the health will
appear along the bottom of the screen.
The stage we made at the moment is that enemies spawn at the
moment and head towards the player, once they have been destroyed they create
points in a hundred increments. Once the player dies the enemies still spawn
but that can be sorted out by creating the lives.
Creating the menu selection is what’s next.
There was an error in my code that was making my player
spawn in twice and not having the correct life amount to start off with. I was
able to make the ship spawn correctly by making a prefab but there was only,
spelling mistakes and I still don’t know why my code was making it start off
with two lives instead of three. All I did to change that was changing the
three to a four to make it start off with three.
I created the scenes where the menus will be. The code for the buttons and navigation was not done by me this was Steve, one he wrote the code i did have to fix it so that when you pressed the button it would go to the right place.
With the menus going to the correct place i began to work on the respawn and lives. I should change how the code works for keeping track of the score. So that it would be more simple and not as complex as the way i had done it before.
Once i added the code for the level it didn't go exactly as planned with the ship respawning as it spawned the first ship then it spawned the ship as if it had died, and depending on where I was on the screen it would still spawn at the 0,0,0 point. also the lives are not counting down correctly. When I first start the game it would take one of my lives down even when I had just started the game.
The problem to start off was that i needed to make the ship a prefab, but adding it to the game controller was only the first step i needed to only have the ship as a prefab so that it will always spawn once instead of twice. Next is the lives i still have no idea of what I have done wrong it still takes off one life to start off with. So for the time being I have made it so that it will start off with three lives by adding one more onto it.
I also still need to change the walls slightly as they stand out way more than I intended them to.
I also spaced the bullets out a tiny bit more having them on a 0.1 fire rate was too close together (and seemed like an overkill). But having it at a 0.3 fire rate was to far in shot range. I decided that around a 0.15 to a 0.23 was the best range I could get for the speed and spawn rates.
No comments:
Post a Comment