comparison game/AnimatedPointElement.java @ 129:a0376e40102e

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 Nov 2011 21:09:57 +0200
parents e60b4885eafe
children 4c0dec72e2f0
comparison
equal deleted inserted replaced
128:584a226318b0 129:a0376e40102e
20 20
21 public AnimatedPointElement(IDMPoint start, String text) 21 public AnimatedPointElement(IDMPoint start, String text)
22 { 22 {
23 Random rnd = new Random(); 23 Random rnd = new Random();
24 steps = 100; 24 steps = 100;
25
25 lerpX = new Interpolate(start.x - rnd.nextInt(100) + 50, start.x, steps); 26 lerpX = new Interpolate(start.x - rnd.nextInt(100) + 50, start.x, steps);
26 lerpY = new Interpolate(start.y - rnd.nextInt(100) + 50, start.y, steps); 27 lerpY = new Interpolate(start.y - rnd.nextInt(100) + 50, start.y, steps);
27 lerpV = new Interpolate(0.0f, 1.0f, steps); 28 lerpV = new Interpolate(0.0f, 1.0f, steps);
28
29 29
30 pos = new IDMPoint(start); 30 pos = new IDMPoint(start);
31 active = false; 31 active = false;
32 first = true; 32 first = true;
33 this.text = text; 33 this.text = text;