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 [2] 3
  ignore  |  Print  
  Miners4k  (Read 18344 times)
0 Members and 1 Guest are viewing this topic.
Offline hvor2

Junior Member




Beyond mind, there is an awareness...


« Reply #30 - Posted 2005-12-05 11:56:48 »

Markus, maybe this will sounfd familiar to you, but I have to say it - awesome! No time to write, i have to play some more!

Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #31 - Posted 2005-12-05 12:01:10 »

haha, woo


Thanks for your kind comments, all. =D
markus.ego++;

Play Minecraft!
Offline hvor2

Junior Member




Beyond mind, there is an awareness...


« Reply #32 - Posted 2005-12-05 13:06:01 »

markus.ego++;
Grin Grin Grin

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline f.l.x

Senior Member


Projects: 3


there is no place like 127.0.0.1


« Reply #33 - Posted 2005-12-05 13:49:04 »

have just scrapped my to-be entry, too heavy for a newbie  Grin

Litterarum radices amaras, fructus dulces
http://flx.proyectoanonimo.com
figth spam!
Offline nonnus29

Senior Member




Giving Java a second chance after ludumdare fiasco


« Reply #34 - Posted 2005-12-05 14:07:16 »

The bar truly is much higher this time around.

There are some really great games in the contest and I'm almost ashamed to continue with my own entry Smiley

Of course that's not the point, you should finish your game, or start another.... Wink  It is clear the gameplay is at a much higher level this year though.

The more the merrier!

I'm have trouble getting past level 3, curse this game, I need to do other things  Angry .
Offline DzzD
« Reply #35 - Posted 2005-12-05 14:50:24 »

Yes, awesome! great idea and great game.   

I did not win level two Sad, but I will  Angry!!!   

This game remember to me Lemmings, maybe you could add creatures abilities, limited and applicable by clicking creatures?  climber...     

Bruno

kul_th_las
Guest
« Reply #36 - Posted 2005-12-05 17:35:50 »

Hey, this game doesn't work on my Mac at work. With a single-button mouse, normally you Crtl+Click to get the equivalent of a right mouse button, and there's a way to check for that in Java. Are you not using the "KeyEvent.isPopupTrigger()" method to detect right-mouse button clicks? 'Course I'm assuming you're using AWT/Swing, but maybe not.
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #37 - Posted 2005-12-05 18:13:59 »

ah.. mac..

Play Minecraft!
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #38 - Posted 2005-12-05 19:02:56 »

I'm done with that exam, I think I passed (yay), and now I have time for 4k.

Again: Great addition to this year's contest, truly, and also loads of fun. You've changed your tactics, obviously, from high-tech to gameplay, and it works just as well. I'm as impressed with this one as I was with your games from last year, and I find myself wondering what you will come up with next. Good work!

Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #39 - Posted 2005-12-05 19:40:51 »

ah.. mac..

it gets worse...

I just fired it up on my powerbook - with a USB 3 button mouse.  It is unplayably slow.  The levels time out well before it is possible to complete because everything is moving so slowly.

What image format are you using?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline tom
« Reply #40 - Posted 2005-12-05 19:42:35 »

Defenetly needs a reset button. Ran out of gold on level 6. Some workers are stuck in the gold pyramid. So all I can do is wait 30 min so that I can start over. A pause button would also be nice.

Fantastic game. My favorite so far.

Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #41 - Posted 2005-12-05 19:45:17 »

Just to give an idea of how slow this runs on my Mac..  On level one I had a very basic 'V' shape to get to the goldso it was a straight walk in and out.  I had the tunnel drawn before any miners got near it and they went straight to business.  I managed to get a score of 4 before it timed out.  Shocked Sad

Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #42 - Posted 2005-12-05 20:41:56 »

1  
2  
3  
        BufferedImage img = new BufferedImage(640, 480, BufferedImage.TYPE_INT_RGB);
        Graphics gr2 = img.getGraphics();
        int[] pixels = ((DataBufferInt)img.getRaster().getDataBuffer()).getData();


Runs insane-o fast for me.

Play Minecraft!
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #43 - Posted 2005-12-05 21:04:56 »

I use getRaster too.  However I found that all awt operations with the BufferedImage as the destination go really really slow on OS X (I think it keeps doing format conversions on the whole image), so look out for any of those.

Time flies like a bird. Fruit flies like a banana.
Offline Rick

