File: textures.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 (34 lines) | stat: -rw-r--r-- 845 bytes parent folder | download
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
#"standard.h"

main {

    -- simple example of a new texture with two patches
    texture("ZOMG", 64, 128)
    addpatch("RW24_2", 0, 64)
    addpatch("RW24_2", 48, 8)

    -- generate 4 textures with a different BFALLx on each
    set("i", 1)
    for(1, 4,
      texture(cat("ZOMG", get("i")), 128, 128)
      addpatch("RW24_2", 0, 0)
      addpatch("RW24_2",64, 0)
      addpatch(cat("BFALL",get("i")), 32, 0)
      inc("i", 1)
    )

    -- generate a bunch of new textures, adding some new lumps
    -- onto them (the WINUMx menu graphics)
    set("i", 0)
    for(0, 9,
      texture(cat("LOL", get("i")), 64, 128)
      addpatch("RW24_2", 0, 0)
      addpatch(cat("WINUM",get("i")), 32, 0)
      inc("i", 1)
    )

    -- a room so we can see this in DOOM
    pushpop(movestep(32,32) thing)
    mid("LOL3")
    box(0, 128, 140, 256, 256)
}