File: Animation.md

package info (click to toggle)
warzone2100 4.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 660,320 kB
  • sloc: cpp: 676,209; ansic: 391,201; javascript: 78,238; python: 16,632; php: 4,294; sh: 4,094; makefile: 2,629; lisp: 1,492; cs: 489; xml: 404; perl: 224; ruby: 156; java: 89
file content (24 lines) | stat: -rw-r--r-- 716 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
Animation system
================

There are two ways to implement animation in Warzone.

Texture animation
-----------------

You can make flip through a stack of textures to implement
animation. They need to be lined up in the texture page
horizontally, and the offset and number of frames to cycle
through are specified in the model file.

See the [PIE format specification](PIE.md) for details.

Model animation
---------------

Currently implemented for structures and droid bodies (which includes
cyborg feet). You can specify animations that trigger on movement,
structure activation (only implemented for Power Generator so far),
shooting, and dying.

See the [PIE format specification](PIE.md) for details.