DEV Community

Hizrawan Dwi Oka
Hizrawan Dwi Oka

Posted on

Game Development Diary #8 : Still Second Course

28/05/2024 - Tuesday

Clicks and Cursors

Learning how to change the mouse cursor and detecting mouse clicks from the player

Building Towers

Creating a scene for defensive towers and learning how to spawn new scenes in code.

Picking Turret Positions

Connecting the RayPickerCamera and the TurretManager, so we can place the new turret scene onto tiles in the GridMap.

Making Projectiles

Learning about the Area3D and making the turrets able to fire them in a given direction.

Introducing Timers

Introducing the Timer node as a tool for making events happen at specific times. This lets us fire the turrets at regular intervals.

Aiming the Turrets

Using the look_at function and the towers basis, to aim the turrets at enemies on the Path3D.

Damaging Enemies

Using the Area3D node and variables to give the enemies health that is whittled away by projectiles until they are defeated.

For Loops and Targeting

Learning how to use loops to identify the best target for each turret.

Introducing Animations

Learning how to use loops to identify the best target for each turret.

Instantiating Enemies

Ung what we have learned from spawning projectiles to spawn endless waves of enemies.

Control Nodes and UI

Introducing Control nodes to create user interfaces. Adding a label to track the players gold count and positioning it with a container.

Earning and Spending Gold

Finalizing the bank, making the player earn gold when they defeat enemies, and making them spend gold in order to buy turrets.

Plans for Next Session:

Completing GameDevTV's course

Top comments (0)