Commit graph

24 commits

Author SHA1 Message Date
8b4ca336ce Differentiate between int and float positions 2014-09-25 23:33:50 +02:00
d82f3b7665 Move external entity state from Entity to Map 2014-09-25 20:53:17 +02:00
eb40e3de72 Add collision layer to maps and prevent movement into blocked areas 2014-09-25 18:39:03 +02:00
efa8640aab Make MapContext keep a complete copy of the map 2014-09-24 17:39:36 +02:00
aadcecf202 Keep mutable entity list in the MapContext only 2014-09-24 15:22:09 +02:00
ccf859fe80 InputHandler: only call listeners when the key's state has changed 2014-09-24 14:27:10 +02:00
657f3ea479 Directly use MapView contructor 2014-09-24 03:38:46 +02:00
3c995acde8 Support multiple map layers, fix transparent tiles 2014-09-24 03:20:25 +02:00
ba321783e7 Simplify thread synchronization 2014-09-24 03:19:55 +02:00
b5c7b4a162 Move more SDL-specific things to the view 2014-09-24 02:27:30 +02:00
ea8840291c New event-driven goodness 2014-09-24 01:38:30 +02:00
24ae848613 Rewrite main loop 2014-09-23 20:58:49 +02:00
8f964bb27d Move main loop to a new class 2014-09-23 20:27:08 +02:00
502f12e189 Add (currently unused) event bus 2014-09-23 20:14:19 +02:00
973f5b69cd Fix accidentially search&replaced license headers 2014-09-23 16:49:56 +02:00
a97ab85b33 32x32 tiles 2014-09-23 16:01:52 +02:00
ed55551853 Some work to allow more dynamic tile sizes 2014-09-23 15:46:21 +02:00
d41e2dae45 Add transitions for entity movement 2014-09-23 02:11:11 +02:00
0c3dbabb92 Improve input responsibility 2014-09-23 00:34:49 +02:00
3a32a49feb Make viewport follow the player character 2014-09-23 00:15:36 +02:00
11e77a9d65 Allow player movement 2014-09-23 00:13:05 +02:00
c9b41bc102 Move render function to new source file 2014-09-22 21:59:13 +02:00
fe0c3b733a Render entities 2014-09-22 21:54:01 +02:00
6e67a0f132 Initial commit 2014-09-22 20:35:45 +02:00