ZFGC

Projects => Zelda Projects => Topic started by: Koh on November 14, 2012, 10:25:16 pm

Title: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Koh on November 14, 2012, 10:25:16 pm
Just digging this up to post the final update.  Since this is no longer being worked on, in favor of working on my original projects,  in addition to still receiving messages about it, I'm releasing the last, and most up-to-date version of the source code.

The code is well documented such that anyone could peruse through, and understand what each block or line of code does.  Many features were not fully implemented, such as the platforming area (ladders weren't implemented), however this engine could still serve as a starting point for many.  The code presented here is by no means the only or best way to handle things.  In fact, handling the graphics could have been done better, through the use of importing, such that when graphics need to be updated, all that would need to happen is the updating of the graphics files themselves.

Nonetheless, I present to you all the final batch of screenshots, and the final download package.  Good luck to any seeking to create a Zelda Fan Game!

Old Video
http://www.youtube.com/watch?v=FDa7R2BvQd0

Final Screenshots
(http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-0_zpsb49ce607.png) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-4_zps5eb67eba.png) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-2_zps88f864dc.png) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-1_zpsf991fafb.png) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-3_zps8540df87.png) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-5_zpsb898e311.png)

Final Download Package
Comprehensive Game Boy Zelda Engine:  Final Source Package (https://app.box.com/s/n1ko92jx3oqjrnzjl27k)
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Koh on November 15, 2012, 11:06:09 pm
Version 0.0.1.2 Now Live!

=========================================
Version 0.0.1.2 (Nov. 15, 2012)
=========================================
-Fixed corner-cutting for left/right facing directions.
-Added a Slow-Walking Tile parent.
-Defined scrolling transition constants.
-Implemented screen-scrolling room transitions.
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Koh on November 17, 2012, 04:45:50 pm
Version 0.0.1.3 Now Live!

=========================================
Version 0.0.1.3 (Nov. 17, 2012)
=========================================
-Set F2 to restart the game.
-Implemented pushing for Link.  Functions A Link to the Past style, where he has to push for about half a second before he changes his sprites, and actually pushes anything.
-Added Pushable objects, and fully implemented them.



Is anyone finding this useful so far?  Are the comments in the code nice and explanatory?
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: YeahManWAZZAP on November 18, 2012, 02:28:39 pm
I really like this, nice job so far! One thing I noticed is that sometimes, when I'm pushing a block, the animation seems to occur nearly as quickly as I walked into it. However, this may just be because my computer slightly lags/speeds things up sometimes, and Game Maker games seem to do that a lot.
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Koh on November 19, 2012, 03:39:39 am
I really like this, nice job so far! One thing I noticed is that sometimes, when I'm pushing a block, the animation seems to occur nearly as quickly as I walked into it. However, this may just be because my computer slightly lags/speeds things up sometimes, and Game Maker games seem to do that a lot.
Oh that was my mistake; I didn't allow for enough frames for Link's animation to sink in a bit.  I fixed that, but thanks for the feed back.

Build 0.0.1.4 Now Live!

=========================================
Version 0.0.1.4 (Nov. 18, 2012)
=========================================
-Implemented a Circle Transition and defined its constant.
-Implemented a Rectangle Transition and defined its constant.
-Implemented the warping system.
-Added additional maps.
-Defined specific color constants.
-Implemented a basic Shifting HUD.  It'll be at the bottom of the screen naturally, like in Link's Awakening, but if Link gets to the lower half of the screen, it'll scroll down and appear at the top.  This allows for the use of the entire room, instead of cutting out entire row of tiles for the sake of a stationary HUD.
-Setup a few global item and equipment variables needed for the HUD.'
-Added additional testing keys on W, E, A, S, D and F.
-Added low health effects.
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: 4Sword on November 19, 2012, 04:21:15 am
I like how you included the executable in the zip file so that those without the pro version of Game Maker could see what is going on - although I wasn't able to run the executable, my computer is probably just being weird about that. In terms of the source code though, I think you could consider doing some things differently:

- the foot checking for environmental slowdown, you could have an actual tile represent the environmental hazard instead of an object. This might be more practical than doing objects. You could use constants which indicate the left offset of the tile in an environmental tile tilesheet in order to make it just as readable as objects. For example, tile_layer_find(-20,x,y) == tileSlow where the tile layer -20 is checked to see if the tileSlow tile is encountered.

- the direction checking. In addition to using Game Maker's built-in direction variable (might as well since the object is doing to have it regardless), you could simplify Link's direction checking by having the direction only truly updated when Link moves linearly but also corrected when Link moves diagonally. It would simplify a lot of your conditional statements.

That probably seems like nit-picking - I'd comment more on the other stuff if I ever get to try it out later. Otherwise though, there are aspects of this project which look very appealing and I wish you continued luck in moving the project forward.
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Koh on November 19, 2012, 05:02:20 am
I like how you included the executable in the zip file so that those without the pro version of Game Maker could see what is going on - although I wasn't able to run the executable, my computer is probably just being weird about that. In terms of the source code though, I think you could consider doing some things differently:

- the foot checking for environmental slowdown, you could have an actual tile represent the environmental hazard instead of an object. This might be more practical than doing objects. You could use constants which indicate the left offset of the tile in an environmental tile tilesheet in order to make it just as readable as objects. For example, tile_layer_find(-20,x,y) == tileSlow where the tile layer -20 is checked to see if the tileSlow tile is encountered.

- the direction checking. In addition to using Game Maker's built-in direction variable (might as well since the object is doing to have it regardless), you could simplify Link's direction checking by having the direction only truly updated when Link moves linearly but also corrected when Link moves diagonally. It would simplify a lot of your conditional statements.

That probably seems like nit-picking - I'd comment more on the other stuff if I ever get to try it out later. Otherwise though, there are aspects of this project which look very appealing and I wish you continued luck in moving the project forward.
Thanks for the feedback; much appreciated.

There are two specific reasons I didn't use the built in direction variable for Link's directional facing.  One, whenever you use hspeed and vspeed, which I will, changing this changes their orientation.  Secondly, you wouldn't be able to do sprite changing with one line as I did, since you can't just add the character to the sprite string. You'd have to do a switch check or an if-else tree.

As for the tile-checking, I didn't do it that way because nothing is to be consistent.  I could understand if you already have the maps 100% ready and everything ready to go, but if you're constantly updating the tileset and the terrain, this isn't feasible, since you'd have to go back and update all of the scripts dealing with the tiles.
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Koh on November 21, 2012, 03:50:01 am
Build 0.0.1.5 Now Live!

=========================================
Version 0.0.1.5 (Nov. 20, 2012)
=========================================
-Implemented drawing equipped items on the HUD.
-Implemented the base script for using items.
-Implemented the Level-1 Shovel (Normal).
-Implemented the perishable Item system (Rupees, Hearts, etc.).
-Removed Testing Keys A, S, D and F, while adding R, T, and Y.
-Implemented the Level-2 Shovel (Golden).
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Koh on December 02, 2012, 08:12:49 pm
Just a heads up that this is still being worked on.  However, the next update is going to be a large one (though the major version number may still be 0 XD.)

Here's what's done so far:

-Updated the Golden Shovel to dig all 8 tiles (if possible) around Link as well as giving him double spoils.
-Implemented a pausing system.
-Implemented the equipment menu.
-Implemented the chest system.
-Implemented the item holding system.
-Implemented the Level 1-4 Swords (Fighter's, Master, Tempered and Golden).
-Implemented the Sword Beam system.
-Implemented the bush system.
-Implemented the leaf particle system.
-Implemented the random item drop script.
-Implemented the Heart Piece and Heart Container systems.
-Removed all testing keys.

And a few teaser shots:
(http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-21.png) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-22.png) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-23.png) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-24.png)
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Koh on December 06, 2012, 04:17:02 am
How about a little teaser/trailer to show SOME of the things you can expect in the next version?  It's high time I went video mode anyway.

