test/snake/snake.c

changeset 220
6b266e907f89
parent 217
4b3c974eab44
equal deleted inserted replaced
219:62508d957a22 220:6b266e907f89
272 272
273 // load textures 273 // load textures
274 init_textures(); 274 init_textures();
275 275
276 // initialize the scenes 276 // initialize the scenes
277 asc_scene_init(BACKDROP_SCENE, 277 asc_scene_init(BACKDROP_SCENE, "backdrop",
278 .type = ASC_CAMERA_ORTHO, 278 .type = ASC_CAMERA_ORTHO,
279 .projection_update_func = asc_camera_ortho_update_size 279 .projection_update_func = asc_camera_ortho_update_size
280 ); 280 );
281 asc_scene_init(MAIN_SCENE, 281 asc_scene_init(MAIN_SCENE, "main",
282 .type = ASC_CAMERA_ORTHO, 282 .type = ASC_CAMERA_ORTHO,
283 .ortho.rect = ASC_RECT(0, 0, 283 .ortho.rect = ASC_RECT(0, 0,
284 (game_field_size+1)*game_field_tile_size, 284 (game_field_size+1)*game_field_tile_size,
285 (game_field_size+1)*game_field_tile_size 285 (game_field_size+1)*game_field_tile_size
286 ), 286 ),

mercurial