Skip to content

Commit

Permalink
added click to move the obstacle
Browse files Browse the repository at this point in the history
  • Loading branch information
honzi committed Oct 1, 2024
1 parent d831cef commit 3bbbc63
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ function repo_init(){
},
},
},
'mousebinds': {
'mousedown': {
'todo': function(){
entity_entities['obstacle']['x'] = core_mouse['down-x'];
entity_entities['obstacle']['y'] = core_mouse['down-y'];
},
},
},
'title': 'Rain-2D.htm',
});
entity_set({
Expand Down

0 comments on commit 3bbbc63

Please sign in to comment.