Spong Bluetooth game Developed by: Erik Matzols Fredrik Lindberg.

Slides:



Advertisements
Similar presentations
What we will cover today… Where is the camera on my phone? Taking a photo Zoom in and out Deleting a photo Where do my photos go to? Viewing my photos.
Advertisements

MIDP Mobile Information Device Profile Johnny Yau CIS 642 Prof. Insup Lee.
CIMCO Integration Software Products
J2ME: Tic Tac Toe By Jud Porter and John Tat. Goals for Project  Design and implement multiplayer game  Network connectivity between mobile devices.
1 Chapter 5 Threads 2 Contents  Overview  Benefits  User and Kernel Threads  Multithreading Models  Solaris 2 Threads  Java Threads.
OCS Library Systems TIMED ACCESS GATEKEEPER ON-LINE PRINT VENDING.
1 Developing Mobile Applications ID2216/UMT Checkers Game By: Behzad Salim Aroony Kambiz Ghoorchian.
Cosc 5/4730 Game Design. A short game design primer. A game or animation is built on an animation loop. – Instance variables of “objects” are updated.
A CHAT CLIENT-SERVER MODULE IN JAVA BY MAHTAB M HUSSAIN MAYANK MOHAN ISE 582 FALL 2003 PROJECT.
Good Websites. 2. Submit one good web interface. This website is a good because of it usability and appears of the website.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Royal Institute of Technology (KTH) ID 2216 – Developing Mobile Applications By Sun Gang A P2P Bluetooth Game based on J2ME: WordWar Sun Gang Zhang Gang.
Developing J2ME Applications Mobile and Wireless Networks.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Small Game on Mobile Appliances with J2ME Akihiro Minegishi CS491b 12/10/2004.
© 2009 Research In Motion Limited User interface design for mobile devices.
New Features in Release 4.3 (May 16, 2005). Release 4.3 New Features Navigation enhancements Punch-out supplier availability notifications The ability.
Creating a MagicInfo Pro Screen Template
Paul Trani Adobe Certified Instructor/Expert Resources:
CS378 - Mobile Computing What's Next?. Fragments Added in Android 3.0, a release aimed at tablets A fragment is a portion of the UI in an Activity multiple.
An Introduction to the Java ME Project Jens A Andersson.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
CSE 381 – Advanced Game Programming 3D Game Architecture.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
Developed as a partial fulfillment of the requirements of ID2216 Sumanta Saha Md Sakhawat Hossen Md Safiqul Islam sumanta, hossen, BlueTTT.
A 2-D, multi-player tank game developed in PLT Scheme ~ ~ ~ Ben VandenBos, Tim Reeves, Justin Hall, and John Ericksen ~ ~ ~ Senior Project - CS496 Spring.
Getting to Know TiVo: The Home Media Engine (HME SDK) Eric M. Upchurch CS 525 Spring 2008.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
Forms - An Overview of Oracle Form Builder v.6.0 Abhishek Parag Prashant Arun.
Microsoft Windows Vista Chapter 1 Fundamentals of Using Microsoft Windows Vista.
CodeScope PC Style Window Generator. Introduction Currently being used by several thousand companies worldwide, CodeScope lets you add PC-style lookup.
Design Document Presentation. Review Quoridor – a board game played on a grid where players must advance tokens across a board to win. Our basic objective:
Downloading Lumi Show on Android Devices Through our technology, people gain insight, instantly.
PROG Mobile Java Application Development PROG Mobile Java Application Development BlackBerry API for UI Applications.
Developing the Game User Interface (UI) Lesson 5.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 12 lcdui Rob Pooley
REVIEW On Friday we explored Client-Server Applications with Sockets. Servers must create a ServerSocket object on a specific Port #. They then can wait.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
Programming Handheld and Mobile devices 1 Programming of Handheld and Mobile Devices Lecture 13 lcdui and OXO Rob Pooley
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
Concurrent Programming and Threads Threads Blocking a User Interface.
CIS111 PC Literacy Getting Started with Windows XP.
11 Getting Player Input Using a Gamepad Session 3.1.
Getting Started on Lab 1 Requirements MigratableProcess TransactionalFile{Input, Output}Stream ProcessManager MigratableProcesses.
Field Trip #25 Creating a Client/Server By Keith Lynn.
Multi-Group Network Game Project A Project By: Erez Gazit and Sagi Katz.
CS324e - Elements of Graphics and Visualization Timing Framework.
Warlords Patrick Levoshko SE 558 – Multiplayer Game Design.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
OpEnSp a Ce LCA Proposal Calvin Chin David Couvrette Jung Son Mikiko Jama CSE403 Summer 06.
1 State and Session Management HTTP is a stateless protocol – it has no memory of prior connections and cannot distinguish one request from another. The.
DOTSNBOXES. Overview Dots and Boxes is played originally with the use of paper, pen and 2 players. The Game board is a matrix of points and vary in size.
PubMed/How to Search, Display, Download & (module 4.1)
CMPF124 Personal Productivity With Information Technology Chapter 1 – Part 2 Introduction to Windows Operating Systems Manipulating Windows GUI CMPF 124.
1 Introduction to J2ME Outline MIDP Building J2ME Apps- Tool J2ME Wireless Toolkit Demo MIDlet Programming -- MIDlet Transition States -- Midlet Skeleton.
Horizon Photo-mote. ability to access photographs and images stored online, with the aid of a wireless remote remote enables the user to identify and.
Multi player client sever Snake Game Technology : JAVA (swing for user interface and Socket for passing coordinates of snakes, food item and score)
/16 Final Project Report By Facializer Team Final Project Report Eagle, Leo, Bessie, Five, Evan Dan, Kyle, Ben, Caleb.
The Stingray Example Program CMT3311. Stingray - an example 2D game May be useful as a simple case study Most 2D games need to solve generic problems.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
Using the My EBSCOhost Folder Tutorial support.ebsco.com.
Running a Forms Developer Application
Forms Concepts Triggers Fired when Internal/External events occur
Working in the Forms Developer Environment
In-situ Visualization using VisIt
Multi-host Internet Access Portal (MIAP) Enhancement Guide
ALEPH Version 22 Offline Circulation
Presentation transcript:

