|
Thanks to: |
|

|
|
|
Particle System: Smoke |
| by freenity |
| This particle system simulates something like a fire smoke. It uses png semi transparent images for particles. There are 1500 6x6 particles |
|
Download src (~ 261 KB) |
Download linux bin (~ 264 KB) |
|
Rotozoom & all directions moving |
| by freenity |
| This demo shows the usage of rotozoom
function from SDL_gfx library and calculation of distance in 2D space, angle
calculation from 2D coordinates and all directions object moving using
mouse input. |
|
Download src (~ 2792 B) |
Download linux bin (~ 5397 B) |
|
State Animation |
| by freenity |
| This demo shows how to
implement this technique. The units struct has a member "state", that
can be: STATE_STANDING (0), STATE_WALKING_RIGHT (1) or STATE_WALKIG_LEFT (2). Then the ProcessState() function
chooses the units state and does its animation. The state can be changed
by CheckInput() function. |
|
Download src (~ 3976 B) |
Download linux bin (~ 6589 B) |
|
|