Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - logFarm

Pages: 1 ... 4 5 [6]
wobbegong is a 2D game created using the Lightweight Java Game Library

I could have used jMonkey to create this game since jMonkey is a whole
development environment wrapped around lwjgl but I wanted to use lwjgl

First thing I needed to do was configure NetBeans to create a lwjgl

Then find out how:

- to display a blank window
- draw shapes
- add textures

I subscribed to: 'thebennybox' youtube channel ::

followed the pong tutorial just to get over many of the lwjgl newbie

I intended to create a 2D game where the user can create their own
maps. The plan was to create text files listing the coordinates of
game objects. The game would read these map files and display the game

Having used XML before on other projects, I knew I wanted to use
something else. Brief research brought JSON to the fore as a prime

I downloaded the source code from this site ::

In my lwjgl NetBeans project, I created a separate package and added
all the JSON classes, just downloaded, to it.

Audio was another challenge. Downloaded the code from here ::

created a whole new NetBeans project for the jcraft files. The project
looks like this:


Then, clean and build.

Import the JOGG project into your game as a library:

right-click > Projects > Libraries > Add project (button)

Even with the learning and configuration stated above, I was able to
complete the game with a level editor in eight weeks.

The level designer

The level designer is written using Java2D. It lets the user click an
object-type-button, tap the map grid and place that game-object.

Crl+s saves the coordinates of all the map objects to a text file in
the form of JSON.

Save your new map in the gameDir directory and edit the list-of-maps
file, adding your new map-name to it.

Self Storage Unit Size Calculator :: application / In the early days
« on: Sunday 2015-March-29 02:47:35 PM »
In my early days I rented a storage unit from a self storage company
in Reading UK and signed an agreement so I could use the unit as a
'work shop'. From my point of view, this was only intended to be a
temporary arrangement but I worked from that cold, noisy, insect and
rodent ridden metal hole for ten years and I would still be there too
if ... [1] 

Based on conversations I had with the staff who sat on that facility's
reception, I came up with my first Android application idea which
calculates the size of a self storage unit based on the contents of
the user's house.

Being able to ask (Steve [on reception]) opinions and advice about the
basic methods they use to calculate a customer's self storage unit
size, was extremely useful.

It took a year to complete mostly because this was my first Android

It has gone through many iterations.

I created a Java Applet that does the same thing which took about two
months and then rewrote the Android application based on what I
learned from the Java Applet.


The manager of the self storage facility was stealing.

I reported his thieving to the self storage company's head office who
then counter accused me of doing something that breached my rental
contract with them.

That-manager also tried to get his own back by using Google Play to
give my 'Self Storage Unit Size Calculator' Android app an one star
review along with a derogatory comment.

I told the storage company head office about this but their response
was to threatened me with prosecution for spoiling their reputation (I
still have their threatening e-mails).

That-manager's one star review and comment was instantly removed,
presumably because of pressure from head office.

Eventually a head-office-bloke came to seem me. He told me his name
but claimed he didn't have a business card (when I asked for one).

The head-office-bloke proceeded to accuse me of 'sleeping in a chair'
which was against their rules and therefore I should leave.

This was their counter argument to me-telling-them that one of their
managers is not only stealing from them but also stealing from their
customers (and the rest of it [2]).

I suggested that we both (me and head-office-bloke) go downstairs and
speak to a customer I knew that-manager had stolen from, (that
customer had told me about the theft). The head-office-bloke said he
didn't want to do that.

I *recorded* this conversation between me and head-office-bloke and
because I knew my tape recorder was recording, I prompted him to
answer the following questions:

- do you think that-manager's thieving from your company is a problem?
:: he replied: no

- do you think that-manager's thieving from your customers is a
problem? :: he replied: no

- your manager give my application an one star review on Google Play
and a derogatory comment, because I reported him for thieving; do you
see that as a problem :: he replied: 'he removed it when we told him
to so no'

My instinct to have a tape recorder, batteries charged and readily at
hand, proved wise I think.


The rest of it:

- recreational-drug storage

- entering customer storage units because a customer has forgotten to
lock their storage unit door

I believe I witnessed these activities simply because I spent most of
my life their, drinking coffee and coding. I became part of the
furniture. This meant that-manager and a few of his staff became
complacent with what they did and what they said when I was near by.

For example: If I ever notice that any-customer had forgotten to lock
their unit, I would tell the staff at the front-desk about it so they
could contact the customer who could come back to their unit and
properly lock their door; customers use their own padlocks.

Then I saw what that-manager and his staff did with that information:

- the staff clicks a check-box on their computer desktop which turns
that storage unit's alarm off

- one or more of the staff then open that unlocked-unit to explore its
contents without the logs showing that the door has been opened,
because they just turned the alarm off

grey hat :: game / 'Grey Hat' was my second game
« on: Sunday 2015-March-29 10:40:45 AM »
'Grey Hat' was my second game written for Android created using
Java2D. The first version took a long time to finish, about eighteen

The idea behind the game is to create an interesting game-storyline
based around the banker problems and scandals of 2007.

The original version had a title sound track, a few seconds created
with Linux Multimedia Studio.

All the sprites where created using Blender and Gimp.

Completing quests players had to read a lot of text dialog. To make
this less boring I made use of Android's Text To Speach facility.

The game has a mini-map, an inventory and some building mechanisms.

The trouble with the first version was that *my* usage of Java2D was
very slow on most Android devices. I had a Nexus 7 on-which the game
ran (in my mind) beautifully but then there was the dreaded different
Android screen sizes that caused problems too.

I created a PC version, more specifically a Java Applet. It had all
the same quests (and typos) with a lot of other features, the main one
being: multi player

so players could see each other, move about and interact with

The Java Applet version, in my opinion was much more fun because:

- there are a lot of different items that exist and can be picked up
- many different things can be built
- a few team-play activities
- all items in the game have a life-time
- most things can be repaired

the java applet version took three months to create.

I then decided it was time to investigate OpenGL and created 'Debris
Field'. Conjuring the knowledge I had gained from that, I converted
Java2D 'Grey Hat' to an Android OpenGL game.

I *still* need to work on compatibility with different screen sizes.

Debris Field :: game / Practical Android 4 Games Development by J. F. DiMarzio
« on: Saturday 2015-March-28 06:05:37 PM »
I read this book to get a handle on OpenGL and OpenGL for Android:
Practical Android 4 Games Development by J. F. DiMarzio

It definitely got me started and 'Debris Field' was the result.

I ran with the example code but as a result 'Debris Field' didn't have
a design and so suffers from some poor game play.

It has gone through a few iterations, I layering-on what I hoped
would-be improved features and better sprites. The sprites were
improved a little bit and perhaps the new features added a little bit
to the game play but in the end, because I never started with a game
design, 'Debris Field', in its current form has reached its limit.

Bubbles In A Cage :: game / jMonkey
« on: Saturday 2015-March-28 05:32:32 PM »
Bubbles In A Cage is another game created using the jMonkeyEngine (, Cube Cracker was also created with jMonkey.

Bubbles In A Cage took a day to get up and running and not much longer to export an Android version using jMonkey and then upload it to Google Play.

The original Bubbles In A Cage was my first game, created for Android using Java2D instead of OpenGL.

Java2D is lovely to use.

The trouble I had with Java2D on Android was the different screen sizes of Android devices. To be honest I still have that trouble, even with OpenGL but jMonkey seems to take care of that for you.

Put simply, jMonkey rocks !!

Pages: 1 ... 4 5 [6]