Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (472)
Games in Android Showcase (105)
games submitted by our members
Games in WIP (524)
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  
  Rogue 4k  (Read 3174 times)
0 Members and 1 Guest are viewing this topic.
Offline Groboclown
« Posted 2012-11-08 23:45:06 »

Update: The game is now published out on the Java4k site.

With an uninspired title, I bring you my first 2013 Java4k contest entry: Rogue 4k (now in HD)

On Java4k.com (final version)

The Story:

You crossed a vast wasteland to reach the fabled Dungeons of McGuffin, where the Mad Mage lived for centuries, collecting monsters and creating items of immense power. Hungry, you descend its ancient stairs with your trusty lantern in hand. The journey was hard, but it was only beginning. Now you must fight off long-unknown creatures to gain treasure and fame, and return home a hero.

Offline actual

JGO Coder


Medals: 23



« Reply #1 - Posted 2012-11-09 00:00:39 »

I played around with it a bit, it's nice.  A few things (not sure how this impacts the 4k limit).

1. Is it possible to make the fonts/window a bit bigger? The small letters strained my eyes.
2. You are using up little enough of the screen, can you put the key instructions in abbreviated form right in the applet?
3. When I hit a monster the second time, it wasn't clear what had happened because the text description is the same so nothing changes. Is it possible to cycle between a few options "You hit the monster", "You clobbered the monster", etc. to make it more obvious that something happened again?
Offline moogie

JGO Knight


Medals: 12
Projects: 6
Exp: 10 years


Java games rock!


« Reply #2 - Posted 2012-11-09 00:09:19 »

Having never played Rouge, this reminds me of Castle Adventure which is nice and nostalgic Smiley

Had a squiz at your code, there is quite a bit of logic under the hood, very deceptive given the simple ASCII display.

Good work
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kramin42
« Reply #3 - Posted 2012-11-09 00:28:20 »

