Commit graph

23 commits

Author SHA1 Message Date
0a3897f60a Refactor cmake file so the main part of the code is a lib. 2016-11-11 21:18:39 +01:00
5e76b49cae Use the deferred virtual call mechanism to avoid the virtual
call bug in the constructor.

See docs/wrong_virtual_call.md for a description.
2016-11-10 23:19:55 +01:00
0b6cdeb5f5 Warning and assert fixes. 2016-11-09 23:35:41 +01:00
68d179975e Cast vectors explicitly using vector_cast. 2016-11-02 18:37:45 +01:00
19dc6759df Don't use -std=c++11 explicitly and update cmake version requirement. 2016-10-31 20:47:47 +01:00
efb0f93062 Draw collision lines for the platforms as well.
This highlits the issue with the broken collision and bouncing.
2014-08-25 19:28:10 +02:00
488c31c57e Implement clipping for DrawableLine. 2014-08-23 00:32:33 +02:00
634503bf00 Add a line to the character to mark the collision bar. 2014-08-23 00:32:24 +02:00
164030202c Bouncing works but going too high causes an assertion.
This commit also reduces the jump size and the character's size.
2014-08-03 15:13:54 +02:00
c3baee5b9c Register the character's collision bar to the mover.
This fixes the non-working collision detection.
2014-08-01 17:01:58 +02:00
cdd37fead7 Add code to register objects to the collider.
The character and the platforms can register now, but
collision is not triggered for some reason.
2014-08-01 00:50:49 +02:00
f52476a4ec Add some collision bars. 2014-07-28 11:03:39 +02:00
79fbf0faf7 Support drawing textures without doing any clipping. 2014-03-25 10:32:34 +01:00
d0a052ddb2 Refactoring in SizeNotifiable.
Class is a template now and accepts a registraton policy.
2014-03-20 20:21:59 +01:00
dbf29f13d1 Use the new notifiable system to scale the character. 2014-03-20 12:39:39 +01:00
0c6275f41c Draw in abstract units and scale to pixels at the end. 2014-03-20 12:39:39 +01:00
ccc831e34d Refactoring in SDLMain. 2014-03-20 12:39:39 +01:00
fce08ed793 GPLv3 license. 2014-02-25 14:17:09 +01:00
ac85f96907 Small refactoring in Placeable. 2014-02-22 17:06:25 +01:00
739b75b0b6 Support texture resizing. 2014-02-22 12:25:16 +01:00
28bd73a1f7 PNG loading and major refactoring.
PNG loading is not working properly yet.
2014-02-21 21:51:56 +01:00
93634da6fa Stop using the do-nothing Path class.
Instead use the newly imported PhysicsFS through a wrapper.
2014-02-13 00:01:29 +01:00
bcc0937726 New code, WiP.
New Path, Character and other simple classes, but a renderer is missing so now nothing gets displayed anymore.
2014-02-12 00:27:55 +01:00