In this Unity tutorial, we'll create a Whack-a-Mole style game called Smack-a-Mouse! We'll cover essential game development aspects such as animating sprites, detecting mouse clicks with raycasts, working with 2D colliders, handling object instantiation and destruction, managing sorting layers, moving objects across the screen, and building a custom score display. By the end of the video, you'll have a fully functional, interactive game and a solid understanding of how to bring these features into your own projects. Let's get started and build something fun together!
00:00 - Introduction
00:46 - Hammer
07:15 - Targets
13:20 - Scene Setup
15:19 - Game Manager & Spawn Points
24:13 - Score Counter
32:08 - Conclusion
Subscribe: https://youtube.com/@gamedevwithtony
Join my Discord channel! https://discord.gg/4XEwwqaVf9
My Github: https://github.com/gamedevwithtony
X (formerly Twitter): https://x.com/gamedevwithtony
#unity2d #unitytutorial #gamedev #learnunity #whackamole