Jump to content



1

Second to last Super Mario update


14 replies to this topic

#1 jbs30000 OFFLINE  

jbs30000

    Moonsweeper

  • 459 posts

Posted Sun Mar 6, 2011 6:54 PM

OK, after struggling to rewrite my game with decent code, descriptive variables, and adding a bunch of things I left out of my first game, I am now finally at the point when I decided to rewrite the game. (Hope you understood all that).

The game is written under the standard kernel and not the DPC+ kernel.

Here's some improvements from when I wrote the game the first time.
  • Landing on a Goomba or turtle will make Mario bounce, just like in the official games.
  • Landing on the turtle will flip him on his back and he won't move.
  • Landing on the turtle again will flip him back and his feet and he'll walk away.
    • Unfortunately you can't push the turtle and make him slide into and kill Goombas.
  • When Mario dies it's the way he dies in the arcade and NES games (minus the music).

There are some glitches with the collision routine. Sometimes Mario will kill a goomba simply by walking into it and other time he'll land on a Goomba and it walks away unharmed.

Here's what I still need to add.
  • Jumping into a power-up brick and causing a mushroom, fire plant, star, or coin to pop out (I have a plan on how to do that).
  • Large Mario jumping into and empty brick and destroying it.
  • Causing Mario to lower the flag and walk into the castle when he reaches the end of the game.
  • One or two other things I'm forgetting right now.

OK, now that the code is decent I'll post the project (I'm using Visual bB) for anybody who is interested. If you have any suggestions on how to improve the code, or wonder how or why I did something I'm happy to listen to you or give you whatever information that you want.

Oh, and PAC-MAN-RED, I hope you like the sprites. If not, tell me what you think would improve them, and I'll try it out.
Edit: I forgot to add the files. Here we go
Attached File  Main.bas.bin   32K   137 downloads
Attached File  Super Mario 2.zip   276.22K   118 downloads

Edited by jbs30000, Sun Mar 6, 2011 6:55 PM.


#2 Linndrum OFFLINE  

Linndrum

    Combat Commando

  • 6 posts
  • Location:Eaton, OH

Posted Mon Mar 7, 2011 8:46 AM

That's awesome, nice work!

#3 jbs30000 OFFLINE  

jbs30000

    Moonsweeper

  • 459 posts

Posted Mon Mar 7, 2011 12:35 PM

Thank you.

I forgot to mention that when falling you'll occasionally see a bar under Mario's feet. That's the ball (I can't use Missile 1 or 2 since I'm using player1colors and no_blank_lines). It looks a little annoying at times, but it helps make sure that Mario lands on pipes, bricks, or the ground properly.

Also, I need to make a routine to make the ball a "fire ball" that Fire Mario can shoot.

#4 theloon OFFLINE  

theloon

    Stargunner

  • 1,015 posts

Posted Mon Mar 7, 2011 1:35 PM

Glad you didn't give up on this!

When using Stella the whole screen blanks (for a split second) when the next tile gets loaded from the right side of the screen.

#5 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 20,922 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Mon Mar 7, 2011 6:31 PM

Have you tried the new version of bB with 10 multicolored sprites yet?

#6 jbs30000 OFFLINE  

jbs30000

    Moonsweeper

  • 459 posts

Posted Mon Mar 7, 2011 8:02 PM

View PostRandom Terrain, on Mon Mar 7, 2011 6:31 PM, said:

Have you tried the new version of bB with 10 multicolored sprites yet?
No. Future games I make will use the new bB, but I'm completing the game on the current version.

I think I said this before, but from time to time I get errors or problems that nobody else gets. I want to wait until all of the bugs are worked out of the new version before I use it. I don't want to annoy people by posting a lot of problems and asking, "Is it just me or is it a bB bug?".

#7 PAC-MAN-RED OFFLINE  

PAC-MAN-RED

    Moonsweeper

  • 304 posts

Posted Tue Mar 8, 2011 1:22 PM

Dude! This is good stuff. :) I know I'd be lost trying to program code to do what you've done. :thumbsup:

I only had a quick play of it as I'm at work, so not much time to check out Mario's sprite action. :P After work today I'll have more time. :)

