-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunigame.py
More file actions
61 lines (49 loc) · 1.31 KB
/
unigame.py
File metadata and controls
61 lines (49 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
"""
shadow-run
===============================
A professional 2D endless platformer game built with Pygame
Controls:
"Jump: SPACE / W / UP Arrow",
"Flip Gravity: SHIFT / S / DOWN Arrow / F",
"Shoot: LEFT CLICK / X / Z / CTRL",
"Pause: ESC or P",
Features:
- Endless procedurally generated world
- Progressive difficulty system
- Multiple enemy types
- Collectibles and power-ups
- Health and score systems
- Leaderboard with persistent high scores
- Smooth camera following
- Particle effects
- Parallax background
"""
import sys
import os
# Ensure we can import from the game package
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
# Check for Pygame installation
try:
import pygame
except ImportError:
print("=" * 60)
print("ERROR: Pygame is not installed!")
print("Please install it using: pip install pygame")
print("=" * 60)
sys.exit(1)
from game.game import Game
def main():
"""Main entry point for the game"""
print("=" * 60)
print(" SHADOW RUN : endless nightmare")
print("=" * 60)
print(" Starting game...")
print("=" * 60)
# Create and run the game
game = Game()
game.run()
print()
print("Thanks for playing!")
print("=" * 60)
if __name__ == "__main__":
main()