Project: Ammo War 2026 Engine Initialization
This is a snippet from my 'Ammo War 2026' project showing the game's splash screen and loading engine initialization logic, including a terminal clearing function.Anonymous
python
02/09/2026 4:14 PM
31.7 KB
10
Indexable
import random
import time
import os
def clear():
os.system('cls' if os.name == 'nt' else 'clear')
def splash_screen():
clear()
print("\n" * 5)
print("\t\t======================================")
print("\t\t PROJECT: AMMO WAR 2026 ")
print("\t\t DEVELOPED BY: DEVANATH ") # Your Name
print("\t\t======================================")
print("\n\t\t [ SYSTEM STARTING... ] ")
time.sleep(3)
def loading_screen():
clear()
print(f"\n\n\n\t\tDEVANATH ENGINE INITIALIZING...")
print("\t\t", end="")
for _ in range(30):
time.sleep(0.08)
print("ā", end="", flush=True)
print("\n\n\t\tSYSTEMS READY.")
time.sleep(1)
def intro_story():
clear()
story = [
"š THE YEAR: 2026",
"š THE CREATOR: DEVANATH",
"",
"The digital world was falling into chaos...",
"The Omega Titan had deleted all the world's code.",
"But DEVANATH programmed one final hope:",
"The Specialist. A hero with infinite rounds.",
"",
"The final battle for the cloud begins now."
]
for line in story:
print(line)
time.sleep(1)
input("\n[ PRESS ENTER TO START DEVANATH'S GAME ]")
def auto_battle():
# Heroes with stats provided by Devanath's logic
party = [
{"name": "Knight", "hp": 160, "atk": 18, "def": 15},
{"name": "Mage", "hp": 90, "atk": 45, "def": 5},
{"name": "Specialist", "hp": 120, "atk": 250, "def": 10, "ammo": 10**30}
]
boss = {"name": "Omega Titan", "hp": 3500, "max_hp": 3500, "atk": 45, "phase": 1}
clear()
print("āļø BATTLE START! āļø")
round_num = 1
while boss['hp'] > 0 and any(h['hp'] > 0 for h in party):
# --- RED HP PHASE 2 ---
if boss['phase'] == 1 and boss['hp'] <= 1000:
boss['phase'] = 2
boss['name'] = "š„ RAGE-CORE TITAN š„"
boss['atk'] += 60
print("\n" + "!"*50)
print("šØ BOSS HP IS RED! PHASE 2: TITAN OVERDRIVE! šØ")
print("!"*50 + "\n")
time.sleep(1.5)
print(f"\n--- ROUND {round_num} ---")
for hero in party:
if hero['hp'] > 0:
if hero['name'] == "Specialist":
dmg = random.randint(300, 500)
boss['hp'] -= dmg
print(f"š« [DEVANATH'S GUN] Specialist deals {dmg} damage!")
else:
dmg = hero['atk'] + random.randint(-5, 5)
boss['hp'] -= dmg
print(f"āļø {hero['name']} deals {dmg} damage.")
if boss['hp'] <= 0: break
if boss['hp'] <= 0:
print(f"\nš VICTORY! {boss['name']} was defeated in Devanath's Arena!")
break
# Boss Attack
living_heroes = [h for h in party if h['hp'] > 0]
if living_heroes:
target = random.choice(living_heroes)
boss_dmg = max(25, boss['atk'] - target['def'])
target['hp'] -= boss_dmg
print(f"š„ {boss['name']} strikes {target['name']} for {boss_dmg} damage!")
time.sleep(0.7)
round_num += 1
if __name__ == "__main__":
splash_screen()
loading_screen()
intro_story()
auto_battle()
]
]Editor is loading...
Leave a Comment