Cyber Monster Hunt - Arduino and PictoBlox Joystick Shooting Game

by rishi775 in Circuits > Arduino

40 Views, 0 Favorites, 0 Comments

Cyber Monster Hunt - Arduino and PictoBlox Joystick Shooting Game

IMG_7907.jpeg
Screenshot 2026-06-01 154513.png
Screenshot 2026-06-01 152321.png
Screenshot 2026-06-01 152248.png
Screenshot 2026-06-01 152227.png
Screenshot 2026-06-01 150444.png
IMG_7907.jpeg
IMG_7906.jpeg
IMG_7905.jpeg
IMG_7904.jpeg
68e6ce2f-10e2-4238-a769-5bb234054f48 (1).png

Monster Hunter AI is an interactive shooting game built using Arduino Uno, a joystick module, and PictoBlox. The joystick controls a crosshair on the screen, allowing players to hunt randomly appearing monsters and score points.

Downloads

Supplies

PictoBlox

Arduino UNO - Rev3

1 x Joystick

5 x Jumper Wires

Connect the Joystick to Arduino

IMG_7906.jpeg

Joystick Pin/

Arduino Uno

VCC

5V


GND

GND


VRx

A0


VRy

A1


SW

D3


Connect and Upload Code

Screenshot 2026-06-01 154513.png

Connected to Arduino IDE and uploaded code.

void setup() {

Serial.begin(9600);

}


void loop() {

int x = analogRead(A0);

int y = analogRead(A1);


Serial.print(x);

Serial.print(",");

Serial.println(y);


delay(20);

}

Create and Program the Game Sprites

Screenshot 2026-06-01 152321.png
Screenshot 2026-06-01 152227.png
  1. Read joystick values from A0 and A1.
  2. Store values in variables.
  3. Map the values to stage coordinates.
  4. Move the crosshair accordingly.

The joystick now controls the target in real time.


  1. Make the monster appear at random positions.
  2. Continuously check whether the Aim sprite touches the monster.
  3. Play a sound when the monster is hit.
  4. Increase the score.
  5. Hide and respawn the monster.

This creates the shooting-game effect.


  1. FOR SCORES -

Create a variable called Score.

Set Score to 0 when the game starts.

Increase the score whenever the monster is hit.

Final Result

IMG_7907.jpeg


The completed project allows the player to control a crosshair using a physical joystick connected to Arduino. The game combines hardware input, real-time control, collision detection, sound effects, and scoring to create an engaging arcade-style experience.

Conclusion

This project demonstrates the integration of Arduino and PictoBlox for game development. It is an excellent beginner-friendly project for learning sensor input, hardware-software communication, and interactive game design.

Downloads