SeanOMik
79f5fba2ec
Add color to `Vertex`es
2021-11-25 22:28:47 -05:00
SeanOMik
625ba885c5
Allow triangle class to draw multiple gl triangles
2021-11-25 17:02:08 -05:00
SeanOMik
862833fc71
Fix the 2d triangle, create square, create VAO, and VBO objects.
2021-11-25 16:15:24 -05:00
SeanOMik
741b0c5b07
Add cmrc for resource compiling, add shaders, create a 2d triangle
2021-11-21 01:23:53 -05:00
SeanOMik
9feff47a35
Get an opengl window showing.
2021-11-20 00:48:47 -05:00
SeanOMik
e69c86283c
Delete all old 2d code, change license
2021-11-20 00:48:28 -05:00
SeanOMik
be4ac92fb8
Change cmake option
2021-09-05 22:32:13 -04:00
SeanOMik
283601200d
snake example: Don't allow player to attempt to move backwards.
2021-04-03 22:30:51 -05:00
SeanOMik
94cbd111e8
Change the command handler to update its own list of entities
2021-04-03 22:27:44 -05:00
SeanOMik
823c0b37c6
Use type_traits to decide what distribution to use in Random
2021-03-22 18:55:21 -05:00
SeanOMik
a2837a107c
Don't draw CollisionComponent's hitbox
2021-03-21 19:59:12 -05:00
SeanOMik
f97f882845
Update MovementComponent to use EventCallbacks for input.
2021-03-21 19:55:29 -05:00
SeanOMik
c8dccc9907
Add a little bit of information on the readme.
2021-03-12 22:09:07 -06:00
SeanOMik
2aeacca536
Remove unused #include <iostream>
2021-03-12 22:04:11 -06:00
SeanOMik
62ade4de04
Create simpleengine::Random class, remove simpleengine::random namespace
2021-03-12 21:27:45 -06:00
SeanOMik
f63d596438
Remove unneeded comment
2021-03-12 21:04:07 -06:00
SeanOMik
8848047f73
Create an EventCallback system
2021-03-12 21:01:38 -06:00
SeanOMik
a5ff1a1095
Remove unhandled enum warning
2021-03-12 17:33:48 -06:00
SeanOMik
b9255b1bfb
Compiler warnings, and don't dynamic_cast twice in Entity::GetComponent
2021-03-12 17:33:10 -06:00
SeanOMik
15421ff7e0
Create a Destructable classes to replace IsQuitting and Quit
2021-03-12 17:18:23 -06:00
SeanOMik
8e914acab6
Add created by date to collision_handler.cpp and change year in header
2021-03-12 17:13:33 -06:00
SeanOMik
f38c239a6a
Change how some classes are destroyed
2021-03-12 17:08:20 -06:00
SeanOMik
e2ef3acc5e
Create an AsyncEvent
2021-03-12 16:45:24 -06:00
SeanOMik
4e15efa665
Change created by date for collision handler header.
2021-03-12 16:45:00 -06:00
SeanOMik
5984c75047
Create terrible collision system and mostly finish snake example
2021-03-01 22:08:10 -06:00
SeanOMik
6c28dba5dc
Update snake example, remove some compiler warning
2020-11-04 12:57:44 -06:00
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
5427f85c0a
Update animation example
2020-07-12 22:42:10 -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
f237cf9eff
Dont add MovementComponent to animation example
2020-07-06 14:11:42 -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
3b63025a3f
Separate `&` from parameter names in methods.
2020-07-06 00:45:24 -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
5794fe6c2e
Make Entity class not extend from `enable_shared_from_this`
2020-07-05 00:33:29 -05:00
SeanOMik
5bedd85584
Make Entity::Update call UpdateComponents by default instead of an event
2020-07-04 16:42:11 -05:00
SeanOMik
f639894a0d
Remove some uncommented code in snake example and change window name
2020-07-04 15:21:44 -05:00
SeanOMik
98fdde324f
Make EntityEvent update entities components - Add simple snake movement
2020-07-04 13:55:40 -05:00
SeanOMik
0c525ae9e6
Add acceleration and deceleration to MovementComponent
2020-07-04 13:15:56 -05:00