8 Direction Movement For GB Studio
A downloadable asset pack
*CREATED FOR GB STUDIO 2 BETA 4-5*
GB Studio is a beautiful application for creating simple Gameboy games. It does a great job at giving a user friendly tool for anybody to easily create their own games that are playable on Gameboy hardware. I am working on a new full game for Gameboy using GB Studio, and have been writing my own code to add to the amazing tool.
8 direction movement is a feature in the works, but is lacking in the top down style stages (think The Legend of Zelda, Link’s Awakening style movement). I wrote a simple hack in a few hours that can easily be dropped into your projects.
Nothing in my project file is actually necessary to add this feature to your own projects, it simply serves as a testing ground for proof of concept. The one and only piece needed to add this functionality to your own games can be found in my engine eject at [ /assets/engine/src/states/TopDown.c ]. The modification can be found from lines 37-129. Paste this in your own engine eject at line 37. No other changes necessary. Can be dropped into any existing project to add the functionality of 8 direction movement.
Use at your own risk, though I can’t imagine any harm that can come from it. No credit necessary. Donations appreciated.
Created for GB Studio 2 Beta
Written by Anthony Wallace of Nara Makes Games
Instagram.com/naramakesgames
Status | Released |
Category | Assets |
Release date | Nov 24, 2020 |
Rating | Rated 5.0 out of 5 stars (5 total ratings) |
Author | NaraMakesGames |
Made with | GB Studio |
Tags | Game Boy, gbstudio, sourcecode, Top-Down |
Download
Click download now to get access to the following files:
Comments
Log in with itch.io to leave a comment.
- Ejected engine is out of date (found "2.0.0-e8" when latest is "3.1.0-e15"). You may encounter issues if you don't eject your engine again. Missing updates: [3.0.0-e0] Complete engine rewrite based around GBVM: * Support for metasprites * Parallax backgrounds * hUGEDriver music engine * Variable width fonts * Super GB borders * GBVM scripting language * Much more! [3.0.1-e0] Bug fixes and preperation for GBDK-2020 v4.0.6: * Fixed issue where input scripts could be trigger while VM is locked * Allowed input scripts to optionally prevent default button actions * Moved engine field defines into a single state_defines.h file * Switched SDCC features to use macros in preparation for new GBDK [3.0.2-e0] Bug fixes and crash handler: * Added crash handler screen * Text control code 0x09 added to skip characters without waiting * Allow tilesets with zero length * Fix issue where VM_LOCK was not affecting context switching * Optimised input script checks [3.0.2-e1] Bug fixes: * Hide sprites when overlay is fullscreen * Make sequences of control codes in strings "instant" [3.0.2-e2] Bug fixes: * Don't