Junior Member


Projects: 1


Java games rock!


« Reply #44 - Posted 2005-12-05 21:24:28 »

Try using

            g.getDeviceConfiguration().createCompatibleImage(...);

to create the bufferedImage It takes a few more bytes but for me in doubled my frame rate.
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #45 - Posted 2005-12-05 22:59:13 »

New version!

* Control + left mouse button acts as right mouse button
* Stopped drawing to the raster, had to add double buffering (ate a lot of bytes, but might be faster on mac now.. let me know)
* Added another level after the last one as a "reward". It's twice as deep as the biggest level so far, and is meant as a sandbox playaround level
* Pressing "k" will kill all le^H^Hminers so you can restart the current level
* Exactly 4096 bytes!

Play Minecraft!
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #46 - Posted 2005-12-07 06:07:48 »

1  
2  
3  
        BufferedImage img = new BufferedImage(640, 480, BufferedImage.TYPE_INT_RGB);
        Graphics gr2 = img.getGraphics();
        int[] pixels = ((DataBufferInt)img.getRaster().getDataBuffer()).getData();


Runs insane-o fast for me.

It is much faster now on Mac, but still seems harder than when I play on Windows.

btw, I think Mac prefers TYPE_INT_ARGB_PRE


Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #47 - Posted 2005-12-07 11:26:24 »

I really should work in some kind of proper timing instead of just a Thread.sleep(10)

Play Minecraft!
Offline jojoh

JGO Knight


Medals: 5
Projects: 7


games4j.com


« Reply #48 - Posted 2005-12-07 12:31:49 »

I am sure you must be really tired of hearing this, but: Great Game!!!

It feels really complete. Feels quite nice to controll hords of "le^H^Hminers" Smiley I noticed that it is quite important to have a good mouse to play this. I had pluged in my USB mouse via a converter to the ps2 port a while ago because I had run out of usb ports. Don't know if it was the mouse or the plug, but it made the game completley impossible to handle. Plugged in another mouse to a USB port and made it much better. I think it would be a nice feature to be able to alt-mouseclick to something to smoothe the surface/make it straight.

Miners count is slightly hidden by the frame on my webstart window (anything possibly above it completly hidden). Maybe just move down the info text a few pixels.

Best gameplay so far!

Offline Anon666

Junior Member




aka Abuse/AbU5e/TehJumpingJawa


« Reply #49 - Posted 2005-12-07 12:50:06 »

I really should work in some kind of proper timing instead of just a Thread.sleep(10)

yeah, the speed makes it bloody hard on my home PC &_&
Offline hvor2

Junior Member




Beyond mind, there is an awareness...


« Reply #50 - Posted 2005-12-08 16:33:07 »

Hmm.. now game is almost unplayable... After lets say 1 min of playing miners started to move approx. 3 - 5 times slower (and time remaining to complete level pass at same rate). Then, 1 min later, they regain original speed, but only for few secs, and so on... I simply can beat the level with SLOW miners  Cry

Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #51 - Posted 2005-12-08 17:14:06 »

er.. ok..

Play Minecraft!
Offline hvor2

Junior Member




Beyond mind, there is an awareness...


« Reply #52 - Posted 2005-12-09 13:43:15 »

Markus, i am not complining on how bad gamer i am... I really think that there is bug of some soft. These miners have never had slowdowns before (2-3 days before).
Or they are supposed to change their running speed (to crawling  Undecided)?

Offline hvor2

Junior Member




Beyond mind, there is an awareness...


« Reply #53 - Posted 2005-12-09 14:09:30 »

Either you changed something or it was false alarm... Now things look as they should and i filnally passed lvl 3 Angry

Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #54 - Posted 2005-12-09 21:02:35 »

I'm working on a version with fixed speed (I have no idea why I didn't do that from the start..). Should be done tomorrow.

Play Minecraft!
Offline Serph

Junior Newbie





« Reply #55 - Posted 2005-12-13 22:30:45 »

Well I won Cheesy

http://img199.imageshack.us/img199/194/screenshot0105na.jpg

On level 7 can't win Sad because of this problem

