По фЛудим РеБЯта =))
она всем нравиться:rolleyes: :D
ну в принципе да:rolleyes:
Просто, проверка связи...
[SIZE=3]Абалдеть.... [/SIZE]
[FONT=arial] Первый раз в жизни на форум пишу 8) [/FONT]
:cool:
[SIZE=3]Абалдеть.... [/SIZE]
[FONT=arial] Первый раз в жизни на форум пишу 8) [/FONT]
:cool:
Сабж - интересно, как java-код будет выглядеть в теге PHP.
Код:
package example.manyballs;
import javax.microedition.lcdui.*;
public class ManyCanvas extends javax.microedition.lcdui.Canvas {
Display display;
// a set of free roaming balls
SmallBall[] balls;
int numBalls;
int width, height;
boolean paused;
static int NUM_HISTORY = 8;
long times[] = new long[NUM_HISTORY];
int times_idx;
public ManyCanvas(Display d, int maxBalls) {
display = d; // save the display
// initialize the array of balls
balls = new SmallBall[maxBalls];
width = getWidth();
height = getHeight();
// Start with one ball
balls[0] = new SmallBall(this, 0, 0, width, height-12-20);
numBalls = 1;
paused = true;
}
import javax.microedition.lcdui.*;
public class ManyCanvas extends javax.microedition.lcdui.Canvas {
Display display;
// a set of free roaming balls
SmallBall[] balls;
int numBalls;
int width, height;
boolean paused;
static int NUM_HISTORY = 8;
long times[] = new long[NUM_HISTORY];
int times_idx;
public ManyCanvas(Display d, int maxBalls) {
display = d; // save the display
// initialize the array of balls
balls = new SmallBall[maxBalls];
width = getWidth();
height = getHeight();
// Start with one ball
balls[0] = new SmallBall(this, 0, 0, width, height-12-20);
numBalls = 1;
paused = true;
}
Эта тема закрыта, так как последнее сообшение было оставлено больше года назад.