Commit Graph

29 Commits

Author SHA1 Message Date
Thilo Behnke
8aa3a496d6 issue with canvas orientation? 2022-05-02 13:33:35 +02:00
Thilo Behnke
90052a0a55 fixing tests 2022-05-02 12:25:31 +02:00
Thilo Behnke
ccfe632c17 logger impl 2022-05-02 11:29:09 +02:00
Thilo Behnke
0ae29f4bc0 fix tests 2022-05-01 18:35:33 +02:00
Thilo Behnke
213ea54509 object composition really right approach? would be much simpler to just copy the game objs if needed 2022-05-01 18:33:54 +02:00
Thilo Behnke
967e13545d player bound collision tests 2022-05-01 18:08:50 +02:00
Thilo Behnke
5a27fbd3fe fixing tests 2022-05-01 16:56:53 +02:00
Thilo Behnke
f7962531c6 working solution? RefCell::borrow was shadowed 2022-04-26 23:57:26 +02:00
Thilo Behnke
2aff2713d3 using refcells? 2022-04-25 23:57:40 +02:00
Thilo Behnke
c82c649dc2 different approach: register collision handlers 2022-04-25 22:06:53 +02:00
Thilo Behnke
2be20b40a5 refactor shape into enum 2022-04-24 23:43:12 +02:00
Thilo Behnke
9f4feb804d tests fixed 2022-04-24 23:16:12 +02:00
Thilo Behnke
c354f9856d refactoring done, tests broken? 2022-04-24 23:11:45 +02:00
Thilo Behnke
ca3a899e7d wip - fixing tests: 2022-04-24 20:46:10 +02:00
Thilo Behnke
86b1ac6052 wip - created geom & physics comp 2022-04-24 18:32:22 +02:00
Thilo Behnke
9dd7b80b82 bugfix for vector reflection 2022-04-23 22:10:09 +02:00
Thilo Behnke
ee2f8e932b more tests + logger 2022-04-23 12:22:24 +02:00
Thilo Behnke
cf170d40e7 more tests for reflection 2022-04-23 12:01:55 +02:00
Thilo Behnke
d91b88eb62 vector projection & orthogonals 2022-04-23 11:29:23 +02:00
Thilo Behnke
7e5b928caa how to handle collision with paddle? 2022-04-23 00:15:42 +02:00
Thilo Behnke
7a4ef75c46 migrate game obj pos to float 2022-04-22 23:47:28 +02:00
Thilo Behnke
91a48cf132 fix perpendicular rotate + rotate -> issue in tests with rounding errors 2022-04-21 20:27:41 +02:00
Thilo Behnke
4373e1a593 wip - rotate 2022-04-21 20:24:22 +02:00
Thilo Behnke
54e19d4d5f better mutate vector instead of cloning and normalizing 2022-04-21 20:16:44 +02:00
Thilo Behnke
885ebdbd20 perpendicular vectors 2022-04-21 20:09:43 +02:00
Thilo Behnke
dc7f6c1e34 hotfix pos update for game objects 2022-04-20 23:54:05 +02:00
Thilo Behnke
9870e719da use float in vector - breaks movement of objects 2022-04-20 23:35:27 +02:00
Thilo Behnke
cae1886684 fix tests + working bounds collisions 2022-04-20 23:01:16 +02:00
Thilo Behnke
1974a8a83c refactoring/refactor-game-logic-into-lib 2022-04-20 22:14:05 +02:00