Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (600)
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  
  Topic needs deleted.  (Read 2536 times)
0 Members and 1 Guest are viewing this topic.
Offline achap1989

Senior Newbie


Medals: 1



« Posted 2014-04-15 23:51:46 »

This post has been removed!

No longer willl I be creating an RPG engine, I have taken a new direct and decided to continue the development as a game.
Offline Coldstream24
« Reply #1 - Posted 2014-04-16 01:16:42 »

With the menus, I would create an Interface called Menu which I would implement in your CreditsMenu, HelpMenu etc... Then you could store the current menu you're on:
1  
Menu CurrentMenu


It should contain the methods that you share across all the Menu types. So in that Interface I would have:
1  
2  
3  
public void update();
public void draw(Graphics g);
public void handleInput();

And instead of using If…Else If… statements, you could then just call:
1  
CurrentMenu.update();


Each time you change menus, you set CurrentMenu to be equal to the menu you want.

Yes, I am that same incredibly famous Internet musician.
Offline achap1989

Senior Newbie


Medals: 1



« Reply #2 - Posted 2014-04-16 01:29:48 »

That is a great Idea, I will be adding that later tonight.  Thank you for your insight @Coldstream24.  This will help cut down on if statements by a lot!

I am still looking for ideas folks!  Hit me up with some good ones!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Lambo993
« Reply #3 - Posted 2014-04-19 04:55:52 »

Found a bug when i try to run it
1  
2  
3  
4  
java.lang.IllegalArgumentException: timeout value is negative
   at java.lang.Thread.sleep(Native Method)
   at com.ChimpyGames.GamePanel.run(GamePanel.java:64)
   at java.lang.Thread.run(Unknown Source)

Doesn't seem to be a problem thought it's only started as negative
Offline achap1989

Senior Newbie


Medals: 1



« Reply #4 - Posted 2014-04-21 01:34:09 »

Found a bug when i try to run it
1  
2  
3  
4  
java.lang.IllegalArgumentException: timeout value is negative
   at java.lang.Thread.sleep(Native Method)
   at com.ChimpyGames.GamePanel.run(GamePanel.java:64)
   at java.lang.Thread.run(Unknown Source)

Doesn't seem to be a problem thought it's only started as negative

Thank you for your report.  I am aware of this bug, and it will be fixed soon.  However, it is not high on the fix list at this moment.  I am currently working on a multilayer feature this is currently top priority.
Offline HeroesGraveDev

JGO Kernel


Medals: 309
Projects: 11
Exp: 3 years


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


« Reply #5 - Posted 2014-04-21 07:34:02 »

I think a crash in the game loop is a pretty serious problem.

Whatever 'multilayer' (multiplayer?) system you're working on is nowhere near as important.

Offline achap1989

Senior Newbie


Medals: 1



« Reply #6 - Posted 2014-04-23 06:22:34 »

I think a crash in the game loop is a pretty serious problem.

Whatever 'multilayer' (multiplayer?) system you're working on is nowhere near as important.

Multiplayer, yes it was a typo.   It does not crash the gameloop... The loop continues to run as scheduled however the first loop is negative after the first loop it continues with no abnormalities.  The error has been fixed now, so it is irrelevant now.

I am still looking for suggestions from you guys!  So please speak up, what would you like to see in this?
Offline orogamo
« Reply #7 - Posted 2014-04-23 12:52:03 »

Have you though about using Procedural Terrain Generation?
If so you can take a look at my code.
It also has other "cool" features implemented Smiley

edit:
Link to the "Game"
Offline achap1989

Senior Newbie


Medals: 1



« Reply #8 - Posted 2014-04-23 16:50:00 »

Have you though about using Procedural Terrain Generation?
If so you can take a look at my code.
It also has other "cool" features implemented Smiley

edit:
Link to the "Game"

I would be happy to take a look at it, however I am not sure if I will be using this, as the idea for this engine is for quick and easy game design and development.
Offline opiop65

JGO Kernel


Medals: 160
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #9 - Posted 2014-04-23 20:30:20 »

