File: angles.wl

package info (click to toggle)
wadc 2.1%2Bgit3aac3015-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,312 kB
  • ctags: 643
  • sloc: java: 2,771; ansic: 1,526; xml: 125; makefile: 33; sh: 13
file content (30 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (4)
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
/*
 * angles.wl - part of WadC
 * Copyright © 2016 Jonathan Dowland <jon@dow.land>
 *
 * Distributed under the terms of the GNU GPL Version 2
 * See file LICENSE.txt
 *
 * test of manually-provided thing angles
 * a ring of zombies around the player facing away at 8
 * compass points
 */

#"standard.h"
#"monsters.h"

main {

    box(0,192,160,512,512)
    movestep(256,256) thing
    formerhuman

    movestep( 128,    0) thingangle(angle_north)
    movestep(   0,  128) thingangle(angle_ne)
    movestep(-128,    0) thingangle(angle_east)
    movestep(-128,    0) thingangle(angle_se)
    movestep(   0, -128) thingangle(angle_south)
    movestep(   0, -128) thingangle(angle_sw)
    movestep( 128,    0) thingangle(angle_west)
    movestep( 128,    0) thingangle(angle_nw)
}