Commit graph

24 commits

Author SHA1 Message Date
b3e7f3ac1c Import tmxlite. 2017-07-24 01:26:05 +01:00
d96dbb9fe8 Update vectorwrapper.
Also make the necessary changes to fix the build after the update.
2017-03-17 00:30:34 +00:00
9428e63fc2 Layers are now named, so code can request a layer by name. 2017-03-15 21:48:27 +00:00
23d7121e76 Add safe_ptr from kakoune. 2017-03-12 15:12:09 +00:00
0560affdf9 Import clooneljump as a subproject.
Remove manually copy-pasted files taken from cloonelgraphics and
use the up-to-date version from the submodule instead.
2017-03-11 08:22:23 +00:00
47aa9f2948 Move everything into a shared lib so unit test can access stuff. 2017-02-09 18:11:09 +00:00
e2d307da52 Initial WiP implementation of 2D grid raytracing. Not working. 2017-02-08 16:39:46 +00:00
5a8c3fcac0 Add Catch for unit testing. 2017-02-08 16:32:55 +00:00
8e1c19df47 Add an fsgn() function.
fsgn() returns -1/0/1 depending on the parameter's sign.
2017-02-08 16:30:48 +00:00
3907ef6d6d Move movement logic out from the gameplay scene.
Character now knows how to move by itself.
2017-01-30 12:29:57 +00:00
4715552b44 Update to latest vectorwrapper. 2017-01-27 19:37:20 +00:00
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
38826b94b8 Fix randomly happening floating point error during clipping. 2016-11-09 01:46:36 +01:00
e65c2341c2 Draw a test character to start experimenting. 2016-11-09 01:46:10 +01:00
5d231206ef Fix rect clipping 2016-11-08 20:15:19 +01:00
20f8e75937 Use boost spirit to load csv files.
Allow loading of multiple csv files. Iterating on tiles now returns
a list of tiles, in back-to-front order.
Add a nicer tileset (although it's non-free and needs permission from
its author, need to get in touch in due time).
2016-11-07 22:02:46 +01:00
5da4cef4a5 Move clipping and drawing to base class and fix int<->float warnings. 2016-10-30 23:30:32 +01:00
629a3d9e08 Add movingobject 2016-10-28 21:06:19 +02:00
b8840045a5 Load and display actual tiles 2016-10-27 00:06:59 +02:00
b5a6b9f9bc Quick dirty implementation of a world grid+viewport+iterator.
This commit makes the program quit immediately.
Prints debug info about iterator.
Incomplete, no actual tile being iterated.
2016-10-26 02:24:59 +02:00
92a1069324 Show window and allow user to close it to quit. 2016-10-26 01:20:01 +02:00
6afa1a4cd4 Make virtual methods protected. 2016-10-26 00:50:14 +02:00
482a13ea47 Import DeathHandler. 2016-10-25 01:28:05 +02:00
95499e3d77 First commit 2016-10-24 00:48:30 +02:00