Spong Bluetooth game Developed by: Erik Matzols Fredrik Lindberg

Spong game Uses the J-82 API for bluetooth communication Uses J4ME library to eliminate some annoyances with the J2ME UI. Each player controls a paddle and need to prevent the ball from falling from the playing field The winner is the one who has managed to score most points. The point limit is decided by the one who host the game

Supported Devices Need MIDP-2.0 and CLDC-1.1 Screen resolution of 240x320. Game will run fine on other resolutions that support the other criterias but size of graphics content will affect gameplay.

J4ME Able to set a theme for the entire application. Have some basic ”form” capability and able to have custom backgrounds. Only uses a small fraction of the library for automatic button placement and automatic scrolling of text on the instruction page. Check it out on

Spong game: Main menu The main menu has four selections. New game - will bring you to a new page for selection of hosting or joining a game. Options – Set your nickname,servername and the points limit when you act as server. Instruction – show a text with instruction how to play the game. Quit – Obvious.

Spong game: Instructions Scrollbar to the left if text is larger than the screen height. Back button to return to main menu

Spong game: Options Data is stored in a permanent record store Nickname is sent when establishing connection

Spong game: Host/Join

Spong Game: Selecting server Multiple servers to select from if multiple hosts exist

Spong Game: Game session Client commands are sent to server and processed Server sends new state to client that the client renders

The Code The game consists of 17 classes Spong, SpongModel, Menu, BluetoothClient, BluetoothServer, GameSession,Paddle, Ball.....

Spong,SpongModel Spong - A public class extends MIDlet. Spong creates an instance of the class SpongModel when the method startApp() is called. SpongModel - A public class that contains the BluetoothClient,BluetoothServer Menu and GameSession instances. Its responsibility is to contain and communicate with the various objects such as the Menu, Bluetoothserver, BluetoothClient and the GameSession.

Menu Menu – A public class that extends Dialog which is a J4ME class that implements some simple ”form” functionality. The Menu consists of several classes that implements the submenus. The buttons are a custom item that can change its color if it is selected. A variable in each menu keeps track of the current selected button.

BluetoothServer,BluetoothClient BluetoothServer – A public class that implements Runnable. It will wait in a blocking thread until a connection has been accepted or the user presses the cancel button which will call the stop() method for the BluetoothServer thread. BluetoothClient – A public class that implements DiscoveryListener and Runnable. Implements the DiscoveryListener interface to be able to query other Bluetoothdevices and return a list of connectable devices to the user. The user can at any time press the canel button and terminate the search. Both BluetoothClient and BluetoothServer communicates with the SpongModel via callbacks.

GameSession Implements Runnable and Canvas. Created after a connection has been made. Creates paddle and ball and draws all game graphics. Determines who act as server based on a variable sent to constructor. Reads keypresses into a keyState. Server has authority and simulates the ball and does collision detection. Client send its input to the server which in turn send a new state for the paddles and balls to the client so it can render the new state.

Paddle, Ball Paddle – Represents the paddle the user controls. Is a serializable object that can be sent over the bluetooth connection Ball – Represents the ball. Is a serializable object that can be sent over the bluetooth connection.

The homepage Adapts to different screen sizes. OTA support for the game Spong. Uses WURFL to check if device is capable of running the game. A Flash Lite demo of the game Check it out

The End