raze/polymer/eduke32
terminx 50c30ab790 Animation system overhaul part 1. This allows for an unlimited number of .anm/.ivf files to be defined via duke3d.def and played back at any time with the new CON commands. Syntax is currently as follows, but may change:
cutscene "somefile.anm" { delay 10 } // defines somefile.anm with a delay of 10 120Hz tics between frames. a more typical framerate method may come later, but this is how the originals worked.

Once defined, they can be played through CON with the new playback command, also called "cutscene". It works like this:

definequote 12345 somefile.anm
define ANIM_SOMEFILE 12345

...

cutscene ANIM_SOMEFILE // halts game execution and immediately plays cutscene, resuming execution when finished

...

Sounds can be played during animations (and tiles can be overlaid, etc) like this:

onevent EVENT_CUTSCENE
    ifcutscene ANIM_SOMEFILE
    {
        ifvare RETURN 12 // frame 12
            sound FLY_BY
        rotatesprite ...
    }
endevent

The value of the RETURN var at the end of EVENT_CUTSCENE determines the next frame to play. This can be used for looping, etc. Attempting to play animations backwards outright is not advised as animations only seek in one direction (so rewinding requires running it through from frame 0 again). This is will WIP and hasn't been heavily tested at all, so please try it out.

git-svn-id: https://svn.eduke32.com/eduke32@4987 1a8010ca-5511-0410-912e-c29ae57300e0
2015-02-11 05:22:07 +00:00
..
build Animation system overhaul part 1. This allows for an unlimited number of .anm/.ivf files to be defined via duke3d.def and played back at any time with the new CON commands. Syntax is currently as follows, but may change: 2015-02-11 05:22:07 +00:00
jit Bump jit/bcsave.lua to the one from LuaJIT 2.0.3. 2014-04-05 11:28:02 +00:00
package Mapster32: make sprite duplication examples in m32script_ex.map work again. 2015-01-06 19:56:41 +00:00
platform Wii: Output and package the binary as .dol instead of .elf. 2014-12-18 18:15:05 +00:00
rsrc Identify Windows 10 in the startup window/log. DONT_BUILD. 2015-01-11 04:52:45 +00:00
source Animation system overhaul part 1. This allows for an unlimited number of .anm/.ivf files to be defined via duke3d.def and played back at any time with the new CON commands. Syntax is currently as follows, but may change: 2015-02-11 05:22:07 +00:00
_clang-format Add my _clang-format file to the repository. These options are pretty close to what most of our code already looks like, the primary difference being that it enforces spaces between operators and operands. I was initially opposed to the spaces, but I would be lying if I said they didn't increase legibility of much of our code, in addition to making it a lot easier to identify the specific intent in cases where we have a lot of expressions nested within one another. DONT_BUILD. 2014-11-22 12:28:21 +00:00
Android.mk Get rid of -Wdeclaration-after-statement as we're only targeting C99 and C++ now. DONT_BUILD. 2014-11-22 12:29:38 +00:00
eduke32.sln Rename build configurations in VS project. DONT_BUILD. 2015-02-11 05:21:56 +00:00
eduke32.vcxproj Animation system overhaul part 1. This allows for an unlimited number of .anm/.ivf files to be defined via duke3d.def and played back at any time with the new CON commands. Syntax is currently as follows, but may change: 2015-02-11 05:22:07 +00:00
eduke32.vcxproj.filters Animation system overhaul part 1. This allows for an unlimited number of .anm/.ivf files to be defined via duke3d.def and played back at any time with the new CON commands. Syntax is currently as follows, but may change: 2015-02-11 05:22:07 +00:00
Makefile Animation system overhaul part 1. This allows for an unlimited number of .anm/.ivf files to be defined via duke3d.def and played back at any time with the new CON commands. Syntax is currently as follows, but may change: 2015-02-11 05:22:07 +00:00
Makefile.common Makefile.common: disallow building Lunatic with C++ for now. DONT_BUILD. 2015-02-10 17:50:23 +00:00
Makefile.deps Animation system overhaul part 1. This allows for an unlimited number of .anm/.ivf files to be defined via duke3d.def and played back at any time with the new CON commands. Syntax is currently as follows, but may change: 2015-02-11 05:22:07 +00:00
Makefile.msvc Animation system overhaul part 1. This allows for an unlimited number of .anm/.ivf files to be defined via duke3d.def and played back at any time with the new CON commands. Syntax is currently as follows, but may change: 2015-02-11 05:22:07 +00:00