Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions graphic_arts/start_game_banner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
from asciimatics.renderers import FigletText, Fire
from asciimatics.renderers import SpeechBubble
from asciimatics.scene import Scene
from asciimatics.screen import Screen
from asciimatics.effects import Print
from asciimatics.exceptions import ResizeScreenError
from pyfiglet import Figlet
import sys


def animation(screen):
scenes = []

text = Figlet(font="banner", width=200).renderText("START GAME")
print(text)
effects = [
Print(screen,
Fire(screen.height, 80, text, 0.4, 40, screen.colours),
0,
speed=1,
transparent=False,
),
Print(screen,
FigletText("Real Practic Game", "banner"),
screen.height - 15,
colour=Screen.COLOUR_WHITE,
bg=Screen.COLOUR_WHITE,
speed=1),
Print(screen,
SpeechBubble("Please press X - start game"),
screen.height-5,
speed=1, transparent=False)

]
scenes.append(Scene(effects, -1))

screen.play(scenes, stop_on_resize=True)


def run_screensaver():
Screen.wrapper(animation)


if __name__ == "__main__":
run_screensaver()
sys.exit(0)