http://www.youtube.com/watch?v=uqfqf4DVQfM
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: RetroRespecter on January 11, 2013, 08:37:36 am
Wow! This project is interesting. I was hoping that somebody other than me was posting to this thread.
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Antidote on January 11, 2013, 09:39:17 am
dlbrooks doesn't know how to make something that isn't quality :O
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Koh on April 21, 2013, 05:31:34 pm
dlbrooks doesn't know how to make something that isn't quality :O
Lol, do you remember my old projects back in 2006/2007?  I don't think that was quality =c.  Of course, I was a pure newbie back then.

This is being picked back up, as I decided I wanted to use this as leverage for more practice in both graphics and code, while I simultaneously work on World of Chaos II.  So, that said, I'll show what I've been doing.

Basically, I'm updating the graphics I currently have in now, as more practice with color making and design.  The base colors are from the original A Link to the Past graphics, while the lightest (also highlights), darkest, inline, and outline colors I have made myself.  For comparison, old on the left, new on the right:

(http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-0-1_zps0c56c5eb.png) (http://s132.photobucket.com/user/dlbrooks34/media/CGBZE-0-1_zps0c56c5eb.png.html) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-27_zps137ee90d.png) (http://s132.photobucket.com/user/dlbrooks34/media/CGBZE-27_zps137ee90d.png.html) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-28_zps4777612d.png) (http://s132.photobucket.com/user/dlbrooks34/media/CGBZE-28_zps4777612d.png.html)
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: RetroRespecter on April 23, 2013, 01:14:25 pm
I think that the name of this thread should be "Enhanced Gameboy Zelda Engine", don't you?
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Koh on May 01, 2013, 12:08:48 pm
I think that the name of this thread should be "Enhanced Gameboy Zelda Engine", don't you?
You are probably right XD.  The only thing that's actually exactly from the original gameboy games is the screen resolution.

I thought I'd go ahead and post what I have done on the upcoming version so far, to keep you guys updated.

=========================================
Upcoming Version 1.0.0.0
=========================================
-Updated the Golden Shovel to dig all 8 tiles (if possible) around Link as well as giving him double spoils.
-Implemented a pausing system.
-Implemented the equipment menu.
-Implemented the chest system.
-Implemented the item holding system.
-Implemented the Level 1-4 Swords (Fighter's, Master, Tempered and Golden).
-Implemented the Sword Beam system.
-Implemented the bush system.
-Implemented the leaf particle system.
-Implemented the random item drop script.
-Implemented the Heart Piece and Heart Container systems.
-Removed all testing keys.
-Implemented Rain and Thunder.
-Updated the rupee system to increase or decrease the counter by higher rates than 1, based on how much the counter is going to be affected.
-Improved the Circle and Rectangle transitions slightly.
-Improved the Scrolling transitions slightly.
-Implemented the Level 1-3 Shields (Figther's, Fireproof, and Mirror).
-Added more maps.
-Implemented Cliff Jumping.
-Implemented the Level 1 Rocs Item (Feather).
-Implemented Fairies.
-Slowed the movement of pushblocks.
-Rewrote Link's movement engine to function as a velocity system.
-Implemented Rolling, using double key tapping for Link.
-Updating prepackaged graphics as practice in that section, as well as giving the engine a better graphical appeal.
-Implemented "big rooms" where the camera has freedom to move around until the "edge" is reached.  Works for any size room, however, it is recommended to have all "connected" rooms the same size, for scrolling transitions to work smoothly.

As well as a couple of teaser shots.  In these shots though, a lot of graphics are still being updated, as you probably guessed.
(http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-30_zps090572c8.png) (http://s132.photobucket.com/user/dlbrooks34/media/CGBZE-30_zps090572c8.png.html) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-31_zpsd72aba1b.png) (http://s132.photobucket.com/user/dlbrooks34/media/CGBZE-31_zpsd72aba1b.png.html) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-32_zps28425ab4.png) (http://s132.photobucket.com/user/dlbrooks34/media/CGBZE-32_zps28425ab4.png.html)
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: RetroRespecter on May 02, 2013, 02:30:21 am
Looks as if you are close to completion with this thing.
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Aero88 on May 03, 2013, 01:56:44 pm
This look very promising.  I really like the art style as well.  Great work! :D
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Koh on May 07, 2013, 06:24:00 pm
Here, have a new video showing more of the new stuff.
http://www.youtube.com/watch?v=FDa7R2BvQd0

Again, there are many graphics are still in need of an update...it's difficult to accomplish more on that when you want to get more programming done XP. 
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Martijn dh on May 07, 2013, 07:44:44 pm
Gameplay looks smooth. Nicely done.
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Jared on May 10, 2013, 12:41:02 am
This is amazing, Koh! I'm loving everything so far, besides the constantly swapping subscreen.

How hard will it be to make cutscenes, and make different holdup item sounds (For the sword etc)?
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: wildex999 on May 10, 2013, 08:05:53 am
The engine looks really nice, everything seems to be working =)
However, I can't say I really like the graphics style, it looks a bit too dark and detailed to really fit with the 2D zelda style. That's just my honest opinion tho ;)
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Koh on May 10, 2013, 03:13:14 pm
This is amazing, Koh! I'm loving everything so far, besides the constantly swapping subscreen.

How hard will it be to make cutscenes, and make different holdup item sounds (For the sword etc)?
There's such a mixed opinion around the shifting-when-necessary HUD now, I no longer know what to do with it.  Keeping it stationary is easy, but then there will be things hiding behind it.  I can get around that too, but still...it's become a stalemate.

No harder than how it would be in Game Maker, since that is what you open the Game Maker file with.  The only difference is, when that point in time comes, all the basics would have been programmed in already, such as NPC movement, and just require modification and specification.

The engine looks really nice, everything seems to be working =)
However, I can't say I really like the graphics style, it looks a bit too dark and detailed to really fit with the 2D zelda style. That's just my honest opinion tho ;)
Nothing wrong with having an opinion, though I can say you're the only one who has said such so far.  I've been told by some others that it looks like a blend between Seiken Densetsu (the Mana series) with Zelda, which I don't mind.  SD had some pretty amazing graphics, and an excellent use of colors.

