Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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  
  Goomba4K  (Read 11199 times)
0 Members and 1 Guest are viewing this topic.
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #30 - Posted 2006-01-30 19:47:50 »

4 goombas are enough. Easily Cheesy

Offline woogley
« Reply #31 - Posted 2006-01-30 19:49:29 »

what would REALLY be a challenge is when they get that low, maybe have all but one goomba suddenly have a spiked helmet on Wink

(kidding, of course)

edit: I've actually been trying to come up with another obstacle besides the bullets because so many people just assume you can jump on the bullets. maybe lakitu throwing spikey balls?! Cheesy
Offline DonaldEKnuth

Junior Duke





« Reply #32 - Posted 2006-01-30 19:56:46 »

Quote
edit: I've actually been trying to come up with another obstacle besides the bullets because so many people just assume you can jump on the bullets. maybe lakitu throwing spikey balls?! Cheesy
I miss Luigi! He is an evil obstacle you know! Wink

This would also be cool: A Goomba turns red (flashes) for 1 second and then jumps up trying to hit Mario (who dies if he succeeds). He turns back into a normal Goomba as soon as he lands again after his attack leap. Smiley

My 4k 2006 Entry: Sokoban4k
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline woogley
« Reply #33 - Posted 2006-01-30 20:35:59 »

yeah I know I'd love to get luigi in there, but I havent gathered enough bytes to add another sprite to the list, unless I can some how change the hue values of the mario sprite at runtime ... =o!
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #34 - Posted 2006-01-30 21:13:38 »

if u do find a way to change the hue values why not just add a purple and yellow one too  Grin (wario and walugi)
Offline woogley
« Reply #35 - Posted 2006-01-30 21:15:01 »

lol
Offline Laundon

Junior Newbie





« Reply #36 - Posted 2006-01-30 22:22:43 »

Have you looked into the bug when you "fall through" some goombas (2-3 on the same place, quite rare)?
Offline woogley
« Reply #37 - Posted 2006-01-30 22:56:55 »

havent encountered the error. it's real basic collision detection (rectangle.intersects(marioRectangle). my only guess that maybe the gravity is pulling so fast that the difference between mario's last point on the screen is larger than the goomba's height (so it never collides). will investigate further Tongue
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #38 - Posted 2006-01-30 23:04:23 »

That could be right... anyway, the "falling through" bug seems to occur when falling from high above and onto at least two goombas, I've never encountered it with only one goomba near mario. The other bug seems (but may not be) to be an entirely different and separate one (that is, the one where one goomba intersects you from the side exactly when you land on another goomba).

