Original Post

Hey this is my first attempt at peeking and poking around with coding for the virtual boy. Simple demo which renders a running sprite of Chrono from Chrono Trigger. Allows him to face in all four directions with animations for each direction and actually mimics pretty well his running behavior from the original. Special thanks to Grim for creating the awesome sprite set i used and all the others he has created over on the sprite database ( http://sdb.drshnaps.com/SpritesSNES.htm ) and to RPack and DogP for the many questions they have answered and problems they have helped me address. Anyway without further aiedu here is Chrono Trigger Run Demo for the Virtual Boy.

Attachments:
9 Replies

Woot! I’m the first to download, and first to post! πŸ˜›

But, seriously, good job, MrSparkle!

Keep us updated!

Wow that is real cool great work keep us updated!

Nice job… it’s great to see you’re getting the hang of it.

DogP

Looks good πŸ™‚ So I’m guessing this was just an exercise to get you used to drawing animating sprites and isn’t a hint that maybe you’ll port Chrono Trigger to VB? Just kidding πŸ˜›

Ive been playing around with this a little bit more and actually came up with a slightly revised version later the night of the first which ill post now. Adds in idle animations so our hero isn’t always forced to run in place after all with all that time traveling and stuff he must be pretty tired as it is. Other than this I’ve been converting various CT backgrounds and trying to create a decent way to a) tile much larger than 512×512 areas together into something that smoothly scrolls and b) come up with some kind of background array to set terrain as passable or impassable which is proving to be a little tricky given the fact that the game seemingly runs on very small tiles. Think i might move to something a little easier to start like legend of Zelda (but not legend of Zelda don’t want to steal any ones project ;). Anyway here is Chrono Trigger Run Demo 2 (which implements none of the things i was talking about).

Attachments:

Hey decided to throw the source up for a few reasons:

a) there isn’t too much vb source out there it would seem so i figure every bit helps for someone starting out looking to pour through some stuff

b) so you can criticize my vb programming techniques

c) so you can criticize my general c programming techniques

so here it is guys take a look let me know if you want the source bitmaps i used to generate the graphical data or anything else.

Attachments:

Thanks, Mr. Sparkle!

I was going to suggest you release it for just that reason (the first one ;-)).

I’ll take a look and maybe address those other two reasons πŸ˜‰ (Don’t worry, I don’t have much room to make fun of others’ coding practices; VB or otherwise…)

P.S. πŸ˜‰

Thank you very much for putting up the source code for your demonstration. The style is good and gives me ideas about where it could be taken.

One thing I would like to ask about is the size of the sprite, is that the actual size of what it was on the SNES or a reduced resolution made to make some things easier? My poor eyesight cannot even make Chrono out on the screen.

As far as your C coding style, I’d like to give a few tips. First this depends wholly on how you approached the program, if you decided just to do it quick and dirty because it’s a simple demo, then my tips may not apply too much.

The first thing I noticed is that you have a very large main() function, you may want to break up the operations into discreet functions that can be re-used as needed. This helps from a readability standpoint as well as or identifying and fixing problems. It is difficult to fix a problem if you have identical code in multiple places.

Secondly, you may wish to consider using fewer multiplies if you can avoid them. Replace them with bit shifts (if multiplying or dividing by a power of two) or by adding to an accumulator with each loop iteration. The Virtual Boy is a low power device. Multiply instructions are extremely expensive when compared with addition, so if you can get away with an add instead, do it.

  • This reply was modified 15 years, 9 months ago by vbman.
  • This reply was modified 15 years, 9 months ago by vbman.
  • This reply was modified 15 years, 9 months ago by vbman.
  • This reply was modified 15 years, 9 months ago by vbman.

Nice job!

 

Write a reply

You must be logged in to reply to this topic.