-
Notifications
You must be signed in to change notification settings - Fork 0
/
GamePlay
54 lines (41 loc) · 1018 Bytes
/
GamePlay
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* AnimationScreen.java
*
* © <your company here>, 2003-2007
* Confidential and proprietary.
*/
package com.synthdreams.BBTest1;
import net.rim.device.api.ui.container.FullScreen;
import net.rim.device.api.ui.Graphics;
public class GamePlay extends FullScreen
{
GFX gfx;
public GamePlay()
{
gfx = new GFX();
}
protected void paint(Graphics graphics)
{
gfx.process(passGraphics);
}
public boolean keyChar(char key, int status, int time)
{
boolean retVal = false;
switch (key)
{
case Characters.ESCAPE:
System.exit(0);
retVal = true;
break;
default:
break;
}
return retVal;
}
protected boolean navigationMovement(int dx, int dy, int status, int time)
{
posX += (dx*10);
posY += (dy*10);
return true;
}
}