EDIT:

Besides having delayed the Power Bracelet (and Titan's Glove) for so long, I also plan to tackle Side-view (platforming) areas soon.  It's just a variable switch, but it also requires a subsection of the movement engine.  Of course, Text Boxes will come in soon...I can literally copy and paste my previous code I wrote up and add the comments to it, but it has more features than necessary for this, so I'll probably write it from the ground up.  I did make a video of that a while back.

http://www.youtube.com/watch?v=raxsdGCEzpE

It'll probably just be rewritten with text commands, nameboxes and choices only.
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: wildex999 on May 10, 2013, 03:32:19 pm
Really nice textbox =D Seems very flexible :) Especially like how you can slow it down like that.
Dat Skype sound at 1:09 xD

I'm usually very honest about my opinions ;) I just think that the new style with all the details makes it look... untidy I guess. Link is a bit harder to see on the detailed grass than on the old "clean" grass.
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Koh on May 13, 2013, 05:26:17 pm
(http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-34_zps7c83a512.png) (http://s132.photobucket.com/user/dlbrooks34/media/CGBZE-34_zps7c83a512.png.html)
You know, it always bugged me how the GBC Zelda's sideview areas were pitch black in the back.  Why does it have to be like that?  Why can't it just be a (much darker) tiled background like the tiles in the foreground?  I'll probably make that when I do the graphics for this.

For now, I just wanted to show that it IS working, but I have some kinks to work out with it.  For some silly reason, Link can get stuck in a corner of a wall...like this.

(http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-35_zpsc46758d8.png) (http://s132.photobucket.com/user/dlbrooks34/media/CGBZE-35_zpsc46758d8.png.html)

I'm trying to figure out what's causing it, but I'm a little stumped at the moment.  You can have fun with it though.

(http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-36_zpsfb2ca139.png) (http://s132.photobucket.com/user/dlbrooks34/media/CGBZE-36_zpsfb2ca139.png.html)

It's like Link thinks he's a ghost.

EDIT:  Oh nevermind.  Silly me.  It was the corner cutting code doing that; I forgot to disable that in sideview areas XP.
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Jared on May 18, 2013, 11:34:35 pm
The textbox and sideview are great! Great job. :)

Although, I think "Press Z" instead of "Press Z to continue" would suffice for the textboxes. :)
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: sparksaiyan on November 16, 2013, 07:42:44 pm
I downloaded 0.0.1.5, and played with it for what I could.  I noticed that sometimes after the screen transition if I try to move along the edge or at an angle, Link will seem to be barred from it.  He can move forward which then will allow him to move to his left or right, but he seems to be initially forced to go forward once.  Maybe I'm just crazy though.  This is a possibility.
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: GieVeNT on November 18, 2013, 05:53:12 am
Wow this looks badass!  I was thinking of making a 1 dungeon Zelda game GB style and was going to just code it from scrath but this might work perfect!
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: Koh on July 08, 2014, 12:10:45 pm
Just digging this up to post the final update.  Since this is no longer being worked on, in favor of working on my original projects,  in addition to still receiving messages about it, I'm releasing the last, and most up-to-date version of the source code.

The code is well documented such that anyone could peruse through, and understand what each block or line of code does.  Many features were not fully implemented, such as the platforming area (ladders weren't implemented), however this engine could still serve as a starting point for many.  The code presented here is by no means the only or best way to handle things.  In fact, handling the graphics could have been done better, through the use of importing, such that when graphics need to be updated, all that would need to happen is the updating of the graphics files themselves.

Nonetheless, I present to you all the final batch of screenshots, and the final download package.  Good luck to any seeking to create a Zelda Fan Game!

Old Video
http://www.youtube.com/watch?v=FDa7R2BvQd0

Final Screenshots
(http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-0_zpsb49ce607.png) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-4_zps5eb67eba.png) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-2_zps88f864dc.png) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-1_zpsf991fafb.png) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-3_zps8540df87.png) (http://i132.photobucket.com/albums/q2/dlbrooks34/CGBZE-5_zpsb898e311.png)

Final Download Package
Comprehensive Game Boy Zelda Engine:  Final Source Package (https://app.box.com/s/n1ko92jx3oqjrnzjl27k)
Title: Re: [Game Maker 8 Pro]Comprehensive Gameboy Zelda Engine
Post by: RetroRespecter on July 11, 2014, 10:20:52 pm
Did you say "original projects"?

Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved