Skip to content

Instantly share code, notes, and snippets.

Created December 14, 2012 03:17
Show Gist options
  • Save anonymous/4282425 to your computer and use it in GitHub Desktop.
Save anonymous/4282425 to your computer and use it in GitHub Desktop.
# You can place the script of your game in this file.
# Declare images below this line, using the image statement.
# eg. image eileen happy = "eileen_happy.png"
# Declare characters used by this game.
init:
$ d = NVLCharacter(None, kind=nvl)
$ _preferences.set_volume("music", 0.7)
image bg black = "#000"
screen start_screen:
modal False
python:
xSize = int(config.screen_width * 0.9)
ySize = int(config.screen_height * 0.9)
window:
background None
xminimum xSize
xmaximum xSize
yminimum ySize
ymaximum ySize
menu:
"Info":
jump info
"Combat Demo":
jump combat_demo
# The game starts here.
label start:
scene bg black
stop music fadeout 1.0
show screen start_screen
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment