Skip to content

TwoBitCode/prefabs-triggers-miriam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Space Shooter Game - Enhanced Features 🚀

Play the game on Itch.io: https://twobitcode.itch.io/prefab-triggers-miriam

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published