Learn how to code a game in Java.
In this tutorial, you will learn to create the whac a mole game with java using the built-in swing awt graphics library. This project is perfect for new java programmers!
While creating this mario themed whac-a-mole game, you will learn how to create a graphical user interface (GUI) using java's swing library, add click handlers to whack the mole, and randomly spawn the mole and piranha plant using the Timer and Random modules.
Setup Java with Visual Studio Code:
https://youtu.be/BB0gZFpukJU
Code: https://github.com/ImKennyYip/whac-a-mole-java
Website: https://www.kennyyipcoding.com/
Java Game Programming Projects Playlist:
https://www.youtube.com/playlist?list=PLnKe36F30Y4Y1XQOqNsL9Fgg_p6nYhcng
JavaScript Game Programming Projects Playlist:
https://www.youtube.com/playlist?list=PLnKe36F30Y4bLhA-st9sC4ZthyV7nsL2Q
Subscribe for more coding tutorials !