192 create_score_counter(); |
192 create_score_counter(); |
193 |
193 |
194 // create spaceship |
194 // create spaceship |
195 create_spaceship(); |
195 create_spaceship(); |
196 |
196 |
197 // TODO: play around with the test rectangles |
|
198 asc_ink_rgb(255, 0, 0); |
|
199 asc_scene_add_node(MAIN_SCENE, |
|
200 asc_rectangle(.x = 200, .y = 250, .width = 100, .height = 75, |
|
201 .thickness = 4, .radius = 15, .filled = true, .border_color = asc_col4i_new(0, 255, 0, 255)) |
|
202 ); |
|
203 asc_scene_add_node(MAIN_SCENE, |
|
204 asc_rectangle(.x = 50, .y = 150, .width = 100, .height = 75, |
|
205 .thickness = 4, .radius = 15, .filled = false, .border_color = asc_col4i_new(0, 255, 0, 255)) |
|
206 ); |
|
207 asc_scene_add_node(MAIN_SCENE, |
|
208 asc_rectangle(.x = 50, .y = 25, .width = 100, .height = 75, |
|
209 .thickness = 4, .filled = false, .border_color = asc_col4i_new(0, 255, 0, 255)) |
|
210 ); |
|
211 asc_scene_add_node(MAIN_SCENE, |
|
212 asc_rectangle(.x = 250, .y = 25, .width = 100, .height = 75, |
|
213 .thickness = 4, .filled = true, .border_color = asc_col4i_new(0, 255, 0, 255)) |
|
214 ); |
|
215 asc_scene_add_node(MAIN_SCENE, |
|
216 asc_rectangle(.x = 350, .y = 250, .width = 100, .height = 75, |
|
217 .radius = 15, .filled = true) |
|
218 ); |
|
219 asc_scene_add_node(MAIN_SCENE, |
|
220 asc_rectangle(.x = 350, .y = 50, .width = 100, .height = 75, |
|
221 .filled = true) |
|
222 ); |
|
223 asc_scene_add_node(MAIN_SCENE, |
|
224 asc_rectangle(.x = 50, .y = 350, .width = 100, .height = 75, |
|
225 .radius = 15) |
|
226 ); |
|
227 asc_scene_add_node(MAIN_SCENE, |
|
228 asc_rectangle(.x = 350, .y = 350, .width = 100, .height = 75) |
|
229 ); |
|
230 |
|
231 |
|
232 // Main Loop |
197 // Main Loop |
233 do { |
198 do { |
234 // quit application on any error |
199 // quit application on any error |
235 if (asc_has_error()) { |
200 if (asc_has_error()) { |
236 SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, |
201 SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, |