<commit_before>sprite mysprite;
car mycar;
car mycar2;
car mycar3;

void setup(){
  size(650, 300);
  //fullScreen();
  orientation(LANDSCAPE);
  smooth();
  mysprite= new sprite((width/2), height/1.2, (width/15));
  mycar = new car(width/1.2, (height/3), (width/6));
  mycar2 = new car(width/5, (height/10), (width/6));
  mycar3 = new car(width/2, (height/5), (width/6));
  float stageZone = (height*.75);
  float upperZone = (height*.25);
  
}

int speed = 2;
int speedS = 20;


void draw(){
  background(0);
  background();
  mysprite.display();
  mycar.display();
  mycar.move();
  mycar2.display();
  mycar2.move();
  mycar3.display();
  mycar3.move();
  
  if(mysprite.startPosY < 0){
  noLoop();
  }
  
  if(dist( mysprite.startPosX, mysprite.startPosY, mycar.xPos, mycar.yPos) < mysprite.wHead + mycar.cWidth/2 ){
    lose();
  }
  
  if(score < -50){
  noLoop();
  }
  <commit_msg>sound effects<commit_after>PFont font;
import ddf.minim.*;
import ddf.minim.signals.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;
Minim minim;
AudioPlayer sou;

sprite mysprite;
car mycar;
car2 mycar2;
car mycar3;

void setup(){
  // Load a soundfile from the /data folder of the sketch and play it back
  minim = new Minim(this);
  sou = minim.loadFile("sample.mp3");
  sou.loop();
  
  //loading font
  font = loadFont("snap40.vlw");
  textFont(font);
  
  
  //size(650, 300);
  fullScreen();
  orientation(LANDSCAPE);
  smooth();
  mysprite= new sprite((width/2), height/1.2, (width/22.5));
  mycar = new car(width/1.2, (height/3), (width/6));
  mycar2 = new car2(width/5, (height/10), (width/6), 200);
  mycar3 = new car(width/2, (height/5), (width/6));
  float stageZone = (height*.75);
  float upperZone = (height*.25);
  
  
}

int speed = 2;
int speedS = 20;


void draw(){
  background(0);
  background();
  mysprite.display();
  mycar.display();
  mycar.move();
  mycar2.display();
  mycar2.move();
  mycar3.display();
  mycar3.move();
  fill(255);
  text("score:" +score/10, width-150, 20);
  
  if(mysprite.startPosY < 0){
  noLoop();
  }
  
  if(dist( mysprite.startPosX, mysprite.startPosY, mycar.xPos, mycar.yPos) < mysprite.wHead + mycar.cWidth/2 ){
    lose();
  }
  
  if(score < -50){
  noLoop();
  }
  
{'fraction_non_alphanumeric': 0.18545127974854064, 'fraction_numerical': 0.046250561293219576, 'mean_word_length': 3.4471057884231535, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6461681', 'n_tokens_mistral': 952, 'n_tokens_neox': 910, 'n_words': 190}