File: GetPlayerPosition.lvl

package info (click to toggle)
xmoto 0.6.1%2Brepack-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 79,648 kB
  • sloc: cpp: 106,826; ansic: 50,210; xml: 7,832; sh: 465; ruby: 26; makefile: 3
file content (41 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (3)
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
<?xml version="1.0" encoding="utf-8"?>
<level id="GetPlayerPosition" levelpack="Test Levels">
<info>
<name>GetPlayerPosition</name>
<description></description>
<author></author>
<date></date>
<sky>sky1</sky>
</info>
<script>
function Tick()
  x, y, bright = Game.GetPlayerPosition()
  if x > 18
  then
    Game.SetPlayerPosition(5, 0, 1)
  end

  return true
end
</script>
<limits left="0" right="50" top="30" bottom="0"/>
<block id="Block0">
<position x="0" y="0"/>
<usetexture id="default"/>
<vertex x="5" y="5"/>
<vertex x="5" y="10"/>
<vertex x="10" y="10"/>
<vertex x="10" y="5"/>
</block>
<entity id="MyPlayerStart0" typeid="PlayerStart">
<size r="0.4"/>
<position x="7.5" y="10"/>
</entity>
<entity id="Strawberry0" typeid="Strawberry">
<size r="0.4"/>
<position x="20" y="0.5"/>
</entity>
<zone id="Zone0">
<box left="40" right="50" top="5" bottom="0"/>
</zone>
</level>