GithubHelp home page GithubHelp logo

cadin / love-playdate-emulation Goto Github PK

View Code? Open in Web Editor NEW
26.0 3.0 1.0 2.97 MB

A basic template for previewing games built with LÖVE in a Playdate-like environment.

License: The Unlicense

Lua 100.00%
love2d playdate lua

love-playdate-emulation's Introduction

Playdate SDK Now Available!

The official Playdate SDK is now publicly available.

👆 Use that instead of this. 👆

This project is no longer active and will be archived.

love-playdate-emulation

A basic template for previewing games built with LÖVE in a Playdate-like environment.

Preview

This template creates an environment for running LÖVE games in a way that resembles how they might appear on the upcoming Playdate console. It creates a Canvas on which to build your game, already set up as a 400x240 1-bit aliased grayscale environment. The Canvas runs a shader that converts all images to grey-on-grey. This way you can prepare black and white images for an actual Playdate game, and have them display here similar to how they might appear on device.

When running your game, choose to view it as a 1x or 2x Playdate-sized screen, or in context of the console itself.

⚠️ This is an unofficial project, for experimentation only.
This is not an actual Playdate emulator or simulator. I have no access to the actual Playdate SDK. Games made with this template will not run on the device when it's released.

Getting Started

Requirements

  1. LÖVE

Setup

Clone this repo, and start building your game in the game.lua file.

This file has loadGame, updateGame, and drawGame functions that corresond to LÖVE's load, update, and draw.

Usage

Your game should be built in the game.lua file. main.lua handles the basic setup and wraps your game in the simulated Playdate environment. playdate-env.lua contains the code for emulating the Playdate screen.

When running your game, press keys 1 through 4 to view the screen display at 1x, 2x, 3x or 4x scale.
Press d to toggle the device image.
Press Shift-D to toggle scaling on the device image.

License

This project is licensed under the Unlicense - see the LICENSE file for details.

All Playdate imagery and trademarks are property of Panic, Inc. No copyright intended 😬.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.