Nice game! I had a cuirass of filling and a dagger of filling (+10 too, that's one tasty dagger), is this a bug?


"All science is either physics or stamp collecting." - Ernest Rutherford.
CodeGolf4k
M4nkala
Offline Groboclown
« Reply #4 - Posted 2012-11-09 03:55:27 »

I played around with it a bit, it's nice.  A few things (not sure how this impacts the 4k limit).

1. Is it possible to make the fonts/window a bit bigger? The small letters strained my eyes.
2. You are using up little enough of the screen, can you put the key instructions in abbreviated form right in the applet?
3. When I hit a monster the second time, it wasn't clear what had happened because the text description is the same so nothing changes. Is it possible to cycle between a few options "You hit the monster", "You clobbered the monster", etc. to make it more obvious that something happened again?

1. I agree with the font size.  It was what I could do to keep the messages on a single line and not lose too much information.  I'll see what I can do about possibly stretching the screen size to make the text a bit more readable.  However, I'm really pinched for space as it stands (4061), and I'm looking to keep the changes minimal.

2. For the official submission, the applet will be by itself.  I'll look at rearranging the page so that the instructions are more easily read.

3. That's a really good point.  I'm going to look into alternating the text color, so that there will be some kind of indication that another turn passed.

Offline Groboclown
« Reply #5 - Posted 2012-11-09 03:56:44 »

Nice game! I had a cuirass of filling and a dagger of filling (+10 too, that's one tasty dagger), is this a bug?

Nope.  Both of them have the same enchantment - it's the dungeon of a Mad Mage!

Offline kramin42
« Reply #6 - Posted 2012-11-09 06:03:50 »

Any item being able to get any enchantment definitely adds fun to the game, I tried to kill an enemy with a pizza of harming at one point  Grin

"All science is either physics or stamp collecting." - Ernest Rutherford.
CodeGolf4k
M4nkala
Offline Damocles
« Reply #7 - Posted 2012-11-09 06:31:45 »

Optimization tip:
I see you use a lot of switch case instructions.

Try out a chain of "if"s
This saves somes bytes.

Offline Groboclown
« Reply #8 - Posted 2012-11-10 21:58:28 »

I uploaded a new version.  This includes:
  • fixes to the map generation (no more long strings of doors)
  • text messages alternate colors, so you can more easily tell if a new message appears with the same text
  • a few balance issues regarding monster strength and frequency of appearance

Optimization tip:
I see you use a lot of switch case instructions.

Try out a chain of "if"s
This saves somes bytes.

Most of the case statements take advantage of the fall-through feature to reduce code duplication, but there were some that I removed.  It seems to have helped to reduce the code size.  Thanks for the suggestion.

Offline StephR

Senior Member


Medals: 9



« Reply #9 - Posted 2012-11-13 22:29:49 »

Hello Groboclown,

I'm very interested in your game, but I would appreciate very much to play it on a bigger screen !

I gave a short look at your code, and noticed you mixed &, &&, | and || logical operators. Is it mandatory for your program ? If it wasn't, I wonder if you wouldn't save a few bytes by using only the & and | ones.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Groboclown
« Reply #10 - Posted 2012-11-14 17:47:00 »

I'm very interested in your game, but I would appreciate very much to play it on a bigger screen !
1. Is it possible to make the fonts/window a bit bigger? The small letters strained my eyes.

Due to popular demand, Rogue4k is now in HD!

Offline Corvid

Senior Newbie


Projects: 1


/*do not read this code sober*/


« Reply #11 - Posted 2012-11-15 14:07:38 »

Hmm, I just got a white screen and an AOOBE Sad

Edit :  I reloaded the applet 4 or 5 times and it worked.. something with the random level generation?  Anyway, it looks good Smiley I look forward to a more balanced version.
Offline Groboclown
« Reply #12 - Posted 2012-11-15 18:23:08 »

Hmm, I just got a white screen and an AOOBE Sad

Bah.  I thought I had eliminated that, but I just saw it, too.  It's related to the generation of the map.  I'll look into this.  Thanks for the heads up.

Offline StephR

Senior Member


Medals: 9



« Reply #13 - Posted 2012-11-15 19:08:07 »

Cool Roguelike game. A few comments about it :
- I was not able to cancel the "use item" action when the game asked me to "pick a direction" or to hit "any other key to cancel" ;
- I regret the dungeon level is not indicated ;
- when the player reaches 0% food, starvation should not lead to immediate death, but to reduce health slowly instead.
Offline Groboclown
« Reply #14 - Posted 2012-11-19 01:43:03 »

Thanks everyone for the feedback.  I've incorporated all the notes you've given, as well as improved the game balance.

Offline Groboclown
« Reply #15 - Posted 2012-12-20 22:25:47 »

The game is now official on the java4k site.  Thanks Appel!

Offline luisoft

JGO Coder


Projects: 6


Java games rock!


« Reply #16 - Posted 2013-03-03 22:00:01 »

Hey Groboclown, trying to compile the source code provided in java4k but it giving me errors below:

R.java:1740: unclosed character literal
    private static final int DISPLAY_CHAR_PATH = 'u2592';
                                                 ^
R.java:1740: illegal start of type
    private static final int DISPLAY_CHAR_PATH = 'u2592';
                                                   ^
R.java:1740: unclosed character literal
    private static final int DISPLAY_CHAR_PATH = 'u2592';
                                                       ^
R.java:1740: ';' expected
    private static final int DISPLAY_CHAR_PATH = 'u2592';
                                                         ^
R.java:1744: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_HORIZ = 'u2550';
                                                             ^
R.java:1744: illegal start of type
    private static final int DISPLAY_CHAR_BOX_DOUBLE_HORIZ = 'u2550';
                                                               ^
R.java:1744: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_HORIZ = 'u2550';
                                                                   ^
R.java:1744: ';' expected
    private static final int DISPLAY_CHAR_BOX_DOUBLE_HORIZ = 'u2550';
                                                                     ^
R.java:1745: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_VERT = 'u2551';
                                                            ^
R.java:1745: illegal start of type
    private static final int DISPLAY_CHAR_BOX_DOUBLE_VERT = 'u2551';
                                                              ^
R.java:1745: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_VERT = 'u2551';
                                                                  ^
R.java:1745: ';' expected
    private static final int DISPLAY_CHAR_BOX_DOUBLE_VERT = 'u2551';
                                                                    ^
R.java:1746: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NW = 'u2554';
                                                          ^
R.java:1746: illegal start of type
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NW = 'u2554';
                                                            ^
R.java:1746: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NW = 'u2554';
                                                                ^
R.java:1746: ';' expected
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NW = 'u2554';
                                                                  ^
R.java:1747: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NE = 'u2557';
                                                          ^
R.java:1747: illegal start of type
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NE = 'u2557';
                                                            ^
R.java:1747: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NE = 'u2557';
                                                                ^
R.java:1747: ';' expected
    private static final int DISPLAY_CHAR_BOX_DOUBLE_NE = 'u2557';
                                                                  ^
R.java:1748: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_SW = 'u255a';
                                                          ^
R.java:1748: illegal start of type
    private static final int DISPLAY_CHAR_BOX_DOUBLE_SW = 'u255a';
                                                            ^
R.java:1748: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_SW = 'u255a';
                                                                ^
R.java:1749: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_SE = 'u255d';
                                                          ^
R.java:1749: illegal start of type
    private static final int DISPLAY_CHAR_BOX_DOUBLE_SE = 'u255d';
                                                            ^
R.java:1749: unclosed character literal
    private static final int DISPLAY_CHAR_BOX_DOUBLE_SE = 'u255d';
                                                                ^
R.java:1749: ';' expected
    private static final int DISPLAY_CHAR_BOX_DOUBLE_SE = 'u255d';
                                                                  ^
27 errors
Offline Groboclown
« Reply #17 - Posted 2013-03-04 00:53:19 »

It looks like some issue with the escaping - there should be a backslash ('\') before each u.  If you want to see the source control version, it's available here:

http://groboutils.cvs.sourceforge.net/viewvc/groboutils/projects/grobo-games/4kgames/rogue/src/R.java?revision=1.22&content-type=text%2Fplain

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.

Riven (23 views)
2014-07-10 20:20:18

CopyableCougar4 (22 views)
2014-07-10 02:26:14

CopyableCougar4 (29 views)
2014-07-09 02:55:38

Code Mage (29 views)
2014-07-08 23:57:00

Code Mage (16 views)
2014-07-08 23:49:08

AppleSauce (25 views)
2014-07-08 19:25:32

CopyableCougar4 (25 views)
2014-07-06 01:51:26

ipe369 (30 views)
2014-07-05 14:18:25

vastrolorde (41 views)
2014-07-04 18:45:44

theagentd (58 views)
2014-07-02 22:19:37
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!