Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private int glubSize=0;
- private void initGlub() {
- if(direction==0)
- loadImage("GlubRight"+glubSize+".png");
- else
- loadImage("GlubLeft"+glubSize+".png");
- getImageDimensions();
- }
- if (mass > 90)
- {
- if (direction == 0)
- {
- glubSize=8;
- }
- else if (direction == 1)
- {
- glubSize=8;
- }
- }
- else if (mass > 80)
- {
- if (direction == 0)
- {
- glubSize=7;
- }
- else if (direction == 1)
- {
- glubSize=7;
- }
- }
- else if (mass > 70)
- {
- if (direction == 0)
- {
- glubSize=6;
- }
- else if (direction == 1)
- {
- glubSize=6;
- }
- }
- else if (mass > 60)
- {
- if (direction == 0)
- {
- glubSize=5;
- }
- else if (direction == 1)
- {
- glubSize=5;
- }
- }
- else if (mass > 50)
- {
- if (direction == 0)
- {
- glubSize=4;
- }
- else if (direction == 1)
- {
- glubSize=4;
- }
- }
- else if (mass > 40)
- {
- if (direction == 0)
- {
- glubSize=3;
- }
- else if (direction == 1)
- {
- glubSize=3;
- }
- }
- else if (mass > 30)
- {
- if (direction == 0)
- {
- glubSize=2;
- }
- else if (direction == 1)
- {
- glubSize=2;
- }
- }
- else if (mass > 20)
- {
- if (direction == 0)
- {
- glubSize=1;
- }
- else if (direction == 1)
- {
- glubSize=1;
- }
- }
- else
- {
- if (direction == 0)
- {
- glubSize=0;
- }
- else if (direction == 1)
- {
- glubSize=0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement