Little Diversion on Versatile Machines with J2ME.


55 views
Uploaded on:
Description
little diversion is suitable to learn programming in new application stage, in light of the fact that it is ... The left picture demonstrate the minute soon after the amusement is begun. ...
Transcripts
Slide 1

Little Game on Mobile Appliances with J2ME Akihiro Minegishi CS491b 12/10/2004

Slide 2

My Project The quantities of remote and versatile machines have been significantly expanded. In the meantime, the handling forces of the portable machines additionally have been reinforced. In this manner, building applications for portable stages is turning out to be increasingly appealing. Likewise, those are colossal chances to the product engineers as well.

Slide 3

My Project The venture is planned to learn and encounter those new remote innovations. little amusement is appropriate to learn programming in new application stage, since it is not very vast to work by single individual

Slide 4

Reason for Gaming One of different reports from IDC demonstrates that "the remote gaming market in Asia-Pacific, barring Japan, is relied upon to develop at a compound yearly development rate (CAGR) of 40%, from $237.4 mln a year ago to $1.3 bln in 2008" ( www.itfact.biz , 2004).

Slide 5

Choose The undertaking began with looking at changed stages for creating application on versatile machines. There are numerous, yet I pick J2ME on the grounds that I am acquainted with JAVA Many gadgets underpins MIDP

Slide 6

MIDP 2.0 or 1.0 The MIDP 2.0 is discharged for the current year and I was wanting to utilize MIDP 2.0, yet later, I found that there are relatively few gadgets that bolster MIDP 2.0 in light of the fact that it is new. I choose to take after the MIDP 1.0

Slide 7

Compatibility After some more research about the J2ME, I found that despite the fact that there is a standard for programming, the consequence of the project could be diverse in light of the fact that Differences of equipment Carriers and creators has own extra libraries I chose to code in immaculate MIDP 1.0 and CDLC

Slide 8

Environment couple of weeks to plan the amusement and introducing the advancement Environment: Language: Java Platform: J2ME (MIDP1.0 + CLDC) Developing Environment: J2ME remote toolbox 1.0.3 + Forte CE v3.0 Running Environment: KVM

Slide 9

Process Following rundown demonstrates the typical portable application improvement process by utilizing Java 2 Platform Micro Edition. Compose a Java application Compile it Pre-check it Package it into a JAR document Create the application descriptor Publish the MIDlet suite Install on the gadget or emulator WLTK accomplishes for you!

Slide 10

Game Design The fundamental thought of this amusement originated from an old DOS diversion. I played this amusement over 10 years back I planned my own particular scoring framework, interfaces, illustrations and such, so that despite the fact that the thought originated from this diversion, the amusement is made without goal of reestablish or copy the old DOS diversion.

Slide 11

Game Rules The tenet of the amusement is basic. It is planned as basic in light of the fact that the diversion ought to be played without perusing manuals or any push to learn and begin the amusement. The left picture demonstrate the minute soon after the diversion is begun. The player can control single ball, which is called my ball and it is hued in red. On the screen, there are different balls that are called target balls, hued in blue. The objective ball does not move and can\'t be controlled by the player. On the off chance that my ball hit the divider, then my ball will skip off the divider.

Slide 12

Game Rules As the left picture appear, when my ball hit the objective balls, then The objective ball vanishes and breaks into two green balls. Those are called piece balls and they moves and player does not have controls of moving piece balls. Before long, roughly ten seconds, those piece balls will vanish from the screen and player will get the score.

Slide 13

Game Rules The objective of this diversion is to evade the piece balls and expel all the objective balls and piece balls from the screen. On the off chance that player effectively evacuated every one of the balls then the player wins and the project will be halted. On the off chance that player need to attempt another amusement, pushing the quit talking catch in red on left will give player a chance to give back the launcher menu. The last score of player will be shown on the highest point of the screen. On account of left picture, the score is at 2400 focuses.

Slide 14

