Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Various beginner questions  (Read 486 times)
0 Members and 1 Guest are viewing this topic.
Offline Fr0zen

Junior Newbie





« Posted 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!
Offline 65K
« Reply #1 - Posted 2013-03-21 19:24:06 »

  • Should we use a library
A bold yes

  • or code everything ourselves?
Noooo...

  • Is there anything we should do or not do if we want to port our game to Android later on?
Use LibGdx.

Offline Sparky83
« Reply #2 - Posted 2013-03-21 19:54:41 »

I'd just like to give my opinion to this.
Quote
Should we use a library or code everything ourselves?
Coding everything will take you GREAT amounts of time. If you are using Java2D, you will sooner or later find that it is just too slow in rotating, scaling, transparency and stuff. Then porting to OpenGL will cost you lots of time. A library is a nice shortcut.
But if you plan on studying computer science, a look at the underlying architecture can't be bad.

Quote
Is there anything we should do or not do if we want to port our game to Android later on?
Yeah, like 65k said, LibGDX is a good choice for porting on Android. It works nearly instantly. But using LibGDX also takes a good amount of time to learn. But its worth it.

Quote
How do we save things like world-map, evolution chains and so on? txt-files?
At first, txt-files are the way to go! Because that means, that everything will stay rapidly editable. So building a good config-reader is a good idea.

Quote
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?
You will probably load the file containing the tiling information. This information can be kept in an array or any good structure that is efficient enough. Your engine can now determine which part of the map has to be drawn and read out the relevant parts of the mapTiles-structure. Then only the visible parts of the map will be drawn.

Quote
How should the "running" of the game be handled? Have a main file that calls a "Game()" and have everything run
in a "GameThread"?
Well... most likely. You will find answers in KillerGameProgramming.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ReBirth
« Reply #3 - Posted 2013-03-22 01:51:58 »

At first I thought I will give same answer too about using library for performance, then I read last questions and changed my answer: you need to learn the fundamental first before anything else, like running state of game, and do simple but essential project.

Offline HeroesGraveDev

JGO Kernel


Medals: 269
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #4 - Posted 2013-03-22 02:37:16 »

Don't code everything yourself.

On the other hand, don't use libraries for everything.

Be sensible in choosing libraries.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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 (39 views)
2014-10-17 03:59:02

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

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

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

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

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

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

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

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

BurntPizza (78 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!