-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.py
More file actions
55 lines (48 loc) · 1.19 KB
/
example.py
File metadata and controls
55 lines (48 loc) · 1.19 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
"""
Beispiele fuer GameTextbox. Einfach starten mit: python example.py
"""
from gametextbox import render
# 1. Klassischer RPG-Style
render(
text="Hallo Welt!\nDas ist deine neue Textbox-Software.",
preset="classic_rpg",
output="output/01_classic_rpg.mov",
speed=35,
)
# 2. Pokemon-Style
render(
text="Ein wildes PIKACHU erscheint!",
preset="pokemon",
output="output/02_pokemon.mov",
speed=40,
)
# 3. Visual Novel mit Sprecher-Namen
render(
text="Hm... Willkommen zurueck. Ich habe auf dich gewartet.",
preset="visual_novel",
output="output/03_vn.mov",
speaker_name="Mikshade",
speed=25,
)
# 4. Undertale
render(
text="* You feel like you're going to have a bad time.",
preset="undertale",
output="output/04_undertale.mov",
speed=28,
)
# 5. Modern AAA Style
render(
text="QUEST UPDATED: Defeat the ancient dragon.",
preset="modern_game",
output="output/05_modern.mov",
speed=50,
)
# 6. Final Fantasy
render(
text="The warrior of light has arrived.\nThe fate of the world rests in your hands.",
preset="final_fantasy",
output="output/06_ff.mov",
speed=38,
)
print("\nAlle Beispiele gerendert in ./output/")