Game Rules If the player is neglected to avoid the piece balls and any of the piece balls hit the player\'s my ball, then the player looses. In the event that the player looses the diversion, the system will stop and the last score of player will be shown on the highest point of the screen. In the event that player need to attempt another diversion, pushing the quit talking catch in red on left will give player a chance to give back the launcher menu.

Slide 15

DEMO

Slide 16

Behavior of the Program When the project begins, my ball will be shown. At first, my ball move at steady speed in one bearing. My ball will alter moving course when a keypad is squeezed. At the point when my ball hit the divider, then my ball will skip. At the point when the amusement begins, the objective ball shows up. At the point when my ball hit an objective, then the objective ball vanishes. At the point when my ball hit an objective, then the objective will separate into piece ball. Piece ball moves at steady speed in a course. At the point when a piece ball hit the divider, then piece ball will skip. A far distance a while, piece vanishes. When you hit moving pieces, then the system closes. When all the objective balls and piece balls vanish, then the project closes.

Slide 17

Flow Chart

Slide 18

Implementation Ball Class BallCanvas Class MyBall Class TargetBall Class PieceBall Class

Slide 19

Ball Class Ball: It is the class that controls essential stream of lifecycle of the MIDlet of the project, that incorporates, Ball()//Ball constructor startApp()//This technique is called when MIDlet Starts, pauseApp()//This strategy is called when MIDlet stops destroyApp()//This technique is called when MiDlet closes doExit()//Destroys MIDlet and exit

Slide 20

BallCanvas Class BallCanvas: This class is the canvas of the system. So this Ball canvas amplifies canvas class. Likewise, it executes order audience and it is runnable in light of the fact that the project uses strings. Incorporates, BallCanvas()//constructor for the ballcanvas begin()//when begin strategy is called, this technique will make the new string and begin the string stop()//this strategy is called when the string is ceased run()//run strategy for the string the length of the project is running, it will repaint the representation paint()//paint technique will draw the illustrations on the canvas keyPressed()//this technique is called when the key is squeezed

Slide 21

MyBall Class MyBall: MyBall is a ball that you can control my ball moves four routes by utilizing key cushion. My ball will skip when it hit the divider. MyBall()//constructor for my ball Accessor techniques for position and moving course Paint()//this strategy will really draw the design

Slide 22

TargetBall Class TargetBall : Target ball is a ball that is positioned TargetBall()//constructor of the targetball Accessor strategies for position and moving bearing Paint()//this strategy will really draw the representation

Slide 23

PieceBall Class PieceBall: piece ball shows up after the objective ball is hit by my ball. At the point when the objective ball is hit, the piece ball will breaks into two piece balls. Both piece balls\' bearings are characterized by the moving course of my ball. PieceBall()//constructor for my ball Accessor techniques for position and moving bearing Paint()//this strategy will really draw the design

Slide 24

Algorithm Collisions between target balls and my ball: Depending on the heading of my ball, the course of piece ball will be set. Much number filed object in exhibit of piece ball\'s bearing will be set to the 45 degree left of course of my ball and odd number filed object in cluster piece ball\'s heading is set to the 45 degree right of course of my ball.

Slide 25

Algorithm Score: The score is 100 for one ball. There is a reward for the quantity of the moving ball in the meantime. Despite the fact that there is no phases in the amusement, the player need to pick their own play level. Ether the player takes hazard and have risk to get higher point or expel balls securely with lower scores. Beneath recipe ascertain the focuses, and the "point" parameter speaks to the quantity of as of now moving ball and that number times 200 for reward expansion to 100. point- - ; score=score+100+point*200;

Slide 26

Future Work The task is a basic program however it incorporates essential procedures to create average applications. Thus, the future work will amplify this task or making new applications, for example, a scheduler for cell phones by utilizing the learning that originated from the initial step experience.

Slide 27

Learned Most of the ideal opportunity for the task had spent on beginning the venture. A standout amongst the most troublesome parts was to find out about the innovation and to setup new improvement environment. On the off chance that a designer thinks about the innovation and as of now has environment to grow, then the exertion that the engineer takes can be diminished significantly. One of the accomplishment of the undertaking is that the chance to know new innovation

Slide 28

Thank you

Recommended
View more...