Space Shooter Game - Enhanced Features ๐Ÿš€

github source: https://github.com/TwoBitCode/prefabs-triggers-miriam/blob/main/README.md

Overview ๐ŸŒŒ


This is an enhanced version of the Space Shooter game, originally developed during lectures. The improvements include:

  • Dynamic display of the player's score, adapting to screen size and orientation.
  • Circular world boundaries in the horizontal axis and closed vertical boundaries.

Features Implemented ๐Ÿ› ๏ธ


1. Dynamic Score Display ๐Ÿ’ก


  • The player's score is displayed at a fixed position on the screen (e.g., the top-right corner).
  • The position adapts automatically to changes in screen size and orientation.
  • Implemented using the Canvas system in Unity, ensuring a responsive UI design.

in code: I changed the Numfield and LaserShooter code: https://github.com/TwoBitCode/prefabs-triggers-miriam/blob/main/Assets/Scripts/4-levels/NumberField.cs

https://github.com/TwoBitCode/prefabs-triggers-miriam/blob/main/Assets/Scripts/2-spawners/LaserShooter.cs

2. Circular Horizontal Boundaries ๐Ÿ”„


  • The game world is now circular along the horizontal axis:
    • When the player reaches the right edge of the screen, they reappear on the left edge, and vice versa.
  • Closed boundaries on the vertical axis prevent the player from leaving the screen's top or bottom.

in code: https://github.com/TwoBitCode/prefabs-triggers-miriam/blob/main/Assets/Scripts/4-levels/ScreenBounds.cs

3. Improved Game Experience ๐ŸŽฎ


  • Collision-based logic was implemented for boundary detection without relying on hardcoded values, ensuring scalability and maintainability.
StatusReleased
PlatformsHTML5
AuthorTwoBitCode
Made withUnity

Leave a comment

Log in with itch.io to leave a comment.