Advertisement
barsunduk

renpy screen arrow keys

Apr 30th, 2016
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. init:
  2.     $ ax, ay = (.5, .5)
  3.     $ aplus = .01
  4.     transform axy(x, y):
  5.         align(x, y)
  6.     image pers = Text("{size=256}@")
  7. screen test:
  8.     key "focus_left" action SetVariable("ax", ax - aplus)
  9.     key "focus_right" action SetVariable("ax", ax + aplus)
  10.     key "focus_up" action SetVariable("ay", ay - aplus)
  11.     key "focus_down" action SetVariable("ay", ay + aplus)
  12.     add "pers" at axy(ax, ay)
  13.  
  14. label start:
  15.     centered "Жми кнопки стрелок для управления штруделем.{w=2.0}{nw}"
  16.     show screen test
  17.     pause
  18.     return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement