Reworked the internal CMap, it now does not know what a terrain or an actor...
Reworked the internal CMap, it now does not know what a terrain or an actor is, instead the map objects are just textures, positioned on a z-order, each map object can tell if it can be seen, remembered, ... Trees are now made of two or more map objects, a patch of grass and one or more tree, randomly placed on the tile, to make forests look less tilish git-svn-id: http://svn.net-core.org/repos/t-engine4@863 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
- game/engine/Actor.lua 4 additions, 0 deletionsgame/engine/Actor.lua
- game/engine/Entity.lua 33 additions, 5 deletionsgame/engine/Entity.lua
- game/engine/Grid.lua 4 additions, 0 deletionsgame/engine/Grid.lua
- game/engine/Map.lua 10 additions, 8 deletionsgame/engine/Map.lua
- game/engine/Object.lua 4 additions, 0 deletionsgame/engine/Object.lua
- game/engine/Trap.lua 4 additions, 0 deletionsgame/engine/Trap.lua
- game/engine/generator/map/Forest.lua 19 additions, 10 deletionsgame/engine/generator/map/Forest.lua
- game/engine/generator/map/Roomer.lua 21 additions, 12 deletionsgame/engine/generator/map/Roomer.lua
- game/modules/tome/class/Grid.lua 25 additions, 0 deletionsgame/modules/tome/class/Grid.lua
- game/modules/tome/data/general/grids/forest.lua 7 additions, 3 deletionsgame/modules/tome/data/general/grids/forest.lua
- game/modules/tome/data/gfx/terrain/tree_alpha1.png 0 additions, 0 deletionsgame/modules/tome/data/gfx/terrain/tree_alpha1.png
- game/modules/tome/data/gfx/terrain/tree_alpha2.png 0 additions, 0 deletionsgame/modules/tome/data/gfx/terrain/tree_alpha2.png
- game/modules/tome/data/gfx/terrain/tree_alpha3.png 0 additions, 0 deletionsgame/modules/tome/data/gfx/terrain/tree_alpha3.png
- src/core_lua.c 2 additions, 2 deletionssrc/core_lua.c
- src/main.c 5 additions, 7 deletionssrc/main.c
- src/map.c 64 additions, 92 deletionssrc/map.c
- src/map.h 6 additions, 6 deletionssrc/map.h
- src/sdnoise1234.c 1 addition, 1 deletionsrc/sdnoise1234.c
Loading
Please register or sign in to comment