Commit Graph

70 Commits

Author SHA1 Message Date
SeanOMik 17b81c83cc
Use shared_ptr for components instead of unique_ptr 2020-07-12 23:16:59 -05:00
SeanOMik 7808b7dbf7
Some fixes 2020-07-12 22:46:27 -05:00
SeanOMik 65575702d9
Add `HitboxComponent::GetHitbox` 2020-07-12 22:41:59 -05:00
SeanOMik 05ae937acf
Add Entity#GetSprite 2020-07-12 22:41:10 -05:00
SeanOMik 17610b1c82
Use a different Entity::Move override in MovementComponent 2020-07-12 22:36:04 -05:00
SeanOMik 6e76cc0175
Add a sprite field to entity.
I did this because I don't see why an entity would not have a sprite.
2020-07-12 22:35:11 -05:00
SeanOMik 63b2d506ba
Start work on the HitboxComponent. 2020-07-07 00:52:03 -05:00
SeanOMik 9013efcf31
Remove horrendous useless commented code. 2020-07-07 00:51:32 -05:00
SeanOMik c395a72e87
Add Entity::RenderComponents and Entity::HasComponent 2020-07-07 00:50:39 -05:00
SeanOMik 196f1ae572
Fix ugly indentation in code 2020-07-07 00:50:19 -05:00
SeanOMik 06c17658e6
Fix some things with the animation class.
The user wouldn't be able to set a custom scale to their sprite if they used the SSMA component due to it resetting the scale when the sprite was flipped.
2020-07-06 15:05:21 -05:00
SeanOMik 542974caa7
Rename `side_scroller_movement_animation` files to `ssma_component` 2020-07-06 01:02:26 -05:00
SeanOMik 0969a9fb12
Prefix `MovementAnimationComponent` class with SideScroller
The class is really only set up for side scrollers for now
2020-07-06 00:56:48 -05:00
SeanOMik 7787e44fbb
Add a MovementAnimationComponent 2020-07-06 00:44:18 -05:00
SeanOMik 7ae000c4ac
Add some getters and a way to flip an animation 2020-07-06 00:44:06 -05:00
SeanOMik dd919bf89e
Create AnimationComponent, and an example to show it 2020-07-05 01:28:31 -05:00
SeanOMik 0c525ae9e6
Add acceleration and deceleration to MovementComponent 2020-07-04 13:15:56 -05:00
SeanOMik b24f4feb4a
Rework some stuff for memory 2020-07-03 15:26:44 -05:00
SeanOMik ca64ab7a21
Rename `first_example` to `snake`. Also create entity & component system 2020-07-03 13:31:17 -05:00
SeanOMik 4d87f53cf2
Upload first super simple engine version 2020-07-02 22:48:58 -05:00