Skip to content

Instantly share code, notes, and snippets.

@sabotai
Created February 6, 2017 16:52
Show Gist options
  • Save sabotai/826f8396877fd4295006f279df35e2be to your computer and use it in GitHub Desktop.
Save sabotai/826f8396877fd4295006f279df35e2be to your computer and use it in GitHub Desktop.
Game Programming I Week 2 Homework :)
//introduce setup and draw into your hw from last week
//replace "hard-coded" values with variables that you declare and assign!
float xPos;
void setup(){
size(1280,720);
xPos = 5;
//frameRate(1);
}
void draw(){
background(200,10,20);
//this will be the head
ellipse(xPos, 150, 200, 300);
xPos = xPos + 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment