Comments - Katten vill inte röra sig :/

All comments are public, but you can't write a comment without being logged in. If you see a comment that isn't nice, contact me: mikael@roboro.se. Abuse will not be tolerated.

Yonte_ - 2017-12-05 10:29:55
  CatX = 100;
  CatY = 100;
  
  function update()
  {
    clearScreen();
    
    circle(mouse.x, mouse.y, 20, "red");
    
    circle(CatX, CatY, 20, "blue");
    
    if (keyboard.d)
      CatX += 1;
    if (keyboard.a)
      CatX -= 1;
    if (keyboard.w)
      CatY -= 1;
    if (keyboard.s)
      CatY += 1;
    
    
  }