File: engine_exhaust.h

package info (click to toggle)
rockdodger 0.9.2-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,220 kB
  • ctags: 756
  • sloc: ansic: 5,374; makefile: 159; sh: 21
file content (26 lines) | stat: -rw-r--r-- 633 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __ENGINE_EXHAUST_H__
#define __ENGINE_EXHAUST_H__

//! Engine dots stream out the back of the ship, getting darker as they go.
struct enginedots {
  float x, y, dx, dy;
  // The life of an engine dot 
  // is a number starting at between 0 and 50 and counting backward.
  float life;			// When reduced to 0, kill
};

/*! \brief Initialise engine dots
 *
 * This function can also be used to remove all engine dots as it only
 * resets the engine-dot pointers.
 */
void init_engine_dots();

void draw_engine_dots(SDL_Surface * s);

void create_engine_dots(int newdots);

void create_engine_dots2(int newdots, int m);


#endif