-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4293c46
commit 42b5049
Showing
16 changed files
with
98 additions
and
53 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class Component { | ||
// public: | ||
// Component(GameObject& associated); | ||
// virtual ~Component(); | ||
// void virtual Update(float dt) = 0; | ||
// void virtual Render(float dt) = 0; | ||
// bool virtual Is(const char* type) = 0; | ||
// protected: | ||
// GameObject& associated; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
#include "Game.h" | ||
|
||
// #include "Vec2.h" | ||
// #include "Rect.h" | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
Game::GetInstance().Run(); | ||
return 0; | ||
} | ||
|
||
// Game::GetInstance().GetRenderer() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "Rect.h" | ||
|
||
Rect::Rect(float x, float y, float w, float h) | ||
{ | ||
this->x = x; | ||
this->y = y; | ||
this->w = w; | ||
this->h = h; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class Rect { | ||
public: | ||
Rect(float x = 0, float y = 0, float w = 0, float h = 0); | ||
float x; | ||
float y; | ||
float w; | ||
float h; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "Vec2.h" | ||
|
||
Vec2::Vec2(float x, float y) | ||
{ | ||
this->x = x; | ||
this->y = y; | ||
} | ||
|
||
Vec2 Vec2::Sum2(Vec2 v) | ||
{ | ||
return Vec2(x + v.x, y + v.y); | ||
} | ||
|
||
Vec2 Vec2::Sub2(Vec2 v) | ||
{ | ||
return Vec2(x - v.x, y - v.y); | ||
} | ||
|
||
Vec2 Vec2::Mult2(float e) | ||
{ | ||
return Vec2(x * e, y * e); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class Vec2 { | ||
public: | ||
Vec2(float x = 0, float y = 0); | ||
Vec2 Sum2(Vec2 v); | ||
Vec2 Sub2(Vec2 v); | ||
Vec2 Mult2(float e); | ||
float x; | ||
float y; | ||
}; |