Centering camera to map.
This commit is contained in:
parent
08b4963bce
commit
89e4744b7a
|
|
@ -1 +1 @@
|
|||
Subproject commit 2a0803d4c4e15048fced7d3c402b76fc782e0d85
|
||||
Subproject commit 45a73232132a6da2646bc7d5c4537ae6e058430d
|
||||
7
TODO.md
7
TODO.md
|
|
@ -17,14 +17,17 @@
|
|||
|
||||
- [ ] Make camera use acceleration
|
||||
|
||||
- [ ] Make camera center on map
|
||||
|
||||
###### Bugs
|
||||
|
||||
- [ ] Fix transparency issues
|
||||
- [ ] Rethink export properties and platforms ?
|
||||
|
||||
### In progress
|
||||
|
||||
### Done
|
||||
|
||||
- [x] Make camera center on map
|
||||
|
||||
- [x] Create camera
|
||||
|
||||
- [x] Optimize asset builder file analize
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ int game_init(void)
|
|||
entity_manager_init();
|
||||
if(asset_manager_init()) return_failure_int;
|
||||
|
||||
asset_t *map_asset = asset_manager_load_asset("dungeon_entry", ASSET_MAP);
|
||||
asset_t *map_asset = asset_manager_load_asset("dungeon_room_1", ASSET_MAP);
|
||||
if(!map_asset) return_failure_int;
|
||||
|
||||
game.map = map_asset->data;
|
||||
|
|
@ -45,8 +45,8 @@ int game_init(void)
|
|||
transform_component_data_t *transform_component_data = transform_component->data;
|
||||
|
||||
transform_component_data->bounds = (frect_t) {
|
||||
.x = 100.0f,
|
||||
.y = 100.0f,
|
||||
.x = 96.0f,
|
||||
.y = 176.0f,
|
||||
.w = 32.0f,
|
||||
.h = 32.0f
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue