Skip to content

SerGreen/Stalker-J2ME

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stalker the game

Very old J2ME game (for old cell phones), originally was a university project, then evolved into full game.
Why is it called 'Stalker'? Well, that's how it was called in the uni task, so the name stuck.

Stalker demo

About

  • Game is divided in levels.
  • Level is a labirinth with scattered coins and gems.
  • There are zombies walking in each level.
  • To pass a level you have to collect gems. The door will open after collecting all of them.
  • You can collect coins to spend them in the shop after each level.
  • You have couple weapons to fight zombies, but they have limited number of uses
  • Shotgun — knock down a zombie at short range for some time. It will rise again after a while.
  • Sleep dart — slow down a zombie at any range for the rest of the level.
  • Step mine — explodes and kills everything in a short radius if stepped on it (including you, watch your step).
  • You can switch weapons with *, # or Right Soft Key.
  • You can use levers with 0.
  • There's a boss after level 25.
  • There's a level editor. You can create your own levels.
  • You can change difficulty level in Options/About.
  • Levels are divided in 5 chapters by 5 levels each. You have to beat whole chapter in a row to unlock the next one.

Known issues

  • It's only for 320×240 displays.
  • In KEmulator Lite the game freezes when you open and close Options/About menu (with * from main menu) or if you try to save custom level in level editor. In real phone everything is fine AFAIK.

Download

You can download jar and jad files here. Also i included J2ME emulator, that can run this game almost perfectly.

How to open source project

Note for my future self or anyone interested.
The problem is that J2ME is so dead now, that you can't even download nesessary plugins for Eclipse from Oracle website. Well, shit.

So here's the list of things needed in order to open and compile project:

  • Eclipse Indigo
    Why Indigo? Well, i tried at Neon first and got many unobvious errors. Maybe i did something wrong or maybe that's Eclipse being fragile piece of shit as usual. Anyways, i finally managed to make it work with Indigo, so Indigo it be.
  • Java ME SDK 3.0.5 (It includes Wireless Toolkit = WTK)
  • Antenna jar library (Just save it somewhere, e.g. into Java ME SDK directory)
  • EclipseME plugin
    After installation of the plugin go to Preferences and set paths to WTK root and antenna.jar
  • Fail to install Oracle Java ME SDK Eclipse Plugin because download link on Oracle site is dead. Apparently, you will be fine without it.
  • MIDP 2.1 jar (I included it right into the project in the lib directory, so there's no need to download it. Mentioned it just in case.)
  • Now go to Preferences > J2ME > Device Management > Import > Browse > Select WTK directory > Refresh > Select All > Finish
  • Now go to Preferences > J2ME > Preverification > Select 'Use JAD file setting'
  • If it says that it can't resolve some imports like java.util.* or javax.microedition.*, make sure that JRE and MIDP 2.1 are linked in Build Path Configuration > Libraries.
  • Finally, create Run Configuration as Wireless Toolkit Emulator

Now you should be able to launch it. However there're problems with this emulator: it will throw OutOfMemory if you open Options/About screen and highly possible after completing a level too. But you will get compiled jar + jad files in 'deployed' folder. You can now launch game with any other emulator (like KEmulator i attached to release) or even upload it to your good old Nokia.