Well... if you abstracted all the hard stuff away, then wouldn't it still be easy to use for the end user? Sounds like you don't want to take the time to implement it because its hard, no offense! But trust me, random terrain generation would be very useful in an engine. I think not implementing because its hard is silly...

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Gibbo3771
« Reply #10 - Posted 2014-04-23 20:51:31 »

I would kill for a nice easy random terrain implementation, really..kill...try me.

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Offline achap1989

Senior Newbie


Medals: 1



« Reply #11 - Posted 2014-04-23 21:23:07 »

Well... if you abstracted all the hard stuff away, then wouldn't it still be easy to use for the end user? Sounds like you don't want to take the time to implement it because its hard, no offense! But trust me, random terrain generation would be very useful in an engine. I think not implementing because its hard is silly...

It's not that it would be hard to implement, because to be honest it wouldnt.  I simply do not see much of use for it in an rpg engine where the user can  directly build the map.

Would you guys like for this to be Implemented?  As I stated I am only doing this to improve upon myself and grow my knowledge in java.  This being said if more people than not would like this feature then I will be happy to add a terrain generator based off this one.

Also Gibbo3771, I love your signature, from now on when I don't get the results I want from code I am going to say this to myself.
Offline orogamo
« Reply #12 - Posted 2014-04-25 08:54:55 »

A little heads up Smiley
You should not base your random terrain generation on my implementation. (It does not work properly)
You can copy these classes, they are not made by me, but i have slightly tweaked them to my liking.
Everywhere where it says something like
1  
WorldGenerator.chunkSize // or anything from this class

you should change to your own values Smiley

The worldgenerator class is quite messy, but if studied you would get some knowledge of how it works(and how it should be implemented)

When used properly this is the result of a river filled terrain
Example map
Green = Grass
Dark Green/Brown = Trees
Yellow/White = Sand
Blue = Water

EDIT
You should also implement a minimap feature like this
Something along these lines:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
public void renderMap() {
    for (int x = 0; x < 30; x++)
        for (int y = 0; y < 30; y++) {
            int block = ChunkManager.getBlock(World.player.pos.x - 14 + x, World.player.pos.y - 14 + y);
            if (x == 14 && y == 14) setColor(Color.WHITE);
            else if (block == -1) setColor(Color.BLACK);
            else if (block == Resources.WATER) setColor(Color.BLUE);
            else if (block == Resources.SAND || block >= Resources.WATER_NW && block <= Resources.GRASS_W) setColor(World.worldGen.sand);
            else if (block == Resources.GRASS) setColor(World.worldGen.grass);
            else if (block == Resources.TREE) setColor(World.worldGen.tree);
            else if (block == Resources.CASTLE) (Color.CYAN);
            if (World.enemies.size() > 0)
                for (Enemy e : World.enemies.toArray(new Enemy[World.enemies.size()]))
                    if (World.player.pos.x - 14 + x == e.pos.x && World.player.pos.y - 14 + y == e.pos.y) setColor(Color.RED);
                        fillRect(mapX + (x * 3), mapY + (y * 3), 3, 3);
                        glColor3d(0, 0, 0);
                        fillRect(mapX + (x * 3) + 1, mapY + (y * 3) + 1, 1, 1);
                    }
}
Offline achap1989

Senior Newbie


Medals: 1



« Reply #13 - Posted 2014-04-26 00:23:31 »

@Orogamo, Thank you for your advice as well as suggestion.  I will be adding a minimap feature that can be disabled as well as enabled via the server.  This way the server Administator can choose if he/she would like the minimap feature in use.
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.

rwatson462 (29 views)
2014-12-15 09:26:44

Mr.CodeIt (20 views)
2014-12-14 19:50:38

BurntPizza (40 views)
2014-12-09 22:41:13

BurntPizza (75 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (50 views)
2014-12-03 16:27:13

CopyableCougar4 (47 views)
2014-11-29 21:32:03

toopeicgaming1999 (113 views)
2014-11-26 15:22:04

toopeicgaming1999 (100 views)
2014-11-26 15:20:36

toopeicgaming1999 (30 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

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
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!