Java - Code examples

All  |  In-app purchasing   |  In-app advertising  |  Location  |  Games  

09 May 2013
LWUIT Slide Puzzle v1.1

LWUIT Slide Puzzle v1.1

Slide Puzzle is a simple LWUIT-based puzzle game for Nokia Asha software platform 1.0 and Series 40 phones. It demonstrates how LWUIT components can be used in a game context. Both non-touch and touch phones are supported, with drag gestures where available. It also gives an idea of how to use the camera, and helper threads for animating the interface.

This example is hosted in Nokia Developer Projects.

Project summary | Design and Implementation notes | Release notes

09 May 2013
Frozen Bubble v1.1

Frozen Bubble v1.1

This Java ME example application demonstrates how you can port a fullscreen game from Android to Java ME in Nokia Asha software platform 1.0 and Series 40 touch phones. In this port the same game logic code and most of the resources were reused while new code was written for starting up the game, handling menus, and playing sounds. The code is based on the Android version of Frozen Bubble, created by Pawel Aleksander Fedorynski. The Java ME port, just like the original Frozen Bubble, is covered by GNU GPL v2.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes | Porting notes | Release notes

09 May 2013
Battletank v1.4

Battletank v1.4

Battletank is a tank game example created with Java ME. It demonstrates the usage of Java ME gaming features: sprites, tiles, and so on. Additionally, the example shows a reusable game structure where resources are loaded according to the screen size of the phone. The latest version has been optimised for full touch phones. On Series 40 platform, the application uses the In-App Purchase API with DRM protected application content.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes | Release notes

09 May 2013
Explonoid v1.2

Explonoid v1.2

Explonoid is an Arkanoid clone implemented with Java ME. It demonstrates the usage of Java ME gaming features: Sprites, LayerManager etc. It also shows some key points of designing an application that scales to different resolutions. The game has support for keyboard, touch screens, and acceleration sensors. This application has been optimised for full touch phones.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes | Release notes

09 May 2013
Racer v1.2

Racer v1.2

This Java ME application demonstrates use of the Gesture API and the Sensor API. It also shows some key points to consider when developing a game for Nokia Asha software platform 1.0 and Series 40 phones. The application is a simple racing game that runs in touch and type and full touch UI.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes | Release notes

09 May 2013
Sudokumaster v1.2

Sudokumaster v1.2

This example application demonstrates how to design a simple game, add dynamic layout control for multiple screen resolutions, and use several input methods (key, touch, and key and touch). The application has been tested on Nokia Asha software platform 1.0 and Series 40 full touch phones.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes

14 December 2012
Drumkit v1.2

Drumkit v1.2

This Java ME application demonstrates the usage of multiple audio players on Series 40 devices. The updated version has a new acoustic kit and pad kit views and multitouch support for Series 40 full touch devices, optimised graphics drawing, and audio playback.

This application is hosted in Nokia Developer Projects.

Project summary | Implementation notes | Release notes

01 November 2012
Tic-Tac-Toe Over Sockets

Tic-Tac-Toe Over Sockets

Tic-Tac-Toe Over Sockets port for Series 40 touch and type and full touch devices. This Nokia example demonstrates the use of datagrams for peer discovery and the use of TCP sockets for peer-to-peer communication. The game is also interoperable with the corresponding apps on Symbian, MeeGo Harmattan and Windows Phone platforms.

This example is hosted in Nokia Developer Projects.

Project summary | Design and Implementation notes | Release notes

17 October 2012
aMaze

aMaze

3D maze game for Series 40 full touch phones. This Nokia example game demonstrates the use of Mobile 3D Graphics API, gestures and accelerometer sensor. The concept of the game is classic and simple: guide the marble through the maze by tilting the phone until the time runs out. The gestures utilised in the game are pinch-to-zoom and double tap.

This example is hosted in Nokia Developer Projects.

Project summary | Design and Implementation notes | Release notes

Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved