Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Examples/Circles/main.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local gfx <const> = playdate.graphics

import "coreLibs/graphics"
import "coreLibs/object"
import "CoreLibs/graphics"
import "CoreLibs/object"
import "pdParticles"

local particleA = ParticleCircle(200, 120)
Expand Down Expand Up @@ -44,4 +44,4 @@ function playdate.update()
if playdate.buttonJustPressed(playdate.kButtonUp) then
Particles:clearAll()
end
end
end
268 changes: 0 additions & 268 deletions Examples/Circles/pdParticles.lua

This file was deleted.

1 change: 1 addition & 0 deletions Examples/Circles/pdParticles.lua
12 changes: 6 additions & 6 deletions Examples/Particle Avoider/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
local showFPS <const> = false -- SET TO 'true' TO SEE FPS

import "CoreLibs/graphics"
import "coreLibs/object"
import "CoreLibs/object"
import "pdParticles"

local gfx <const> = playdate.graphics
Expand All @@ -29,17 +29,17 @@ function menu()
gfx.clear()
gfx.drawText("Press A to Play", 200 - gfx.getTextSize("Press A to Play") / 2, 120)

if playdate.buttonJustPressed(playdate.kButtonA) then
playdate.update = game
partObstacles:add(30)
if playdate.buttonJustPressed(playdate.kButtonA) then
playdate.update = game
partObstacles:add(30)
end
end

-- game screen
function game()

-- [[ UPDATE ]] --

-- set the player's position based on player input
local changeX, changeY = 0, 0
if playdate.buttonIsPressed(playdate.kButtonUp) then
Expand Down Expand Up @@ -84,4 +84,4 @@ function game()
end

playdate.update = menu -- override the playdate.update() function, setting it to the menu() function
-- cool lua feature, way cleaner than a state machine
-- cool lua feature, way cleaner than a state machine
Loading