mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 19:29:52 +02:00
Gravitaaaay (Needs tweeking for performance)
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
#define AIR_H
|
||||
#include "defines.h"
|
||||
|
||||
extern float ogravmap[YRES/CELL][XRES/CELL];
|
||||
extern float gravmap[YRES/CELL][XRES/CELL];
|
||||
extern float gravx[YRES/CELL][XRES/CELL];
|
||||
extern float gravy[YRES/CELL][XRES/CELL];
|
||||
|
||||
extern float vx[YRES/CELL][XRES/CELL], ovx[YRES/CELL][XRES/CELL];
|
||||
extern float vy[YRES/CELL][XRES/CELL], ovy[YRES/CELL][XRES/CELL];
|
||||
extern float pv[YRES/CELL][XRES/CELL], opv[YRES/CELL][XRES/CELL];
|
||||
@@ -16,6 +21,8 @@ extern float kernel[9];
|
||||
|
||||
void make_kernel(void);
|
||||
|
||||
void update_grav(void);
|
||||
|
||||
void update_air(void);
|
||||
|
||||
#endif
|
@@ -100,6 +100,8 @@ void draw_icon(pixel *vid_buf, int x, int y, char ch, int flag);
|
||||
|
||||
void draw_air(pixel *vid);
|
||||
|
||||
void draw_grav(pixel *vid);
|
||||
|
||||
void draw_line(pixel *vid, int x1, int y1, int x2, int y2, int r, int g, int b, int a);
|
||||
|
||||
void addpixel(pixel *vid, int x, int y, int r, int g, int b, int a);
|
||||
|
Reference in New Issue
Block a user