Skip to content

jdonald/gamemaker-rpi-wrapper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

GameMaker (YoYo Games) Pi Runner wrapper

This is a wrapper for Pi games built on GameMaker that had originally targeted the dispmanx-based graphics libraries. This allows for running these legacy binaries with the Mesa driver on Raspbian Stretch or newer, but might also serve to run the programs on non-Broadcom chips.

This was forked from xobs/mcrpi-wrapper with the following modifications:

  • Removed unnecessary counters that were delaying necessary egl*() API calls
  • Added shims for GLES1 functions to their GLES2 counterparts lacking the OES suffix
  • Reduced requested resolution, otherwise window fails to initialize properly

Usage

Download any or all three games from https://www.yoyogames.com/pi

tar xvf SuperCrateBox.tar.gz
tar xvf MalditaCastilla.tar.gz
tar xvf TheyNeedToBeFed.tar.gz

Clone this repo.

sudo apt install libegl1-mesa-dev libgles1-mesa-dev libgles2-mesa-dev libsdl1.2-dev
cd gamemaker-rpi-wrapper
make

sudo raspi-config # Enable full OpenGL with KMS

Note if /opt/vc/lib/lib{EGL,GLESv2}.so are present (the case on Jessie), remove both files. These were renamed to libbrcm{EGL,GLESv2}.so for Stretch to avoid conflicts with /usr/lib/arm-linux-gnueabihf/lib{EGL,GLESv2}.so

cd path/to/SuperCrateBox # or one of the other games from YoYo Games
LD_PRELOAD=path/to/gamemaker-rpi-wrapper/libbcm_host.so.1.0 ./SuperCrateBox

Super Crate Box works well. Maldita Castilla is quite playable although the world jitters when running forward. They Need To Be Fed seems to have trouble properly handling mouse movement and clicks.

About

A LD_PRELOAD wrapper for GameMaker games on Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.4%
  • Makefile 1.6%