Oh, by the way, this game gave me inspiration for another game (very similar, only multiplayer and with some slight differences, that I won't bother you with right now). I might try out making it, and then I'll show it to you. Unless you think them too similar I might even submit it to the contest, but of that I am not sure Smiley

Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #39 - Posted 2006-01-30 23:14:10 »

Oh, by the way, this game gave me inspiration for another game (very similar, only multiplayer and with some slight differences, that I won't bother you with right now). I might try out making it, and then I'll show it to you. Unless you think them too similar I might even submit it to the contest, but of that I am not sure Smiley

Are you going to do the original Mario Bros? (You know, the one before Super Mario Bros, that was later included as the challenge stage in SMB:3?)

Java Game Console Project
Last Journal Entry: 12/17/04
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #40 - Posted 2006-01-31 10:15:02 »

No, but that one's fun too... been a long time since I played it though. Cheesy
Might try that as well, if you're not doing it :>

Offline Malohkan

Senior Duke




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


« Reply #41 - Posted 2006-02-01 02:29:36 »

My suggestion if that bug DOES turn out to be a matter of mario falling down fast and the goomba moving up fast, then simply run the logic code twice at half the speed Smiley  I'm sure frame rate isn't an issue here so you could effectively double your accuracy without changing the game speed.  Or you could triple it or quadruple it... whatever you find best Smiley  That way you don't need any crazy code for advanced collision detection/handling.

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #42 - Posted 2006-02-01 02:42:18 »

A better idea is to simply add a terminal velocity. All the Mario Bros. games had  a terminal velocity. Which was a good thing, because otherwise you would have hit the ground like a screaming meteorite.

Java Game Console Project
Last Journal Entry: 12/17/04
Offline woogley
« Reply #43 - Posted 2006-02-01 02:47:49 »

terminal meaning like maximum velocity? this could work if I cap it at 30pixels a frame.. it would never go through a goomba this way .. unless, of course, the goomba is bouncing UP towards you ;P
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #44 - Posted 2006-02-01 03:26:59 »

terminal meaning like maximum velocity?

Correct. Terminal Velocity is the speed at which air resistence overcomes your acceleration due to gravity. For human beings skydiving, this is about 200 MPH.  (That's about 321 kph for you limeys.) In video games it can be whatever feels about right. Smiley

Java Game Console Project
Last Journal Entry: 12/17/04
Offline Malohkan

Senior Duke




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


« Reply #45 - Posted 2006-02-01 04:41:53 »

OK I have confirmed there's definitely a collision detection bug somewhere, aside from the one where if you fall just way too fast you go through them.

I was playing earlier and after a single bounce, regular height, I came down on top of a goomba and lost.  I ignored it at first figuring something rational must have happened.

Then it happened again, and this time I was CONFIDENT I really hit the goomba because he wasn't going that fast and I didn't come from very high.

Then a 3rd time, there was a pile of honestly 3 goombas, and this was after a single bounce so I was coming from the default lowest height and I landed square in the middle of this pile of 3, and I lost.  No way was I off on that one.  I might believe I messed up on the first couple times, but that one I know I really hit.

Aside from that, 29 is my best score Smiley

Oh and to help fix the terminal velocity bug:  If you keep Mario's height above like >= 0, and you find that when he's hit 0, you check for collisions.  If he's hitting a Goomba, set him back up.  If he genuinely hit the ground, then continue on to the Game Over screen.  I imagine the bug is occuring because you allow Mario to get somewhere at like a height less than -spriteImage.getHeight() Smiley  Meaning the rectangle check will fail because you fell too far below too fast.  If you add:
if (sprite[0].height < 0)
   sprite[0].height = 0;
before you check for those collisions and end game logic I think you could solve most of these problems.

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
Offline woogley
« Reply #46 - Posted 2006-02-01 05:43:47 »

I still can't produce any of the errors any of you are getting, I'm actually not convinced I even need to implement terminal velocity.

there is one way to make sure. can you reproduce any of the errors on this Test jar? (may be CPU intensive) - http://javaunlimited.net/goomba4k/Test.jar

that is the very same game (no modifications) except that there are 500 goombas rather than 15. you pretty much can't even hit the ground if you wanted to. see if you can reproduce the errors with that.. I got mario way above the screen and I still landed on a goomba successfully
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #47 - Posted 2006-02-01 06:08:05 »

Couldnt reproduce the glitch it it that version. Btw it runs with about the same speed as the first verions Smiley

Whats nice is that you can bounce of the walls, which effectively means that you can quickly change the direction. Havent noticed that before.

弾幕 ☆ @mahonnaiseblog
Offline Morre

JGO Knight


Medals: 2
Projects: 10


I'm Dragonene on IRC.


« Reply #48 - Posted 2006-02-01 18:11:51 »

Woogley, you have a PM in your inbox. Smiley

Offline Malohkan

Senior Duke




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


« Reply #49 - Posted 2006-02-01 18:35:49 »

I played your test jar.  I died with a score of 13.  There was certainly no empty space to fall through... let me try again...

Yup died at 12 this time, right smack in the middle of the screen.  Trying again...

3rd try didn't happen, got up to 180 and suicided...

Nope, can't make it do it again.  Hmm!  Interesting results.  It certainly happened at least twice, and not at the edge so no issue of missles hitting me.

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
Offline DonaldEKnuth

Junior Duke





« Reply #50 - Posted 2006-02-01 18:37:04 »

Quote
see if you can reproduce the errors with that..
I could reproduce them, I got the score 8 on my first run. I left Mario bunching up and down on the spot, not a single left/right key press. And there were Goombas convering the entire ground so he shouldn't have slipped through.

My 4k 2006 Entry: Sokoban4k
Offline woogley
« Reply #51 - Posted 2006-02-02 20:15:43 »

okay, I need your help figuring out what bug this is, because I cant reproduce it. there is now an 'autopsy' version of the Test.jar that tells you how mario died rather than what your score is. this should help me figure out where the bug is. give it a try! http://javaunlimited.net/goomba4k/Autopsy.jar

also, a new key is enabled: enter. this performs a VERY high jump just to prove that terminal velocity isnt needed (you couldnt bounce on goombas enough to get as high as pressing that enter key). you can only press the key when mario is falling down (you  cant press it if his veritcal direction is already upwards)

so reproduce the bugs and tell me what the cause of death is! Cheesy

thanks for any help Smiley
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #52 - Posted 2006-02-02 20:24:03 »

I just reproduced the problem. Cause of death was "Crashed into ground". What I did was hold down the Enter key for about 2.5 seconds. Then I let go and crashed into the ground. It may take one or two attempts, but it is easy to reproduce.

Windows XP Pro
Pentium 4 Hyperthreaded 3GHz
1GB of Memory

Java Game Console Project
Last Journal Entry: 12/17/04
Offline woogley
« Reply #53 - Posted 2006-02-02 20:29:03 »

holding down the enter key isnt a bug, you can *never* get that high under normal circumstances Wink. If you tap the enter key he goes WAY above the window and crashes down without death

the bug Im looking for is the random death when you're around a group of goombas (I think Malokhan was the one who had that)
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #54 - Posted 2006-02-02 20:51:18 »

Well, just print the maximum velocity value somewhere. If its bigger than the height of both boxes together, you can warp through. (Alternatively you could just do the math.)

弾幕 ☆ @mahonnaiseblog
Offline woogley
« Reply #55 - Posted 2006-02-02 20:53:25 »

thats fine but that isnt really the 'bug' im worried about, malokhan and a few others were dieing randomly at like 3 or 4 points at normal jump heights. Im trying to figure out if there's some bullet that's not being drawn or.. something
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #56 - Posted 2006-02-02 20:54:37 »

Ah, sorry. Well, there is something wrong with the collision detection. I wasn't very high at all (just a normal jump, not even a hit off a mid-air goomba) and I managed to die. Cause of death was "Crashed into the ground". I haven't been able to reproduce it yet, but I was jumping toward the left and landed about 1/3 into the playing field.

It would probably help if your diagnostic versions just froze the game rather than switching to the death text. That way we could take screenshots and figure out what's going on.

Java Game Console Project
Last Journal Entry: 12/17/04
Offline woogley
« Reply #57 - Posted 2006-02-02 21:06:46 »

good idea, screen now freezes (clouds dont freeze but hey whatever).

also mario's velocity is printed just for kicks and giggles Smiley

edit: the link again: http://javaunlimited.net/goomba4k/Autopsy.jar
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #58 - Posted 2006-02-02 21:21:11 »

http://kaioa.com/k/goomba.png

*shrug*

弾幕 ☆ @mahonnaiseblog
Offline woogley
« Reply #59 - Posted 2006-02-02 22:03:02 »

I know what it is, and why it appears to only happen when you're in a "group of goombas"

try to follow this. during the collision detection, when mario intersects with *anything* no matter what the outcome, the collision loop breaks (allowing only one collision per update). also, you only bounce off of a goomba when your feet are at least half way higher than the goomba. so, if you're falling with a goomba thats falling (but is too far above you for you to bounce), then thats a collision with no results - but it still counts as a collision. so, if that falling goomba is checked before the ground goombas (which depends on the position in the array), then the goombas on the ground *never* get checked for collision, so he just falls right to the ground Smiley

yes, I figured that much out from oNyx's screenshot.

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.

Longarmx (39 views)
2014-10-17 03:59:02

Norakomi (29 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (28 views)
2014-10-15 16:18:58

TehJavaDev (57 views)
2014-10-14 00:39:48

TehJavaDev (57 views)
2014-10-14 00:35:47

TehJavaDev (48 views)
2014-10-14 00:32:37

BurntPizza (64 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (78 views)
2014-10-11 22:30:10
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!