summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-18 01:27:43 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-18 01:27:43 -0300
commit8a4e94baf981d7371612321edd404c299ea781fa (patch)
treeb35e88110e1621dafa9cd6e41637d05702d31d91
parent30fdb3479af1476a8556e4ea5d606e7bb2b7104e (diff)
downloadrenpy-8a4e94baf981d7371612321edd404c299ea781fa.tar.gz
renpy-8a4e94baf981d7371612321edd404c299ea781fa.tar.bz2
renpy-8a4e94baf981d7371612321edd404c299ea781fa.tar.xz
renpy-8a4e94baf981d7371612321edd404c299ea781fa.zip
The Void, initial version
-rw-r--r--game/client.rpy1
-rw-r--r--game/renpy.rpy53
2 files changed, 53 insertions, 1 deletions
diff --git a/game/client.rpy b/game/client.rpy
index 9a26ea3..e9b87b4 100644
--- a/game/client.rpy
+++ b/game/client.rpy
@@ -153,6 +153,7 @@ init 2 python:
mySoul={}
mySoul["level"]=dat["soulv"]
mySoul["exp"]=dat["soulx"]
+ mySoul["next"]=dat["varlv"]
progress = 100
except:
traceback.print_exc()
diff --git a/game/renpy.rpy b/game/renpy.rpy
index 824e29e..06548b9 100644
--- a/game/renpy.rpy
+++ b/game/renpy.rpy
@@ -56,6 +56,52 @@ screen serverdata(server):
null width 20
text _("{a=%s}Terms of Use{/a}" % persistent.serverlist[server]["Policy"])
+screen souldata():
+ zorder 100
+ if mySoul is not None:
+ fixed:
+ frame:
+ background Frame("images/default.png", 0, 0)
+ xalign 0.5
+ yalign 0.5
+ xminimum 0.85
+ xmaximum 0.85
+ yminimum 0.8
+ ymaximum 0.8
+ hbox:
+ null width 320
+ null width 40
+ vbox:
+ null height 20
+ label "{b}{color=#FFF}%s{/color}{/b}" % mySoul["name"]
+ null height 20
+ hbox:
+ label "{color=#FFF}0{/color}"
+ null width 20
+ bar:
+ value mySoul["exp"]
+ range mySoul["next"]
+ xmaximum 0.5
+ null width 20
+ label "{color=#FFF}%d{/color}" % mySoul["next"]
+ null height 30
+ hbox:
+ label "{color=#FFF}%s %d{/color}" % (_("Level"), mySoul["level"])
+ #button Level up
+ frame:
+ yalign 0.9
+ xalign 0.9
+ xmaximum 240
+ button:
+ xmaximum 240
+ ymaximum 40
+ action Return()
+ fixed:
+ #add Frame("gui/button/choice_hover_background.png", 0, 0)
+ text _("Return ยป"):
+ color "#000"
+ xalign 0.5
+ yalign 0.5
# The game starts here.
label start:
@@ -278,8 +324,13 @@ label thevoid:
break
hide loader with None
if mySoul is not None:
+ python:
+ if persistent.steam and steam.initialized:
+ mySoul["name"] = steam.get_persona_name()
+ else:
+ mySoul["name"] = _("Wanderer")
$ stdout("Level %d EXP %d" % (mySoul["level"], mySoul["exp"]))
- pause
+ call screen souldata()
scene black with Dissolve(1.5)
pause 0.15
return