Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (499)
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  
  [Open Source] RandomRPG  (Read 6091 times)
0 Members and 1 Guest are viewing this topic.
Offline orogamo

Senior Member


Medals: 5
Projects: 1



« Posted 2012-09-18 15:14:04 »

PROJECT ENDED

This is not a finished game, currently i still need to add a combat system of some sorts and a skill system...
And working multiplayer will also be coming...
When it is finished it is supposed to be a Random RPG.
Quests and Maps shall be Random Cheesy

Currently it has:
Random Terrain
Enemies (with somewhat working AI)
Day-Night Cycle
Dynamic Item System
Map (Movable shift + click & drag)
Save Map (ctrl + z) - saves the map as "map.png" in the game's current directory
Screenshot (F12) - Saves a screenshot to the Desktop (Currently only tested on windows. It saves to System.getProperty("user.home") + " /Desktop")
Cheats (ctrl + c)
 - "sprint" makes you walk faster
 - "debug" shows debug information (Movable shift + click & drag)
 - "setpos" sets position (setpos 0-max:0-max, max is the World Size - 1)
 - "settime" sets time (settime 0-70) //Not complete. It will only set time, it will not flip the day-night cycle....
Arguments
 - "-portable" makes the game save data in current directory...
 - "-volatile" uses a volatile image, which increases FrameRate on some systems.

Config File:
It exists in ADDPATA/.RandomRPG(on windows) or USERHOME/.RandomRPG(on other systems)

Properties:
 - "debugpos" contains debuginfo position
 - "mappos" contains Map position
 - "sync" Aprox FPS, you can probably lower this to around 15, because there are no animations at all. This will lower CPU Usage.

If someone could test it and give feedback,
I will fix any bugs/glitches, if you find some.

If anyone wants to join the project, pm me
Really need a graphics artist(Pixel Art)
Currently everything(but the character) is drawn by me in Paint.net Tongue

This post is probably not complete, but if you want to know anything write a comment or email me: lasse.skogland@gmail.com

This is open source, and you're free to borrow any source code.
Offline matheus23

JGO Wizard


Medals: 97
Projects: 3


You think about my Avatar right now!


« Reply #1 - Posted 2012-09-18 17:19:38 »

NICE! Smiley

I looked through the source a bit (I also played it of course Smiley ), some things I'd like to mention:
[ol]
  • Usually, (in java), it's convention to write variable names and method names lower case (except the constructor name, because Classes are upper case. You did that pretty good).
  • One more convention: package names are usually always lower-case...
  • I have seen you wrote an implementation, where the input wasn't poll based, but implemented as ActionListener, and the rendering loop was another thread than the ticking... usually you wouldn't do this... (yeah even more "conventions", but this convention is really helpful if you have implemented it right)
[/ol]

I hope this helps you, but other than that, GREAT WORK! Keep on doing this!

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline orogamo

Senior Member


Medals: 5
Projects: 1



« Reply #2 - Posted 2012-09-18 22:08:56 »

Thanks for the feedback.

I don't really like those conventions.
I chose to do it this way, because it's easier for me to understand the next time I open up the project (because sometimes this just sits there for maybe a week or two).
It wasn't before recently I actually "restarted" this project, I began this project back in 2011, where I made a very basic game.

Since that I redid most of the engine.
What I do nowadays with this project is mostly bug-fixes and performance tuning, and adding new must have features(like sound and a particle engine).

It won't be long before I add the skill system properly into the game.
I just need some time alone with paint.net Tongue, need that GUI before i can do anything.
I basically want all the GUI to be drawn by human, not by java, so that is why the progress is very little, Game-Wise.
Everything(but the character) is drawn be me, I'm not great when it comes to graphics, so it takes time to make it perfect.

So if anyone are good at pixel art(or even a beginner), you are free to join the project, just send me an email: lasse.skogland@gmail.com
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline GabrielBailey74
« Reply #3 - Posted 2012-09-19 00:33:50 »

