First render of the physics

This commit is contained in:
2022-11-02 07:44:57 +01:00
parent 303b2cffb1
commit ebd188f1b0
8 changed files with 74 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
#ifndef VECTOR_H
#define VECTOR_H
struct Vec2
{
int x, y = 0;
@@ -11,6 +12,9 @@ struct Vec2
Vec2 operator/ (const int left);
int norm();
};
const static Vec2 gravity = {0,10};
#endif /* VECTOR_H */