Im making an attempt at trying to make a simple game. Im having trouble trying to figure out how it is i can make the car in the image move at the pressing of keyboard directional arrows. If anyone could please help me out it would be greatly appreciated. Thank you.
This is my code.
size(600,600);
background(255);
// Make one side of road
{
fill(29,180,48);
rectMode(CENTER);
rect(300,70, 600,150);
rect(300,520, 600, 150);
}