ArrayIndexOutOfBoundsException occurs when you pick anything but MapSize[1024] Stare
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 4096
        at com.GameArc.RRPG.Engine.MenuPanel$1.actionPerformed(MenuPanel.java:106)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

Offline 8Keep

Senior Newbie


Medals: 1



« Reply #4 - Posted 2012-09-19 21:51:16 »

Nice, but I think that you should let the player move without having the press the arrow keys up and down for each tile.
Offline GabrielBailey74
« Reply #5 - Posted 2012-09-19 22:04:56 »

Nice, but I think that you should let the player move without having the press the arrow keys up and down for each tile.

That's what:
1  
2  
Cheats (ctrl + c)
 - "sprint" makes you walk faster

enables. persecutioncomplex

Offline orogamo

Senior Member


Medals: 5
Projects: 1



« Reply #6 - Posted 2012-09-21 08:17:57 »

The coordination system is aweful, but I'll "remake" it when I have time.
The current system is for debugging.

The walking will be smooth in the future, not block by block...
I just haven't had that much time, I go to work(8AM-4PM), and I have always something to do  Sad
So i'll try to add it next week Smiley
Offline orogamo

Senior Member


Medals: 5
Projects: 1



« Reply #7 - Posted 2012-09-21 08:22:45 »

ArrayIndexOutOfBoundsException occurs when you pick anything but MapSize[1024] Stare
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 4096
        at com.GameArc.RRPG.Engine.MenuPanel$1.actionPerformed(MenuPanel.java:106)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)


FIXED... Hopefully...
It was a misplaced line Tongue
Offline orogamo

Senior Member


Medals: 5
Projects: 1



« Reply #8 - Posted 2012-12-21 10:36:58 »

Dusting of this project and will start developing further on this game.

Changelog:
  • Fixed some bugs
  • Added some small features
  • Walking is constant, meaning you won't have to press buttons like a maniac
  • Ctrl + Z - saves the map as "map.png" in the game's working directory

Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 114
Projects: 4
Exp: 3 years



« Reply #9 - Posted 2012-12-21 18:17:36 »

