Open 30044364 opened 5 months ago
For the character movement I just incremented its x and y values to move around the screen, so the player can catch it. I have used the default controls for character movement as seen below.
Code:
void movement(void){ // player movement control if(pad1 & PAD_LEFT){ BoxGuy1.x -= 1; } else if (pad1 & PAD_RIGHT){ BoxGuy1.x += 1; } if(pad1 & PAD_UP){ BoxGuy1.y -= 1; } else if (pad1 & PAD_DOWN){ BoxGuy1.y += 1; } // NPC movemnt BoxGuy2.x +=1; BoxGuy2.y +=1; BoxGuy3.x -=1; BoxGuy3.y -=1; BoxGuy4.y +=1; }
Screenshot:
For the character movement I just incremented its x and y values to move around the screen, so the player can catch it. I have used the default controls for character movement as seen below.
Code:
Screenshot: