Skip to content

cwalther/pew-playdate

Repository files navigation

PewPew for Playdate

Work in progress on running PewPew games on the Playdate.

How to build

  1. Apply this change to your Playdate SDK to fix linker errors about undefined references to various functions (I have not examined yet where exactly in MicroPython the references come from and whether they could be avoided):

    --- PlaydateSDK/C_API/buildsupport/common.mk	2024-04-01 18:56:16
    +++ PlaydateSDK/C_API/buildsupport/common.mk	2024-04-01 18:56:16
    @@ -104,6 +104,9 @@
    
     LDFLAGS  = -nostartfiles $(MCFLAGS) -T$(LDSCRIPT) -Wl,-Map=$(OBJDIR)/pdex.map,--cref,--gc-sections,--no-warn-mismatch,--emit-relocs $(LIBDIR)
    
    +# see https://devforum.play.date/t/undefined-reference-to-exit-and-friends/7263/2
    +LDFLAGS += --specs=nosys.specs
    +
     # Generate dependency information
     CPFLAGS += -MD -MP -MF $(DEPDIR)/$(@F).d
    
  2. Clone this repository.

    git clone https://github.com/cwalther/pew-playdate.git pewpew
    cd pewpew
  3. Initialize submodules – this pulls in MicroPython, among others. (Don't use --recursive, MicroPython has a lot of submodules and most are not needed!)

    git submodule update --init
  4. Initialize the required ones among MicroPython’s submodules.

    make -f micropython_embed.mk submodules
  5. Build the embed port of MicroPython, including mpy-cross.

    make -f micropython_embed.mk
  6. Build PewPew.

    make
  7. Run.

    open pewpew.pdx

About

PewPew for Playdate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published