itch.io is community of indie game creators and players

Devlogs

#2 | 18-07-24 | Player Shooting

Hit That Target!
A downloadable game for Windows

Hello!

Since it's been months since I last touched a project, I'm out of practice. But I've managed to create the basic shooting mechanic for my game.

I used a coroutine with a delay to create the shooting mechanic.

The projectile's code is independent from the player. Once spawned, the projectile will move indefinitely in the upward direction, relative to the rotation it was spawned at.

I have two options when it comes to making the projectile self-destruct once it's no longer in the scene. The projectile script can have code to make it destroy itself after certain amount of time, or, the scene can have a barrier that destroys objects that touch it. As development progresses, I'll decide which to use.

Thanks for reading!

Download Hit That Target!
Leave a comment