File: angles.wl

package info (click to toggle)
wadc 3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 7,352 kB
  • sloc: java: 3,808; ansic: 1,950; xml: 135; makefile: 67; sh: 34
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)
}