http://img199.imageshack.us/img199/9806/screenshot0113pk.jpg
(The problem is I can't mine deeper)

Notch please allow us to miner deeper so I can stop suiciding my miners in boredom Smiley

I noticed once you have several thousand gold, your pile of gold goes past the concrete floor. Making it difficult to get back up.

 Its pretty hard to play with a touchpad on a laptop. Could you make it a bit more user friendly for us laptop users in 4k?

Finally please can we have a nicotine free version? I've been wearing the patch trying to quit  (too addictive) Or you could fullfil our cravings by making the levels endless and harder each time? As each new level I need an increased difficulty to satisfy my cravings.
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #56 - Posted 2005-12-14 11:09:42 »

I noticed that bug myself.. sloppy coding, I'm afraid.

I haven't had time to work down the latest version under 4kb, and I'm going on a two week vacation after today

Play Minecraft!
Offline nva225

Junior Member





« Reply #57 - Posted 2005-12-15 07:25:29 »

Wow, this game is really cool; I would have no idea even how to begin making this (well maybe beginning, but not far past that) under the 4k limit. It's a unique game too, and with simple, fun controls.

But as much as I hate to say it, there are speed problems. On an 850 mhz computer I can just barely beat level one (last time I had 1 second left), but if I go over to my 2 ghz computer I can win with 30-40 seconds left easily. It's a significant difference.

There's two options I can think to work around this:
1. Separate processing and graphics - I'm assuming the graphics are holding it back because it's pure Java2D. The framerate would be lower in some cases but it would be more playable. Also, are you using BufferStrategy? From what I saw of your code it didn't look like it, though that method has always worked well for me.
2. Slow the game clock down. If you need to, approximate the timer to seconds during a "normal" computer speed, and work based on that. Every tick of the clock should be when a frame updates, that way you'll know an exact number of frames will have passed over the course of the level, and everyone will have had effectually the same time.
Offline Malohkan

Senior Member




while (true) System.out.println("WOO!!!!");


« Reply #58 - Posted 2005-12-17 20:45:37 »

Wow I have just spent a LOT of time playing this game Smiley

Levels 1-3 were very very good.  I really felt like I was learning strategy and skill for the game.  Then I got to the level with slime, and I tried the idea of sending 1-3 guys in to suicide near the start and take out nearby slime balls, and then I just essentially made a bigger and bigger U shape to get to all the gold.  In the previous levels I made tunnels and worked out strategy to convince my guys when to go down and went to go up.  In this level I just made a big U and tried to go as fast as I could since I had sooo many guys.  I was racing against the clock essentially to keep up with the rising slime.  So I beat that level and felt lucky and also felt like I didn't use as much skill.

I can't remember if the slime level is 3 or 4... but when I got to 6 and it said I wouldn't beat it.. yeah... it was right Smiley  I just could move fast enough really.  Wow, fun stuff.

I didn't experience any fluctuations in speed, it was all very constant for me with no spikes surprisingly.  In the first few levels I could manage to keep up and with enough tries beat the levels, however past that there was just too much motion too fast to organize.  I think making the whole game just a LITTLE bit slower would be nice.  Or a button to change the speed even.

All in all, great game!  Amazing for 4k for sure.  Good job Smiley

Dec 18  12:02am
EDIT:  I keep playing the first few levels over and over Smiley  I get to the level with slime and close the game.  Dead miners make me sad so I don't want to deal with the slime haha.

Dec 18  11:33pm
EDIT 2:  I think I have an idea that I would enjoy!  Perhaps instead of explode on slime, you could make it impassable and instead you have to take rock to the slime and deposit it to build a wall around it to contain it?  Or perhaps exclude the rock part but every time a miner runs into slime, he changes one pixel of it to metal and turns around like he hit a wall... or just like it works with gold deposits, but instead of taking a pixel you simply "change" a pixel.  That way you'd have to get a lot of miners on slime to stop it from spreading and keep it from covering up more gold and getting more in the way.  I think that could be doable.  The general code I have in my head suggests that you could take the bytes you have for the exploding on slime action and code in the "deposit metal" action instead.  Hopefully that wouldn't take too much space.  Either way of course you don't actually have to do this, but I much prefer "handling" the slime to killing poor little miners Tongue

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
Offline [ERROR]

Senior Newbie


Projects: 1



« Reply #59 - Posted 2005-12-20 12:52:21 »

this game rox.  cool game play
Pages: 1 [2] 3
  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 (9 views)
2014-07-10 20:20:18

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

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

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

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

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

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

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

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

theagentd (53 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!