Commit Graph

77 Commits

Author SHA1 Message Date
Thilo Behnke
8aa3a496d6 issue with canvas orientation? 2022-05-02 13:33:35 +02:00
Thilo Behnke
41f6ae77e7 working player bound collision 2022-05-02 13:28:55 +02:00
Thilo Behnke
9fd69abc26 show debug info in canvas 2022-05-02 13:15:21 +02:00
Thilo Behnke
47fc0b6811 buttons for pausing/resuming/tick game 2022-05-02 12:50:09 +02:00
Thilo Behnke
90052a0a55 fixing tests 2022-05-02 12:25:31 +02:00
Thilo Behnke
cba7623764 fix ball bound collisions 2022-05-02 12:06:39 +02:00
Thilo Behnke
5d484e4d6a collision handler integration 2022-05-02 11:53:26 +02:00
Thilo Behnke
ccfe632c17 logger impl 2022-05-02 11:29:09 +02:00
Thilo Behnke
9d89c70195 clonable logger? 2022-05-01 18:42:19 +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
61bf393ea4 still issues with mutable borrow 2022-04-25 22:33:21 +02:00
Thilo Behnke
c82c649dc2 different approach: register collision handlers 2022-04-25 22:06:53 +02:00
Thilo Behnke
9cfd250b81 clone a boxed trait object? or wrong approach? 2022-04-24 23:51:55 +02:00
Thilo Behnke
2be20b40a5 refactor shape into enum 2022-04-24 23:43:12 +02:00
Thilo Behnke
a0f53ec2c7 trait matching does not exist 2022-04-24 23:23:30 +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
38249a4adb compiling code (deactivated inter ball collisions for now) 2022-04-24 20:36:51 +02:00
Thilo Behnke
75df6e91c2 issue with cloning trait for game objects 2022-04-24 20:25:43 +02:00
Thilo Behnke
7eff20079b wip refactor to game object facade 2022-04-24 20:21:31 +02:00
Thilo Behnke
6d76400dc0 wip - ignoring trait issues for now 2022-04-24 20:16:50 +02:00
Thilo Behnke
80da680532 wip - issues with trait bounds 2022-04-24 20:05:22 +02:00
Thilo Behnke
86b1ac6052 wip - created geom & physics comp 2022-04-24 18:32:22 +02:00
Thilo Behnke
7426559b34 working bounding box collisions (use ranges for rect collision detection) 2022-04-23 22:26:59 +02:00
Thilo Behnke
9dd7b80b82 bugfix for vector reflection 2022-04-23 22:10:09 +02:00
Thilo Behnke
e661793fc8 add adjustment to colliders vel - still issues with bounds 2022-04-23 12:29:06 +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
4be19aa5bb wip collision handling 2022-04-23 00:32:57 +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
ac2b5252fa debug collisions 2022-04-20 23:39:01 +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
52bc1cdd64 dev-ops/update-github-config 2022-04-20 22:17:55 +02:00
Thilo Behnke
1974a8a83c refactoring/refactor-game-logic-into-lib 2022-04-20 22:14:05 +02:00
Thilo Behnke
3c0cc3c3a5 Merge branch 'master' of github.com:thilo-behnke/wasm-pong 2022-04-20 00:07:26 +02:00
thilo-behnke
9f915ad8c8 Create rust.yml 2022-04-19 23:59:33 +02:00