prefab-triggers-miriam
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
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.
3. Improved Game Experience ๐ฎ
- Collision-based logic was implemented for boundary detection without relying on hardcoded values, ensuring scalability and maintainability.
Status | Released |
Platforms | HTML5 |
Author | TwoBitCode |
Made with | Unity |
Leave a comment
Log in with itch.io to leave a comment.