Revision 200
zoom controls
proj.c | ||
---|---|---|
121 | 121 |
ent_draw(shooter1); |
122 | 122 |
sprite_draw(sp_crosshair); |
123 | 123 |
graph_draw(); |
124 |
|
|
125 |
uint32_t refresh_count_value = sys_hz() / REFRESH_RATE; |
|
124 | 126 |
#endif |
125 | 127 |
|
126 | 128 |
/// loop stuff |
... | ... | |
147 | 149 |
if ((scancode[0]) == ESC_BREAK_CODE) good = 0; |
148 | 150 |
#ifdef TELMO |
149 | 151 |
if (i == 0) { |
150 |
uint32_t refresh_count_value = sys_hz() / REFRESH_RATE; |
|
151 | 152 |
if (no_interrupts % refresh_count_value == 0) { |
152 | 153 |
update_movement(shooter1); |
154 |
update_scale(); |
|
153 | 155 |
ent_set_origin(ent_get_x(shooter1)-ent_get_XLength()/2.0, |
154 | 156 |
ent_get_y(shooter1)-ent_get_YLength()/2.0); |
155 | 157 |
|
... | ... | |
182 | 184 |
} else { /* received standart message, not a notification */ |
183 | 185 |
/* no standart message expected: do nothing */ |
184 | 186 |
} |
185 |
#ifdef TELMO |
|
186 |
switch (get_hor_movement()) { |
|
187 |
case LEFT: |
|
188 |
printf("GOING LEFT.\n"); |
|
189 |
break; |
|
190 |
case RIGHT: |
|
191 |
printf("GOING RIGHT.\n"); |
|
192 |
break; |
|
193 |
} |
|
194 |
switch (get_ver_movement()) { |
|
195 |
case UP: |
|
196 |
printf("GOING UP.\n"); |
|
197 |
break; |
|
198 |
case DOWN: |
|
199 |
printf("GOING DOWN.\n"); |
|
200 |
break; |
|
201 |
} |
|
202 |
#endif |
|
203 | 187 |
} |
204 | 188 |
|
205 | 189 |
#ifdef TELMO |
Also available in: Unified diff