local playerImage = ( ' Images/playerImage ')Īssert( playerImage ) - make sure the image was where we thought The :moveTo() call moves our sprite to the center of the display. The :setCenter() call specifies that the sprite will be anchored at its center. local playerSprite = nil - A function to set up our game environment. We'll scope it to this file because - several functions need to access it. NOTE: Because it's local, you'll have to do it in every. Instead of having - to preface all graphics calls with 'aphics', just use 'gfx.' - Performance will be slightly enhanced, too. Import ' CoreLibs/timer ' - Declaring this 'gfx' shorthand will make your life easier. You'll want to import these in just about every project you'll work on. Your game can use multiple source files if you wish - (use the `import 'myFilename'` command), but the simplest games can be written - with just `a`. Where do I report bugs or issues relating to the SDK?
Where do I go if I have questions about the SDK?
Using your Playdate to control the Simulator.Set PLAYDATE_SDK_PATH Environment Variable.