Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set break point on line 20 of main.js
- refresh page
- go to second last line(before last curly bracket) and insert this.model = model;
- continue running code
- in the console type: app.model.userTadpole.maxMomentum = 30;//or whatever value you want
- you can also edit your position directly by changing app.model.userTadpole.x and app.model.userTadpole.y
- View info on other tadpoles by typing app.model.tadpoles into the console
- var findOther = function(user){
- for(var w in app.model.tadpoles)
- {
- if(app.model.tadpoles[w].name == user)
- {
- app.model.userTadpole.x = app.model.tadpoles[w].x;
- app.model.userTadpole.y = app.model.tadpoles[w].y;
- break;
- }
- }
- };
- var coords = function(x,y){
- app.model.userTadpole.x = x;
- app.model.userTadpole.y = y;
- };
- var findTad = function(user){
- for(var w in app.model.tadpoles)
- {
- if(app.model.tadpoles[w].name == user)
- {
- return app.model.tadpoles[w];
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement