SHARE
TWEET

Untitled

a guest Jun 19th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set break point on line 20 of main.js
  2. refresh page
  3. go to second last line(before last curly bracket) and insert this.model = model;
  4.  
  5. continue running code
  6.  
  7. in the console type: app.model.userTadpole.maxMomentum = 30;//or whatever value you want
  8.  
  9. you can also edit your position directly by changing app.model.userTadpole.x and app.model.userTadpole.y
  10.  
  11. View info on other tadpoles by typing app.model.tadpoles into the console
  12.  
  13.  
  14. var findOther = function(user){
  15.    for(var w in app.model.tadpoles)
  16. {
  17.    if(app.model.tadpoles[w].name == user)
  18. {
  19. app.model.userTadpole.x = app.model.tadpoles[w].x;
  20. app.model.userTadpole.y = app.model.tadpoles[w].y;
  21. break;
  22. }
  23. }
  24. };
  25.  
  26. var coords = function(x,y){
  27. app.model.userTadpole.x = x;
  28. app.model.userTadpole.y = y;
  29. };
  30.  
  31. var findTad = function(user){
  32.    for(var w in app.model.tadpoles)
  33. {
  34.    if(app.model.tadpoles[w].name == user)
  35. {
  36. return app.model.tadpoles[w];
  37. }
  38. }
  39. };
RAW Paste Data
Top