An addictive python game (Linux/Windows/macOS)
- GREEN TRIANGLE = NEUTRAL SHIP
- RED SQUARE = ENEMY VESSEL
- PINK ARROW = YOUR SHIP
- GREY ASTEROIDS = RESOURCES
- BLACK HOLE = AVOID IT'S ATTRACTION
- NEBULA = DISTORTION IMMINENT
Tips & Tricks:
- You can cross the screen edges, other objects cannot
- Shoot asteroids for immediate repairs
- Save the 4-letter code to keep your level next time
Version 1.2 changelog:
The rendering pipeline has been significantly upgraded to support more complex geometry and particle effects.
- New: Implemented a
ParallaxStarclass. These stars are fainter and move based on the player's delta movement (player_dx,player_dy), creating a depth/3D effect relative to the foreground. - Old: Static falling starfield only.
- New:
SpaceRocknow generates random polygons (7-12 points) with varying radii to create jagged, rock-like shapes. They also feature rotation mechanics and a distinct outline. - Old: Simple grey circles drawn using
pygame.draw.circle.
- New: Lasers are now rendered as rotated surfaces to match their travel direction. They include a "glow" effect (a larger, translucent circle centered on the laser head).
- Old: Simple, non-rotated rectangles.
- New: The Boss is no longer a flat square. It is drawn using multiple polygons to create a "beveled" 3D pyramid look with shading (light top, dark bottom). It features a pulsating red "core" eye in the center.
- Old: A solid, flat red square (
ENEMY_COLOR).
- New: Added
TrailParticleclass. The player's ship now emits cyan particles from the rear when moving forward, which fade out over time. - Old: No engine trails implemented.
- Movement Logic: The Boss now utilizes a timer to switch behaviors between tracking the player (60% chance) and moving to a random point in the upper screen (40% chance). Previously, it only tracked the player directly.
- Dual Bosses: At Level 8+, two bosses will now spawn simultaneously. To balance this, the HP multiplier for bosses was reduced from
2.0to1.2when in dual mode.
- Implementation: The game now renders to a temporary
display_surfaceinstead of directly to the screen. This allows the entire game world to be offset by random X/Y values (shake_offset) during high-impact events (taking damage, destroying a boss).
- Spawning: Neutral ships now spawn exclusively at the screen edges (Top, Bottom, Left, Right) and fly across the screen.
- Old Behavior: Spawned at random coordinates and wrapped around screen edges.
- New: The Lifebar UI now flashes white and red when the player is down to 1 Life.
- 4K Support: Added
(3840, 2160)to the resolution list. - Scaling: Implemented
pygame.SCALEDflag. This ensures the window contents scale up properly on high-DPI monitors or when fullscreen is active on lower resolutions.
- New Feature: Pressing
F12orPRINTSCREENsaves a timestamped PNG of the current frame to the user'sPictures/TristarManiafolder.- Dependencies: Added
import osandfrom datetime import datetime.
- Dependencies: Added
The difficulty curve has been steepened significantly.
- Old Formula:
score_needed = Level * (475 + 25 * Level)
- New Formula:
score_needed = Level * (600 + 100 * Level)
- The text popup for "LEVEL UP" is now faster, lasting 60 frames (1 second) instead of the previous implicit duration.
| Feature | Legacy Version | New Version |
|---|---|---|
| Asteroids | Circles | Rotating Polygons |
| Boss Visuals | Flat Red Square | 3D Beveled Pyramid |
| Boss Count | Single | Double (Level 8+) |
| Lasers | Rectangles | Rotated Sprites + Glow |
| Player Ship | Standard | Added Engine Trails |
| Impact Feel | Standard Audio | Screen Shake + Sparks |
| Max Res | 1080p | 4K (2160p) |
| Screenshots | None | F12 / PrintScreen |
| Render Method | Direct to Screen | Intermediate Surface (for shake) |
You can download the compiled standalone release for your operating system (Windows, macOS, or Linux) directly from the Releases tab. No Python installation is required! Just download the .zip for your OS, extract, and run.