Legend of Zelda-like scrolling
Makes screen scroll more like Legend of Zelda on NES. Info shown upon starting and all code is commented! (*some is)
Credit is optional, but I'd like to at least know where it's being used.
Credit is optional, but I'd like to at least know where it's being used.
Link
Last modified 2013-05-04 21:28:23
Easy to modify and presented well enough so you can at least figure out what's going on. Here's some feedback:
1) First things first, hehe, 3 megabyte .IT in an engine demo. Come on :P
2) Multiple robots. There are several robots doing aligned checks that are unnecessary. You can do checks on 'PLAYERX'-'SCROLLEDX' and 'PLAYERY'-'SCROLLEDY' to see if the player just left the view area. Then you'll only need one robot!
3) This engine does not demonstrate what would happen if enemies are onscreen, which would be to continue moving around. If this is undesirable, you could integrate the scrolling code into your global robot and use the FREEZETIME command to stop everything happening on the board. Since I'm pretty sure most Zelda games don't stop the enemies anyway, it's mostly up to the user.
I hope these suggestions get put into the next version!
1) First things first, hehe, 3 megabyte .IT in an engine demo. Come on :P
2) Multiple robots. There are several robots doing aligned checks that are unnecessary. You can do checks on 'PLAYERX'-'SCROLLEDX' and 'PLAYERY'-'SCROLLEDY' to see if the player just left the view area. Then you'll only need one robot!
3) This engine does not demonstrate what would happen if enemies are onscreen, which would be to continue moving around. If this is undesirable, you could integrate the scrolling code into your global robot and use the FREEZETIME command to stop everything happening on the board. Since I'm pretty sure most Zelda games don't stop the enemies anyway, it's mostly up to the user.
I hope these suggestions get put into the next version!