Commit Graph

49 Commits

Author SHA1 Message Date
Steve befea2ac65 Allow entities to mostly go offscreen, but not enough to let the player cut across the level. 2018-02-25 08:36:40 +00:00
Steve dba5248a41 Fix segfault when freeing entities. 2018-02-22 19:03:48 +00:00
Steve bea993ece0 Ensure we draw entities when in observing mode. 2018-02-18 17:01:38 +00:00
Steve 17ee7642e9 Return pointer to sprite rect. 2018-02-17 16:53:30 +00:00
Steve 427848db9a Target marker fixes. 2018-02-16 08:41:02 +00:00
Steve 6f69f9a56a Always add to quadtree if not dead or teleporting. 2018-02-16 08:08:52 +00:00
Steve 1df85d0937 Misc. tweaks. 2018-02-15 21:40:21 +00:00
Steve 165cafaf04 Allow items to be picked up sooner after they are dropped. 2018-02-15 07:50:05 +00:00
Steve 4258575a26 Added Exit, Destructable, and Cannon. 2018-02-14 22:31:21 +00:00
Steve ef9d6db851 Quadtree fixes. 2018-02-12 18:27:12 +00:00
Steve 58c398475c Allow world to be set as static, for testing. 2018-02-11 12:37:37 +00:00
Steve 57aaafa789 Use e here, instead of self, for more clarity. 2018-02-11 11:09:16 +00:00
Steve 284436f8c9 Remove dead entities as soon as possible, to prevent dangling pointers. 2018-02-11 07:59:11 +00:00
Steve 32109cbc15 Prevent entity from leaving the map bounds. 2018-02-09 22:34:30 +00:00
Steve 972c3c4aa9 Set sprite frame to 0 when dead. 2018-02-09 22:34:01 +00:00
Steve d8c9337a2e Expand quadtree range for platform contact. 2018-02-09 08:21:08 +00:00
Steve d09ceefbb9 Update quadtree for pushed entities. Handle riders. 2018-02-09 07:42:36 +00:00
Steve 0e71bcc88f Use quadtree for collisions. 2018-02-09 07:21:37 +00:00
Steve b862123c95 Focus camera on doors, etc., that are opened when offscreen. 2018-02-07 19:21:13 +00:00
Steve 220e3b99e9 Item handling updates. Keys should stack. 2018-02-06 22:27:02 +00:00
Steve 156a5dac8f isOnScreen -> isVisible. 2018-02-06 07:32:08 +00:00
Steve e70966e35d Power up fixes. 2018-02-06 07:29:39 +00:00
Steve 9c6ada01dc Sort entities in draw order. 2018-02-05 22:06:00 +00:00
Steve d10356c42c Added swapSelf() to handle current entity handling. 2018-02-05 08:37:07 +00:00
Steve a84f261154 Only set entity size once. Test entity is dead before testing alive (race condition when adding to quadtree). 2018-02-04 12:01:55 +00:00
Steve 7e88125864 Default function for changeEnvironment. 2018-02-04 11:24:19 +00:00
Steve c4346550cf Only add to quadtree if alive. 2018-02-04 11:00:42 +00:00
Steve 3d2000e818 Always set entity size. 2018-02-03 18:31:55 +00:00
Steve fc519c54b0 Pushing code fix. 2018-02-03 18:17:45 +00:00
Steve 72de423bba Preserve original string when activitating entites. 2018-02-03 16:31:12 +00:00
Steve d51e96c74a Fixed teleporter. 2018-02-03 16:13:37 +00:00
Steve e97d38e278 Activate entities correctly. 2018-02-03 15:53:21 +00:00
Steve b8aa460221 Basic movement. Various bug fixes. 2018-02-03 13:07:56 +00:00
Steve cd80ebacea Show target markers. 2018-02-03 11:47:50 +00:00
Steve c77cea92a6 Collision bug fixes. 2018-02-03 11:32:03 +00:00
Steve 0a131e25c0 Implemented more entity handling code. 2018-02-03 10:01:14 +00:00
Steve b3c8ca90d5 Start of entity management. 2018-02-03 08:44:02 +00:00
Steve 383c8c19a3 Various bug fixes. 2018-02-02 23:01:51 +00:00
Steve 3c7b3b5170 Added world code. 2018-02-02 19:10:12 +00:00
Steve 0872a3b82b Animation and drawing updates. 2018-02-02 08:00:27 +00:00
Steve 0df09f914a Particles processing, Bob, and entity actions. 2018-02-01 21:51:43 +00:00
Steve d11443158d Use getCurrentSprite for entity sprites. 2018-01-31 22:28:00 +00:00
Steve cab6d3b205 Render entities. 2018-01-31 21:50:49 +00:00
Steve 7a2529d250 Teeka. 2018-01-25 08:11:45 +00:00
Steve 2959f9515d Unit. 2018-01-24 22:15:24 +00:00
Steve a29e81d131 Updated entities. 2018-01-24 19:04:36 +00:00
Steve bcb2bf1391 Weapons. 2018-01-22 21:47:04 +00:00
Steve 5b37609404 Explosions. 2018-01-22 07:44:15 +00:00
Steve 7380514a7e Triggers. 2018-01-21 12:19:07 +00:00