Make Games for Playdate with Lua

Make Games for Playdate with Lua

Brett Chalupa
This is a sample of the book's content.Buy on Leanpub

Table of Contents

Make Games for Playdate with Lua

  • Introduction
    • Feedback
    • What to Expect
    • Getting the Most Out of the Book
    • Getting Started
    • Next Steps
  • Hello, Playdate!
    • Counting Frames
    • Moving the Text
    • Player Input to Change Greeting
    • A Gentle Introduction
  • Tennis
    • Displaying the Paddle
    • Moving the Paddle
    • Displaying the Ball
    • Refactoring playdate.graphics
    • Moving the Ball
    • Bounce Off the Wall
    • Bounce Off the Paddle
    • Refactor into Functions
    • Angles
    • Speeding Up the Ball
    • Score
    • Sound Effects
    • Final Code
    • Extra Credits
    • What’s Next
  • Clock
    • Drawing the Time
    • Respecting Preferences
    • Padding Zeroes
    • Lowering the Framerate
    • Showing Power Details
    • Custom Font
    • Finished Source Code
    • Extra Credits
    • What’s Next
  • Snake
    • Moving on the Grid
    • Control the Snake
    • Spawning Apples
    • Adding Snake Pieces
    • Don’t Spawn an Apple on the Snake
    • Game Over
    • Restart the Game
    • High-Score
    • Reset High-Score
    • Finished Source Code
    • Extra Credits
    • What’s Next
  • Soaring
    • Controlling the Bird
    • Spawning Trees
    • Crank Indicator
    • Scenes
    • Refactoring Gameplay Reset
    • Introducing a State Table
    • Breaking Our Code Into Multiple Files
    • Extra Credits
    • What’s Next
  • Sokoban
    • Moveable Player
    • Pushing a Box
    • Target Spot
    • Counting Steps
    • Preparing for Complexity
    • Multiple Boxes
    • Parsing Levels
    • Level Select
    • Extra Credits
    • What’s Next
  • Dungeon Crawler - Part 1
    • Drawing Player from a Tilemap
    • Designing Levels with Tiled and Rendering Them
    • Player Movement with Camera
    • Map Collision Detection
    • Talking to NPCs
    • Extra Credits
    • What’s Next
  • Dungeon Crawler - Part 2
    • Organizing Our Code
    • Multiple Maps with Stairs
    • Random Encounters
    • Combat
    • Player Stats & Enemy Attacks Back
    • Death
    • Extra Credits
    • What’s Next
  • Playdate by Example
    • Text
    • Audio
    • Debugging
    • Capturing Gameplay Footage
    • Release Steps
  • Outro
    • Start Small
    • Releasing Your Playdate Games
    • Continue to Learn
    • Backing Up Your Games
    • Beyond Playdate
    • Game Development Tools
    • Assets
    • Thanks & Credit
  • Playdate Cheatsheet
    • System
    • Display
    • Draw Text
    • Import Files
    • Input Handling
    • Sprites
    • Graphics
    • Images
    • Timers
    • Sound
    • Save Data
    • Animation
    • System Menu
    • Lifecycle Callbacks
    • Coroutines in playdate.update()
    • Common Patterns
    • Quick Constants Reference
  • Lua Cheatsheet
    • Variables
    • Functions
    • Tables
    • Strings
    • Control Flow
    • Operators
    • Common Patterns
    • Useful Built-in Functions
    • Coroutines
  • Style Guide
    • Lua Styles
    • Project Structure
Make Games for Playdate with Lua/Style Guide

Style Guide

https://leanpub.com/playdatebook

Lua Styles

https://leanpub.com/playdatebook

Project Structure

https://leanpub.com/playdatebook

In this chapter

  • Style Guide
  • Lua Styles
  • Project Structure