-
-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scrapped the old crappy animation system because it made absolutely no sense and was horribly limiting. The new system is based on two mechanisms. The first is a new section in PIE files called ANIMOBJ that modify the position, rotation and scaling of frames for the given mesh level. The second is a new directive in PIE files called EVENT which tells the game to use a different model instead when the given event is triggered for the game object, such as burning and moving. There used to be three animations systems in the game - texture coordinate flipping, key frames, and skeletal. Key frames are now merely expressed in terms of skeletal frames in which scaling for all but the key frame is set to a fixed -1000, which disables the frame entirely. The reason that this information went into the PIE files is simply because it was easier. Making a new file format when there is current exactly two models with proper animation (supercyborg and oil derrick) made little sense. In the long run we should reconsider the whole PIE format. Scaling now actually supported, in all three dimensions. It used to possible to specify in ANI files, but was never used. Each level can now have separate animation framerates and cycle counts (how many times to run an animation, zero for infinity). Currently implemented for structures and droid bodies (which includes cyborg feet). Currently supported animation event types: Movement, power generator active, firing, and dying. All units can now have a dying animation. However, babas no longer run around screaming before they die - this was just too hard to generalize (and was pretty much broken anyway). See documentation in doc/ for further details.
- Loading branch information
Showing
76 changed files
with
1,527 additions
and
3,769 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,6 @@ stamp: | |
|
|
||
| BASELIST = \ | ||
| palette.txt \ | ||
| anims \ | ||
| audio \ | ||
| campaigns \ | ||
| components \ | ||
|
|
||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| PIE 2 | ||
| TYPE 200 | ||
| TEXTURE 0 page-14-droid-hubs.png 256 256 | ||
| EVENT 1 cybd_run.pie | ||
| LEVELS 1 | ||
| LEVEL 1 | ||
| POINTS 26 | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.