Overview

braintreesmileSoftware and s/w Development

Aug 15, 2012 (5 years and 1 month ago)

301 views

Overview


Development of a java MID
let game framework for downloading to a mobile phone
that is compatible with CLDC 1.1 and MID
P

2.0. To be delivered as a Netbeans

IDE
5.5

project with Java Wireless Toolkit 2.2.


Requirements


This project is to
produce a

framework for
demonstration application

that can be
downlo
aded to a mobile phone as a Java

MID
let. The framework will be structured
to allow
a

gallery of
jpegs

used in the
demo

to

be simply changed and extended.
To produce further
variations of the basic
demo

it

will

only

require limited editing

to change the images or their number

and then the recompilation of the project to
produce a new JAD and JAR files

for deployment to a

mobile device.


The demo

will
consist of

a number of basic jpeg images that are
divided into a
number of grouping some will be displayed as a single image while others will be
displayed successively to create the effect of a small series of animation (similar
to a multi
-
frame GIF file).


Open
Screen


When the demo application is activ
ated the background of the
canvas

area will be
set to a uniform colour that can be set by adjusting parameters within the source
file.
Although the MIDP 2.0 specification indicates a minimum display size of 96 x
54 pixels this design shall assume a minimum

screen
size of 128 x 128. In the
centre of the canvas
the opening image of the series of images will be displayed
,
JPEG

file format,

(
size

of image

and
the total number of
image

will be

configurable between
compiled versions
) with a
n

initial

size of 120 x

120 pixels.

The image sizes may be modified to allow the framework to operate on a mobile
phone with a much larger display resolution, i.e. 240 x 320. If a high resolution
display is running a small resolution demo application then the images must be
cent
red within the canvas. Other versions of the demonstration may use portrait or
landscape images, which again must be centred in the canvas.


Menu Controls


When the
demonstration

is active then selecting the right soft
-
key at any time will
advance the demo
nstration to the next image, or sequence of images if the
demonstration requires and ‘animation’ sequence. When the final image is reached
within the demonstration framework the right soft
-
key will exit the application
while the left soft
-
key will cause th
e demonstration to retu
rn to the opening image
of the sequence. The images will be stored as an array of image file names; this
will allow other demonstrations to be simply created by changing the names of the
image files and for the number of images withi
n the demonstration to be changed
by simply adding or removing elements from the array.


In addition to this array there will be a

command


array that will contain the same
number of elements but will indicate how the images are to be displayed.


If the

element of the array contains the letter ‘s’ then it is to be displayed as a
static image and the next image will be displayed only after the right soft
-
key has
been activated.


If the element contains the letter ‘x’ then this is the final image of the s
equence
and this will be displayed as a static image. The right soft
-
key will cause the
application to exit while the left soft
-
key will cause the sequence to return to the
start of the array and display the first image.


If the element contains a number t
hen this will indicate the number of 1/100
th

of a
second that the image should be displayed for
,

before moving to the next image.
For example the value of 20 would cause the image to be displayed for 20/100 of a
second before moving to the next image.


The

last element of the command array will always be an ‘x’. The first element
can be either the
letter ‘s’

or a number if the opening sequence is an animation.


The initial arrays shall be…


Images


{"F1.jpg",

"F2.jpg",

"F3.jpg",

"F
4.j
pg",

"F5.jpg",

"F6.jpg
",

"F7.jpg",

"
F8.jpg
"
,

"F9.jpg",

"F10.jpg",

"F11.jpg",

"F12
.j
pg",

"F13.jpg",

"F14.jpg",

"F5.jpg",

"
F16.jpg
"
,

"F17.jpg",

"F18.jpg",

"F19.jpg",

"F20
.j
pg",

"F21.jpg",

"F22.jpg",

"F23.jpg",

"
F24.jpg
"
,
"F25.jp"
}


Command


{"s", "s", "s", "s", "s", "s", "s", "40
",

"40", "40", "40", "80", "s", "s", "20", "20", "20", "20",
"20", "20", "20", "20", "20", "s", "x"}


Deliverables


If you are accepted to produce the
demo

framework then you will be required to
initially produce a
JAD and JAR file that will successfully r
un in the Netbeans
emulator.


You will then provide the ‘Project’ files along with instructions form compiling new
puzzles which we will use to produce a second configuration of the
demonstration
demo

as a JAD and JAR using your instructions. Once this h
as been completed then
payment will be made.


We will provide you with the initial images for the ‘
initial
demonstration’ version
of the
demonstration framework

if you are selected to deliver this project.