Illya

PS - Keep up the good work!

#8 PAC-MAN-RED OFFLINE  

PAC-MAN-RED

    Moonsweeper

  • 304 posts

Posted Wed Mar 9, 2011 9:53 PM

Sorry I'm a day late, but it was a longer day than usual yesterday. :P I noticed that the walk cycle for the small Mario uses the Still frame plus two other Mario walking frames. I'm not sure if you had intended the Still frame to be in there, but it kinda sticks out like a sore thumb, or should I say, chin. :P In the Still frame Mario's chin is not as long, but in the other two frames, his chin is longer. That's my only point of contention. :) Good work. :thumbsup:

Illya

#9 jbs30000 OFFLINE  

jbs30000

    Moonsweeper

  • 459 posts

Posted Thu Mar 10, 2011 1:48 AM

View PostPAC-MAN-RED, on Wed Mar 9, 2011 9:53 PM, said:

Sorry I'm a day late, but it was a longer day than usual yesterday. :P I noticed that the walk cycle for the small Mario uses the Still frame plus two other Mario walking frames. I'm not sure if you had intended the Still frame to be in there, but it kinda sticks out like a sore thumb, or should I say, chin. :P In the Still frame Mario's chin is not as long, but in the other two frames, his chin is longer. That's my only point of contention. :) Good work. :thumbsup:

Illya
I did it on purpose. I didn't notice Mario's chin. It should be the same on all of them. I'll check that out. Thank you.

#10 jbs30000 OFFLINE  

jbs30000

    Moonsweeper

  • 459 posts

Posted Sun Mar 13, 2011 1:30 AM

Dang it. The collision code was only written for Mario touching an enemy. There are only ever two enemies on screen, Enemy 1 and Enemy 2. Enemy 1 can also be a power-up item: mushroom, fire plant, star, or coin; So I rewrote the collision code to take the appropriate action if Mario hits a power-up item. The only problem now is that if Enemy 1 is a Goomba, if it hits Mario he becomes large, as if Enemy 1 was a mushroom.

I made a couple of minor tweaks to make sure that what kind of enemy or power-up item Enemy 1 is, is done correctly, but I still have the error. This sucks.

#11 jbs30000 OFFLINE  

jbs30000

    Moonsweeper

  • 459 posts

Posted Sat Apr 16, 2011 3:06 PM

A month ago I started a new job. That, and a few other things that have happened, along with the problems in my program have made me lose my interest in continuing this program.

I wasn't planning on it, but I might just wait until an official version of the DPC+ version bB comes out. It should make programming easier for me, and I think I'll be able to avoid two problems that I seem to be having with the current standard version of bB.

#12 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 20,922 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Sat Apr 16, 2011 4:07 PM

View Postjbs30000, on Sat Apr 16, 2011 3:06 PM, said:

I wasn't planning on it, but I might just wait until an official version of the DPC+ version bB comes out. It should make programming easier for me, and I think I'll be able to avoid two problems that I seem to be having with the current standard version of bB.
Can't wait for that official version. Imagine all the stuff we'll be able to do with 10 multicolored single-height sprites and a more detailed playfield. Fun, fun, fun.

#13 jbs30000 OFFLINE  

jbs30000

    Moonsweeper

  • 459 posts

Posted Sat Apr 16, 2011 6:16 PM

It will be nice having multiple sprites built in to the kernel but not having to use a mirrored playfield to do so.

#14 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 20,922 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Sat Apr 16, 2011 6:33 PM

View Postjbs30000, on Sat Apr 16, 2011 6:16 PM, said:

It will be nice having multiple sprites built in to the kernel but not having to use a mirrored playfield to do so.
Yeah, that's one of the best things about it. I should have said "a more detailed asymmetric playfield."


 

Edited by Random Terrain, Sat Apr 16, 2011 6:35 PM.


#15 Nateo OFFLINE  

Nateo

    Dragonstomper

  • 833 posts
  • Location:Rochester, NY

Posted Mon Jul 18, 2011 7:01 AM

Just saw this again while doing some digging to check out some neat old demos. Is this still on your radar?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users