Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (511)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (577)
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,
Fr0zen
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.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
@Trainer;5;
@Pokemon;12;1;3;4;6;
@Pokemon;13;1;2;5;
@Pokemon;13;1;4;5;
@Pokemon;11;1;3;5;
@Pokemon;16;1;2;7;
@Trainer;3
@Pokemon;13;1;4;5;
@Pokemon;11;1;3;5;
@Pokemon;16;1;2;7;


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).

Additionally:
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
Hello,

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]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (50 views)
2014-10-17 03:59:02

Norakomi (40 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (36 views)
2014-10-15 16:18:58

TehJavaDev (67 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (57 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (44 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org 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‑gaming.org
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!