An RPG-like 2D top down demo.
Find a file
King_DuckZ 952a8af9c6 Register things that need the world size as observers to WorldGrid.
Character and WorldViewport get notified when the world size is set.
This way even if world size never changes they still get notified
about the proper world size as soon as that information is ready,
be it during instantiation or registration. Previously I was having
trouble because at the point where Character was instantiated, the
world size was not known yet. As such, I had to call a
character.update_world_size() function after it became available. The
same happened for the viewport, and this looked a bit too brittle
from the programmer's perspective. Now you just instantiate the
Character and things get sorted out automatically.
2017-01-27 16:07:50 +00:00
cmake/include First commit 2016-10-24 00:48:30 +02:00
lib Make a ConstrainedPosition helper class. 2017-01-26 17:37:12 +00:00
src Register things that need the world size as observers to WorldGrid. 2017-01-27 16:07:50 +00:00
.gitignore Make virtual methods protected. 2016-10-26 00:50:14 +02:00
.gitmodules Fix url to vectorwrapper submodule 2016-11-23 18:25:09 +01:00
CMakeLists.txt Register things that need the world size as observers to WorldGrid. 2017-01-27 16:07:50 +00:00
COPYING Attach GPL3 licence. 2016-11-23 17:54:41 +01:00
LPC_Sara_Preview.png Draw a test character to start experimenting. 2016-11-09 01:46:10 +01:00
nonfree_map.tmx Use boost spirit to load csv files. 2016-11-07 22:02:46 +01:00
nonfree_map_ground.csv Use boost spirit to load csv files. 2016-11-07 22:02:46 +01:00
nonfree_map_transparent.csv Use boost spirit to load csv files. 2016-11-07 22:02:46 +01:00
nonfree_texture.png Use boost spirit to load csv files. 2016-11-07 22:02:46 +01:00
textures.xcf Load and display actual tiles 2016-10-27 00:06:59 +02:00