Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (604)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (654)
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]
  ignore  |  Print  
  [done!] MEG4kMAN, Mega Man in 4kb  (Read 20684 times)
0 Members and 1 Guest are viewing this topic.
Offline irreversible_kev

Junior Devvie

« Reply #30 - Posted 2009-01-28 11:59:05 »

...then shoot my way through the last screen...

shoot? OH YEAH. lol I didn't even know there was a shoot button. I didn't kill anything in that run.

Rare crash?
Exception in thread "Thread-12" java.lang.NullPointerException
   at sun.java2d.SunGraphics2D.validateColor(Unknown Source)
   at sun.java2d.SunGraphics2D.<init>(Unknown Source)
   at sun.awt.image.SunVolatileImage.createGraphics(Unknown Source)
   at Source)
Exception in thread "Thread-18" java.lang.StringIndexOutOfBoundsException: String index out of range: 108
   at java.lang.String.charAt(Unknown Source)
   at Source)
   at Source)
Offline Abuse

JGO Knight

Medals: 28

falling into the abyss of reality

« Reply #31 - Posted 2009-01-28 18:20:54 »

The first time I played through it also broke for me; though it didn't crash, and no exceptions were reported.  Huh
The game continued to run, but only a portion of the Applet area was being updated (bottom right corner), as if all of the rendering operations were being translated down & to the right.
Refreshing the page fixed the problem.
My money is on it being an internal Java2D bug - will screenshot it if it happens again.

This was running on my Acer Netbook.

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here!
Offline pjt33

« JGO Spiffy Duke »

Medals: 40
Projects: 4
Exp: 7 years

« Reply #32 - Posted 2009-01-29 00:30:04 »

Are any of those monsters actually vulnerable to being shot?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Markus_Persson

JGO Wizard

Medals: 16
Projects: 19

Mojang Specifications

« Reply #33 - Posted 2009-01-29 08:13:05 »

Oh yes. Shoot them while they're moving or preparing to shoot. They take three hits.
The fast ground sliders can't be killed, though. (In the original, you could stop them temporarily by shooting them, but I didn't include that)

That crash MIGHT be if you manage to shoot while getting hurt by an enemy. I'll investigate.

It might be a bug caused by me never releasing the Graphics object from the Applet.

Real code should be something like:

while (true) {
    Graphics g = getGraphics();

But I do:

Graphics g = getGraphics();
while (true) {

Putting the getGraphics inside the loop might help if that really is the problem, but iirc, that could use up system resources faster than it could be garbage collected if the loop is tight.

Play Minecraft!
Offline Markus_Persson

JGO Wizard

Medals: 16
Projects: 19

Mojang Specifications

« Reply #34 - Posted 2009-02-15 14:58:47 »

There's a new version up now, with the following fixes:

* Fixed the clock. It now works properly instead of resetting when you die.
* The clock is shown all the time now instead of just on the final screen.
* Tweaked a few game screens.
* Added a spike to the last screen. Touching it resets the game.
* Fixed the crash bug when shooting while getting hurt.

Play Minecraft!
Offline h3ckboy

JGO Coder

Medals: 5

« Reply #35 - Posted 2009-02-15 15:04:02 »

no one has posted here for a while. it is good to see that you still continue the game. Smiley

keep up the good work.
Offline zeroone
« Reply #36 - Posted 2009-03-15 16:51:24 »

There’s an impressively large amount of (Nintendo copyrighted  Grin ) graphics in this game.  I like how even the time is displayed using sprites instead of a font.  How did you compress the screens?  Are you allowed to shoot through walls in the actual Mega Man games?  Sprite movement is not that fluid.  Is the screen actually made up of 8x8 pixel blocks almost like ASCII graphics?  This game is really difficult to play.  It’s a very impressive 4K feat (excellent coding), but due to the difficulty, not all that fun.
Offline Markus_Persson

JGO Wizard

Medals: 16
Projects: 19

Mojang Specifications

« Reply #37 - Posted 2009-03-31 12:17:37 »

Cool, there's now a speedrun of it on youtube!

zeroone: I missed your post earlier, so I'll reply now.

The screens are just a big String with different letters for each tile type. This compresses really really well, and with increasing gain the more levels I added.
At first I thought I'd only be able to have 10-15 screens, but at the end I got up to 25 with no trouble at all. I could've made 30 with some effort.

Movement is in 8 pixel chunks, yes. In retrospect, this was a mistake. It came from me just having played (and beaten!) Duke Nukem 1, the old platformer game. It also restricts movement to 8 pixel chunks. I liked the feel so much, I decided to build a game around it. I started out with DN graphics, but quickly realized it might make an even cooler mega man game.

The game is very difficult, yes. Unforgiving, one could say. I like that. Cheesy

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

SHC (30 views)
2015-08-01 03:58:20

Jesse (20 views)
2015-07-29 04:35:27

Riven (40 views)
2015-07-27 16:38:00

Riven (22 views)
2015-07-27 15:35:20

Riven (25 views)
2015-07-27 12:26:13

Riven (15 views)
2015-07-27 12:23:39

BurntPizza (37 views)
2015-07-25 00:14:37

BurntPizza (46 views)
2015-07-24 22:06:39

BurntPizza (31 views)
2015-07-24 06:06:53

NoxInc (37 views)
2015-07-22 22:16:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 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‑
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!