Implementation of Java Based Racing Game, Pirate Race, Using Runnable Interface

Logiraj, K. (2019) Implementation of Java Based Racing Game, Pirate Race, Using Runnable Interface. Asian Journal of Research in Computer Science, 4 (3). pp. 1-8. ISSN 2581-8260

[thumbnail of Logiraj432019AJRCOS53088.pdf] Text
Logiraj432019AJRCOS53088.pdf - Published Version

Download (1MB)

Abstract

Nowadays Java has become the most popular programming language that has been designed to develop desktop applications that run on Java virtual machine (JVM) regardless of computer architecture. Particularly, Java is useful for developing Game Applications. Implementing these applications is an effective educational way to encourage Java Learners. This paper aims to develop a desktop racing game to motivate freshmen who self-identity as creative or who wants to implement their own 2D racing games rather than a prescribed activity. It brings fun and simplicity of the game ‘Pirate Race’ with new features. This game was developed with the Runnable Interface by extending the JFrame and the movement of the objects in the frame was controlled by keyboard events. ‘Pirate Race’, is a simple game application that targets Java Learners to understand how usable classes and interfaces can be handled in a relatively short time. The application presents a graphical user interface with 2D graphical images having different file types (GIF, PNG, JPG) and with a background sound. The application allows the user to move the ship by pressing the (up, down, left, right) keys of the keyboard. The user’s goal is to compete with the other two pirate ships and finish the race with the first rank. When racing with opponents, the user must take correct moves to prevent the ship from crashing with ice mountain that resides in the sea. The game contains simple controls that can be easily caught by children. Therefore, it is suitable for players of the ages three and up. This will be a challenging and interesting game for children who likes to play computer games.

Item Type: Article
Subjects: STM Open Academic > Computer Science
Depositing User: Unnamed user with email admin@eprint.stmopenacademic.com
Date Deposited: 11 Apr 2023 04:33
Last Modified: 20 Sep 2023 08:06
URI: http://publish.sub7journal.com/id/eprint/34

Actions (login required)

View Item
View Item