Commit graph

57 commits

Author SHA1 Message Date
ed08a78fb6 Add some comments to ObjModel. 2021-12-08 23:31:46 -05:00
92f7036bc5 Remove extra " that for some reason compiled 2021-12-08 23:16:19 -05:00
b4ad64d5c5 Try to get some simple lighting working 2021-12-08 23:14:45 -05:00
13e6b34243 Pass around a gfx::Shader instead of a shared_ptr<GLuint> 2021-12-07 20:49:25 -05:00
b35583fa4a Separate obj_model.h to a .cpp file also 2021-12-07 16:01:48 -05:00
4a09752f20 Merge Square and Triangle in one class: Model or TexturedModel 2021-12-07 14:51:12 -05:00
a64a748019 Obj model loading and rendering 2021-12-07 00:17:04 -05:00
bab9ef3c74 Move 2d square and triangle files 2021-12-06 22:54:22 -05:00
340b21f099 Create a simple camera 2021-12-06 22:44:47 -05:00
211d8957a3 Make Square transformable 2021-12-02 23:10:32 -05:00
18e01bde5a Create Transformable class and add it to Triangle 2021-12-02 23:07:06 -05:00
779df14f67 Forgot to push all code for last commit 2021-12-02 16:58:15 -05:00
e48f52da75 Start working on translations 2021-11-30 18:30:19 -05:00
d89715a123 Add set_uniform_matrix in Shader 2021-11-30 18:30:07 -05:00
7901413d7b Attempt to get a triangle moving 2021-11-28 13:21:25 -05:00
7687b0d1c8 Fix compiler errors 2021-11-28 13:07:06 -05:00
d6f251d6b8 Forgot to write the shader methods as snake_case 2021-11-28 13:06:41 -05:00
7e0ecda783 Remove the created by comments, and replace header guards with pragma 2021-11-27 14:16:41 -05:00
88fe486473 Move Texture to simpleengine::gfx, separate texture to cpp file 2021-11-27 14:11:07 -05:00
d3555e112d Separate code in square.h and triangle.h to .cpp files 2021-11-27 14:06:51 -05:00
97e1ce44cd Implement textures and add more stuff to Shader 2021-11-27 13:52:48 -05:00
741b0c5b07 Add cmrc for resource compiling, add shaders, create a 2d triangle 2021-11-21 01:23:53 -05:00
9feff47a35
Get an opengl window showing. 2021-11-20 00:48:47 -05:00
e69c86283c
Delete all old 2d code, change license 2021-11-20 00:48:28 -05:00
94cbd111e8
Change the command handler to update its own list of entities 2021-04-03 22:27:44 -05:00
a2837a107c
Don't draw CollisionComponent's hitbox 2021-03-21 19:59:12 -05:00
f97f882845
Update MovementComponent to use EventCallbacks for input. 2021-03-21 19:55:29 -05:00
2aeacca536
Remove unused #include <iostream> 2021-03-12 22:04:11 -06:00
62ade4de04
Create simpleengine::Random class, remove simpleengine::random namespace 2021-03-12 21:27:45 -06:00
f63d596438
Remove unneeded comment 2021-03-12 21:04:07 -06:00
8848047f73
Create an EventCallback system 2021-03-12 21:01:38 -06:00
a5ff1a1095
Remove unhandled enum warning 2021-03-12 17:33:48 -06:00
15421ff7e0
Create a Destructable classes to replace IsQuitting and Quit 2021-03-12 17:18:23 -06:00
8e914acab6
Add created by date to collision_handler.cpp and change year in header 2021-03-12 17:13:33 -06:00
f38c239a6a
Change how some classes are destroyed 2021-03-12 17:08:20 -06:00
5984c75047
Create terrible collision system and mostly finish snake example 2021-03-01 22:08:10 -06:00
6c28dba5dc Update snake example, remove some compiler warning 2020-11-04 12:57:44 -06:00
17b81c83cc
Use shared_ptr for components instead of unique_ptr 2020-07-12 23:16:59 -05:00
7808b7dbf7
Some fixes 2020-07-12 22:46:27 -05:00
65575702d9
Add HitboxComponent::GetHitbox 2020-07-12 22:41:59 -05:00
05ae937acf
Add Entity#GetSprite 2020-07-12 22:41:10 -05:00
17610b1c82
Use a different Entity::Move override in MovementComponent 2020-07-12 22:36:04 -05:00
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
63b2d506ba
Start work on the HitboxComponent. 2020-07-07 00:52:03 -05:00
9013efcf31
Remove horrendous useless commented code. 2020-07-07 00:51:32 -05:00
c395a72e87
Add Entity::RenderComponents and Entity::HasComponent 2020-07-07 00:50:39 -05:00
196f1ae572
Fix ugly indentation in code 2020-07-07 00:50:19 -05:00
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
542974caa7
Rename side_scroller_movement_animation files to ssma_component 2020-07-06 01:02:26 -05:00
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