Timeshift is an animation tool that allows the animation of various types of shapes. Shapes like rectangles, polygons, circles, triangles etc. contain several properties that can be tweaked to change their appearance. By ‘key framing’ these properties across a timeline, these shapes can be animated.
The system comprises of a tool based graphical workspace and a tabular key frame table for animating several properties of a shape.This also includes motion path for spatial animation.The animations themselves are made in seperate compositions Shapes can be selected individually or in a group with an outline around them. On double clicking a shape, a detailed "gizmo" outline appears for visually tweaking that particular shape's properties. Every action in the software is undoable(and redoable) to multiple levels.
Timeshift is a multi module gradle project written in Java(JavaFX used for the frontend). The project is primarily divided into five loosely coupled sub projects: The first three projects are coded to be completely void of any java specific dependency
Util This is a relatively small module that sits at the very top.This project deals with all the utility based classes. Some important ones include UtilPoint, BezierPoint and MathUtil
Timeline This module is the beating heart of all the animation stuff. Essentially it comprises of a Timeline class and a set of ChangeNode classes that facilitate a callback based mechanism for triggering a change.
Motion This module keeps all the shape models and additionally it also has composition controllers that basically "contain" all the elements of a composition
Level editor This is the JavaFX project that has the main class. The term "level editor" is actually used mostly because it started with the intention to be used as a tool in a game. But now its much bigger than that.From this project onwards, there is natural dependency on every Java based feature.
Game This project is mostly unused for now but will be used later on while creating a "runtime" for running these animations independently without the editor in a different frontend.In other words , it will essentially house all the "views".Again ignore the word "game"
The main project sources exists in the timeshift folder. This project is still under development, but you can check some of the pressable tools that work. These include :
Instructions for running
To run the project , ensure that you have the following installed:
- JDK 1.8
Then open a terminal and proceed with the following commands:
- cd timeshift (goes to the main project folder )
- gradle (builds the project)
- cd editor (goes to the Level Editor sub project)
- gradle execute (executes the Level Editor's build)
You can import the project(as a gradle project) in your favorite IDE if you want( I use IntelliJ). Please let me know if you face any issues.