Monday, February 27, 2017

Learning Godot Day 8

     Today I started by adding the collision box to the cannon scene with a collision polygon2D node and also added the bullet spawn point with a position2D node for the bullets to have an area to spawn from the cannon.


      I then referenced the scene in the control scene which is the main scene and where the game will be played from.


      I then created the bullet by creating a new scene and importing the bullet texture to a new sprite node. I also added a shape collision and changed it from a square to a circle collision box to properly represent the shape of the cannon ball.


     After that I added a script to the cannon node and began the coding to make the cannon fire which will be in the screen cap below.


     This code is unfinished and will hopefully be finished next session, most likely the first part of this tutorial will be complete by the end of the next day.

No comments:

Post a Comment