Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (670)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Discussions / General Discussions / Re: Object Serialization For Saving Games On Android Platform on: 2014-02-19 14:56:02
Thanks for the replies - they are very helpful.
2  Discussions / General Discussions / Re: Object Serialization For Saving Games On Android Platform on: 2014-02-18 19:38:56
Thanks for responding.  Could you elaborate on why Java serialization is bad?  Is it a question of performance, space consumption, reliability .... ?
3  Discussions / General Discussions / Object Serialization For Saving Games On Android Platform on: 2014-02-18 17:28:13
Hi folks.

Concise version:  Is loading and saving games using serialization an effective solution on Android?

Full version:

I have spent the last few years of my hobby time writing an RPG game in Java.  I now want to port it to Android, and have been reading up on Android development.

My lazy decision when writing the PC game was to implement save games using object serialization.  All of a game's data is under the object "Game", and is serializable, so saving and loading games was easy.  The risk is that a Java update will change the standard objects to the point that I cannot retrieve a saved game, and the player will have to start over.  Given the nature of the game (it's more rogue-like than anything else), this was not a problem.

Moving over to Android, I hope to preserve this approach rather than (finally) have to write toString and fromString methods, or figure out how to put all the data into SQLite.  I may use the DB later, but to get started, I am trying to avoid taking on more work - redoing the UI is enough.

So, my question is, in your collective experience, is loading and saving games using serialization an effective solution on Android?

4  Discussions / General Discussions / Re: Getting myself to program.. on: 2012-05-17 15:21:34
For the first time, I have a long-term project (coming up on two years) and have stuck to it, rather than burning out and starting something new.  I now have a working game I can play, and going forward am just adding features and content (it's an RPG, so that means more quests, maps, classes, monsters, spells, items etc).

I mention this because I don't think chronically starting over is the way to go.  During the two years (started in August, 2010) I have had a few periods where for weeks, or once two months, I didn't do any programming at all.  That's okay.  Take a break, and come back to it later.

Caveat - if you have a project that never had you eager and interested, then do start a new one, otherwise just wait for the interest to come back.
5  Java Game APIs & Engines / Java 2D / Re: creating simple homing missile? on: 2004-01-08 15:55:49
Add in a small chance that it doesn't correct its path - otherwise the player won't have a decent oppertunity to dodge.  If this seems cheesy, keep in mind how many real military munitions don't function quite right ...
6  Games Center / Archived Projects / Re: Nibbles (2 Player) on: 2004-01-05 16:40:40
I'm not sure what you mean by the draw condition - could you please elaborate?

I hadn't thought of the two-head hit problem - I suspect player two will win all the time (P1 will check first, find impact and die).  I'll have to fix that .... thanks!

7  Games Center / Archived Projects / Nibbles (added AI) on: 2003-12-29 10:05:01
I've added AI controls (three types, none of them perfect) to the game, a few new levels and fixed the bug that let people change their direction repeatedly with quick key strokes (which often resulted in them turning into themselves).

Please let me know what you think - any comments are welcome! Smiley

8  Games Center / Archived Projects / Re: Nibbles Take III on: 2003-12-24 11:06:15
delivering jar files isn't the latest technology .... how about adding a JNLP file to it (WebStart) - then even non-windozers can 'one-click' your application Smiley
dont worry it isnt that complicated

I'll have to look into that ... is anything more than server-side plain text pages required?  My ISP only allows for HTML and PHP.
9  Games Center / Archived Projects / Nibbles (2 Player) on: 2003-12-22 10:19:12
I've finished the two-player version of Nibbles, which can be downloaded here:

Adding good AI controls will take some time, but I'll add that eventually too.  In the meantime, I hope this version gives people some nostalgic fun.

10  Games Center / Archived Projects / Re: Nibbles Take III on: 2003-12-19 11:24:38
Thanks - I'll have to do something about that soon.

By the way - I've nearly got two player (one keyboard) support working - should post that early next week.

What do you folks think of the option of an AI-controlled second player?  Good idea or bad idea?  Should it be efficient (and hence a good assistent), agreessive (tries to cut you off), or somewhat random (tries to get to the numbers, but misses a percentage of the time)?

11  Games Center / Archived Projects / Nibbles Take III on: 2003-12-19 10:09:02
Thanks for the helpful feedback, folks.  I think I have the full-screen problem fixed.  One shouldn't cache getGraphics () responses immediately after switching to full-screen mode, apparently.

Please give the game one more try - I hope you will like it:

12  Games Center / Archived Projects / Re: Nibbles Take II on: 2003-12-17 10:41:35
I have to clean the code up to work better as a windowed game.

Currently, the game is a Frame extension which calls setUndecorated (true) and thus hides all evidence of being a window.

Funny, this was my first attempt at writing a full-screen game, and instead of saving effort it has cost me far more.   :-/
13  Games Center / Archived Projects / Nibbles Take II on: 2003-12-17 10:09:09
Okay, I've added the option to run Nibbles in windowed mode as well as full screen.  Its a cheesy hack I'm not happy with, but as I can't find a way to resolve the full screen issues it seems necessary.

14  Games Center / Archived Projects / Re: Galaxy Traders 6 on: 2003-12-16 14:43:08
Thanks for the code - I have a lot to learn when it comes to Graphics2D (and on many other topics, I'm sure! Smiley ).

15  Games Center / Archived Projects / Re: Nibbles on: 2003-12-16 14:41:20
You aren't the first person to have trouble; as far as I can tell the issue is with Java entering full-screen mode.

I posted the code for Nibbles on Sun's other java forums - please take a look and see if you can find what I'm doing wrong (if anything).  The main () function handles full screen entry, and is located at the end of the class.

Here's the link:

I look forward to any suggestions - I'd like to get this problem fixed!

16  Games Center / Archived Projects / Re: Nibbles on: 2003-12-16 14:39:05
Two Player is certainly on my todo list, as is an AI second player.  The trick will be handling path finding in a way that isn't always best-case (making for a difficult and not fun experience) and has good performance.
17  Games Center / Archived Projects / Re: Galaxy Traders 6 on: 2003-12-15 22:41:00
Great looking game - or at least the start of one!

I have two questions for you (if you don't mind):

1.  How do you rotate the images in place?  Mind sharing that code snippet?

2.  Is there a Galaxy Traders 5 we can play with while you work on version 6?

18  Games Center / Archived Projects / Nibbles on: 2003-12-15 14:40:59
I wrote a clone of the QuickBasic Nibbles clone. If you're interested, please try it out and let me know what you think.

I'm especially interested in suggestions for more levels - please share any you might have.

Here's the link:

Pages: [1]
IanParcs (36 views)
2016-04-18 14:18:53

KaiHH (36 views)
2016-04-18 08:35:41

KaiHH (67 views)
2016-04-15 12:43:58

theagentd (68 views)
2016-04-14 02:16:17

theagentd (76 views)
2016-04-14 02:15:43

IanParcs (92 views)
2016-04-12 03:51:16

IanParcs (37 views)
2016-04-12 03:50:03

IanParcs (33 views)
2016-04-12 03:49:54

IanParcs (30 views)
2016-04-12 03:49:52

IanParcs (39 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!