Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (843)
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  Game Development / Newbie & Debugging Questions / Story implementation on: 2013-05-10 07:42:11
Hello JGO,

Say I have the general engine working and the only thing missing is a story line.

Let's take the Pokemon games as an example: How would I implement surfing if I don't want to check wether the next tile is a water tile on every step I take? (I assume this would be horrible performance wise) The guards will let me pass once I have delivered some juice to them. How would this be done?

The second one should I should be able to implement with a state machine. Am I correct in understanding that a state machine is an enum(java) with my different states?

The other thing I am a little bit confused about is Events. For example how would I implement that if I step on a certain tile my character dies - again without checking this for EVERY tile I step on. I believe the tile would need to call some sort of Event that then kills my character. How should I write my "EventHandler"?

Thanks in advance,
2  Game Development / Newbie & Debugging Questions / Re: Storing data for a pokemon like game on: 2013-04-14 19:20:32
I'd probably just go with text files for most of the information, they're easy to use.

True, however I would still need to encrypt them somehow otherwise users would be able to edit them and make the game easier. Probably just binary or something.
3  Game Development / Newbie & Debugging Questions / Re: Storing data for a pokemon like game on: 2013-04-14 18:21:10
I am no expert, but is your game suitable for serialization?

You could create a class that holds everything about your characters, then pass your data to it, store using that class objects, and save to a file. Then you could build some retriever methods like getPokemonAttackCount() etc. So when you open the file, you just read the object, extract the data then send to the relevant classes/methods.

I think I made it sound complex, but it is not that hard.
It's very similar to Pokemon.
The problem is not saving my current game state, the problem is storing things that are set(the environment). For example where a trainer is positioned and what his pokemon are, what the attacks of his pokemon are, etc.
I am unsure wether to use a Database(SQLite?) or text files. Or maybe there is another very different approach?
4  Game Development / Newbie & Debugging Questions / Storing data for a pokemon like game on: 2013-04-14 17:42:08

The game I'm developing is close to Pokemon. How should I store the data? I am currently thinking of text files where I save the map and have a corresponding textfile for the trainers and their teams on the "current" screen. However this leaves me with a LOT of textfiles.

At the moment I'm thinking of something like this, however I haven't coded this yet so I can still easily change this.


Where the first column is the "type" of the entry. If the first is Trainer the second is his number of Pokemon. If the first is Pokemon the second is the level, the third the type, the fourth/fifth/sixth the IDs of his attacks. (How should I store the attacks? A seperate textfile where I just store the attacks?)

I am currently finding myself with having such a huge amount of data that I'm starting to wonder wether I should be using a Database instead?

Using Java(LWJGL).

Posted this on stackexchange already, though wanted more expert opinions on this! Smiley
5  Game Development / Newbie & Debugging Questions / Various beginner questions on: 2013-03-21 19:19:18

I am relatively new to game programming in Java though I've been doing normal Java in school for 3 years.
I now want to create a Pokemon-like game with a friend of mine who has similar experience.

The questions we now face are:
  • Should we use a library or code everything ourselves?
  • Is there anything we should do or not do if we want to port our game to Android later on?
  • How do we save things like world-map, evolution chains and so on? txt-files?
  • How should we "load" the map? Loading the entire map would probably be VERY performance inefficient
    so how should we do phasing? Center around our character, load the current screen and update this as you move?
  • How should the "running" of the game be handled? Have a main file that calls a "Game()" and have everything run
    in a "GameThread"?

Thank you very much in advance!
Pages: [1]
EgonOlsen (37 views)
2018-06-10 19:43:48

EgonOlsen (20 views)
2018-06-10 19:43:44

EgonOlsen (39 views)
2018-06-10 19:43:20

DesertCoockie (186 views)
2018-05-13 18:23:11

nelsongames (122 views)
2018-04-24 18:15:36

nelsongames (121 views)
2018-04-24 18:14:32

ivj94 (861 views)
2018-03-24 14:47:39

ivj94 (122 views)
2018-03-24 14:46:31

ivj94 (758 views)
2018-03-24 14:43:53

Solater (139 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!