I realize this is WIP, but instead of saving the map as an image you should save it in a map format (.tmx or whatever you prefer). Even if you want to stick to an image you can use the Tiled (http://www.mapeditor.org/) map editor and export as an image, it'll make map-making a lot easier.

Nice job on the minimap Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline orogamo

Senior Member


Medals: 5
Projects: 1



« Reply #10 - Posted 2012-12-27 16:37:34 »

The map getting saved is only to get a view of the whole map, it serves no use to the game.

The maps are randomly generated like minecraft, but the map does not get saved.
It regenerates every time it loads, doing this saves space on the harddrive.
And since I use simplex noise to generate it takes less than 2 seconds to generate a map on an average pc. (Depends on the mapsize)
Offline LunaticEdit

Senior Member


Medals: 8
Projects: 1



« Reply #11 - Posted 2012-12-27 23:27:31 »

I realize this is WIP, but instead of saving the map as an image you should save it in a map format (.tmx or whatever you prefer). Even if you want to stick to an image you can use the Tiled (http://www.mapeditor.org/) map editor and export as an image, it'll make map-making a lot easier.

Nice job on the minimap Smiley

Unrelated to this post, but thank you for this! I was going to spend all night and tomorrow on a map editor. Now I'm not.

Offline orogamo

Senior Member


Medals: 5
Projects: 1



« Reply #12 - Posted 2013-04-04 12:45:00 »

UPDATE:
Added smooth textures, which are a little buggy.


Upcoming features:
Skill & Attributes system
Inventory & Equipment
Combat system

Possibly future features:
Convert rendering system to OpenGL(LWJGL or similar)
Offline orogamo

Senior Member


Medals: 5
Projects: 1



« Reply #13 - Posted 2013-04-04 13:44:30 »

Bug Fix:
Fixed problem where smoothing would pick the wrong tile.
Bug occured when two blocks(shore lines) were "touching".
Offline orogamo

Senior Member


Medals: 5
Projects: 1



« Reply #14 - Posted 2013-07-10 14:34:49 »

UPDATE. FINALLY Cheesy
After all these months i finally redid the rendering system.
The game now uses LWJGL to render and handle input.
Not much else has happened.

Planning on trying to release more updates very soon.
Offline Bearded Cow

Senior Newbie




¬..¬


« Reply #15 - Posted 2013-07-11 17:33:30 »

Hey I kind of recognise the character where did you get it?
Offline orogamo

Senior Member


Medals: 5
Projects: 1



« Reply #16 - Posted 2013-07-12 12:38:43 »

Hey I kind of recognise the character where did you get it?

I don't quite remember, i got it somewhere off the internet Tongue
This is not the final character model, this is temporary.
Offline orogamo

Senior Member


Medals: 5
Projects: 1



« Reply #17 - Posted 2013-07-15 09:58:54 »

UPDATE:
Fixed the World Generator so that it almost smoothly connects the chunks.
One step closer to Infinite Terrains Cheesy

Example
Chunks are 32x32 and World size is 1024x1024
Offline marcuiulian13

Senior Member


Medals: 5
Exp: 3 years



« Reply #18 - Posted 2013-07-15 19:36:58 »

I have only one question: how you managed to get that transition from grass to sand and sand to water? Are you using a sprite for every type of transition (i.e. every tile to every other tile and every position (N S W E)) ?

Getting a project done is by far the most hard thing in game development.
Offline orogamo

Senior Member


Medals: 5
Projects: 1



« Reply #19 - Posted 2013-07-15 20:51:45 »

I have only one question: how you managed to get that transition from grass to sand and sand to water? Are you using a sprite for every type of transition (i.e. every tile to every other tile and every position (N S W E)) ?

I have 4 tiles which I rotate to all angles.
Look at the top right tiles here:

Source Code:
Resources.java

I first draw grass and then the transition tile over it.
Offline kpars

JGO Ninja


Medals: 57
Projects: 4
Exp: 2 years


Kemoy Labs/Radirius Game/Engine Developer


« Reply #20 - Posted 2013-07-16 18:39:05 »

I think another cool idea would to have 4 textures for the grass-sand-water border thing that all tile with eachother, and then have them all randomly loaded in the games code, so it doesn't look repetitive.

"Living is easy with eyes closed, misunderstanding all you see. It's getting hard to be someone, but it all works out." ¤¤ Kemoy Labs: http://www.kemoy.net/
Offline sproingie
« Reply #21 - Posted 2013-07-16 18:44:14 »

If you really want to get fancy, try Wang Tiles.  But really, the tufts look fine for now, I'd work on the riverbank/coast tiles next.  You can always sprinkle decorations on top of the grass later.

Offline orogamo

Senior Member


Medals: 5
Projects: 1



« Reply #22 - Posted 2013-07-16 23:42:59 »

Regarding the graphics, I am not going to worry about them just yet.
Currently I only create/draw new tiles or edit old ones when I need to(for example when adding new features, like the transition tiles).

NEW FEATURE:
I have implemented a map(pressing 'M').
Example:

(Black areas are chunks not generated/discovered)
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.

xsi3rr4x (42 views)
2014-04-15 18:08:23

BurntPizza (38 views)
2014-04-15 03:46:01

UprightPath (54 views)
2014-04-14 17:39:50

UprightPath (36 views)
2014-04-14 17:35:47

Porlus (53 views)
2014-04-14 15:48:38

tom_mai78101 (75 views)
2014-04-10 04:04:31

BurntPizza (134 views)
2014-04-08 23:06:04

tom_mai78101 (234 views)
2014-04-05 13:34:39

trollwarrior1 (195 views)
2014-04-04 12:06:45

CJLetsGame (203 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!