Revision 185
now facing the right direction
proj/src/proj.c | ||
---|---|---|
1 | 1 |
#include <lcom/lcf.h> |
2 | 2 |
#include <lcom/proj.h> |
3 | 3 |
#include <lcom/liblm.h> |
4 |
#include <math.h> |
|
4 | 5 |
|
5 | 6 |
#include "proj_macros.h" |
6 | 7 |
#include "proj_func.h" |
... | ... | |
159 | 160 |
|
160 | 161 |
sprite_set_pos(crosshair, get_mouse_X(), get_mouse_Y()); |
161 | 162 |
double angle = get_mouse_angle(shooter1); |
162 |
sprite_set_angle(shooter1, angle); |
|
163 |
sprite_set_angle(shooter1, angle - M_PI_2);
|
|
163 | 164 |
graph_clear_screen(); |
164 | 165 |
sprite_draw(crosshair); |
165 | 166 |
sprite_draw(shooter1); |
Also available in: Unified diff