mirror of
https://github.com/thilo-behnke/wasm-pong.git
synced 2026-05-21 19:22:44 +00:00
debug collisions
This commit is contained in:
@@ -113,6 +113,7 @@ impl FieldWrapper {
|
||||
let input_dtos: Vec<InputDTO> = inputs_js.into_serde().unwrap();
|
||||
let inputs = input_dtos.into_iter().map(|i| i.to_input()).collect::<Vec<Input>>();
|
||||
self.field.tick(inputs);
|
||||
log!("{:?}", self.field.collisions);
|
||||
}
|
||||
|
||||
pub fn objects(&self) -> *const GameObjectDTO {
|
||||
|
||||
Reference in New Issue
Block a user