Saves are still off a bit, and collision area doubles instead being halved when reducing the zoom ratio, but it's coming along. :)
This way, I can start experiment on different zoom ratios, and fix the game so I can kill the most magic number possible. Images size and collisions are now set in pixels to fit what an artist would expect when adding new sprites and the game auto translate the values into screen and tile based values. At the moment, collision are still in need of a fix and particle object don't resize themselves. Apart from that, the game is starting to be working again.
- Made the map mode use the standard coordinate system and broke many things along the way. - Cleaned up a bit certain calls to setup the animation scale and sprite positions. - Fixed displaying the collision area and almost the grid. - What's broken are collision area display of sprites, objects, and zones. - Also image and collision area of sprites and objects will have to be turned to use pixels values. - The code is slowly being prepared to use a common zoom ratio value. - I'll then use the zoom ratio of 2.0f, displaying the game without any changes as a goal. - Then, ground layers and sky layers should be drawn unscaled to two textures and those textures will then be rendered rescaled to try and fix the grid glitch seen when using certain tilesets. Part of #253 and #435
Thanks to Willem1 for pointing out. :)
I also fixed a few mistakes while seeing them.
The hole was spotted by Nemesis or Roots (I don't remember. XD)
... where I previoulsy reloaded a sprite and played with a sprite id uselessly. The new way is to use a copy of Bronann which is much simpler and saner.
This is making the game working but doesn't optimize the space used by text.
Conflicts: dat/battles/tutorial_battle_dialogs.lua dat/maps/layna_forest/layna_forest_cave1_1_script.lua dat/maps/layna_forest/layna_forest_cave1_2_script.lua dat/maps/layna_forest/layna_forest_crystal_script.lua dat/maps/layna_forest/layna_forest_entrance_script.lua dat/maps/layna_forest/layna_forest_north_east_script.lua dat/maps/layna_forest/layna_forest_north_west_script.lua dat/maps/layna_forest/layna_forest_wolf_cave_script.lua dat/maps/layna_village/battle_with_banesore/battle_with_banesore_script.lua dat/maps/layna_village/layna_village_bronanns_home_first_floor_script.lua dat/maps/layna_village/layna_village_bronanns_home_script.lua dat/maps/layna_village/layna_village_center_at_night_script.lua dat/maps/layna_village/layna_village_center_script.lua dat/maps/layna_village/layna_village_kalya_house_exterior_script.lua dat/maps/layna_village/layna_village_kalya_house_path_at_night_script.lua dat/maps/layna_village/layna_village_kalya_house_path_script.lua dat/maps/layna_village/layna_village_kalya_house_script.lua dat/maps/layna_village/layna_village_riverbank_at_night_script.lua dat/maps/layna_village/layna_village_riverbank_house_script.lua dat/maps/layna_village/layna_village_riverbank_script.lua dat/maps/layna_village/layna_village_south_entrance_script.lua dat/maps/mt_elbrus/battle_with_dark_soldiers_script.lua dat/maps/mt_elbrus/mt_elbrus_north_east_exit_script.lua dat/maps/mt_elbrus/mt_elbrus_path1_script.lua dat/maps/mt_elbrus/mt_elbrus_path2_script.lua dat/maps/mt_elbrus/mt_elbrus_path3_script.lua dat/maps/mt_elbrus/mt_elbrus_path4_script.lua dat/maps/mt_elbrus/mt_elbrus_shrine1_script.lua dat/maps/mt_elbrus/mt_elbrus_shrine2_script.lua dat/maps/mt_elbrus/mt_elbrus_shrine4_script.lua dat/maps/mt_elbrus/mt_elbrus_shrine5_script.lua dat/maps/mt_elbrus/mt_elbrus_shrine7_script.lua dat/maps/mt_elbrus/mt_elbrus_shrine9_script.lua dat/maps/mt_elbrus/mt_elbrus_shrine_2nd_s2_script.lua dat/maps/mt_elbrus/mt_elbrus_shrine_3rd_script.lua dat/maps/mt_elbrus/mt_elbrus_shrine_basement_script.lua dat/maps/mt_elbrus/mt_elbrus_shrine_stairs_script.lua