Is there not a way to include our own project images - as in how they appear in the examples? I tried adding: <key>Icon</key> <string>name.png</string>
To my Info.plist file in my directory and it didn’t show up. Tried grabbing one of the examples and moving them to Documents, tried grabbing its images “Project3DLab.png” and “Project3DLab@2x.png” and dropping them into Documents, Sprites, and the actual project directory.
Am I missing something? (Also tried closing Codea and reopening)
I’m at work so I can’t check this right now, but when we develop web apps we add an image called “apple-touch-icon.png” to the root folder which is either 57x57 or 114x114 which functions as a “desktop” favicon. The iPad is supposed to automatically assign it. This is sandboxed though, so I doubt it would work.
Bei mir klappt die Kopie mit folgendem Code einwandfrei.
-- Copie from Sprite Packs to Documents
-- Use this function to perform your initial setup
function setup()
print("Hello World!")
myImage = readImage("Planet Cute:Character Pink Girl")
saveImage("Documents:PinkGirl",myImage)
end
-- This function gets called once every frame
function draw()
-- This sets a dark background color
background(40, 40, 50)
-- This sets the line thickness
strokeWidth(5)
-- Do your drawing here
sprite(myImage,200,200)
end
Das funktioniert auch mit eigenen Bildern
-- Copie from Sprite Packs to Documents
-- Use this function to perform your initial setup
function setup()
print("Hello World!")
myImage = readImage("Planet Cute:Character Pink Girl")
saveImage("Documents:PinkGirl",myImage)
end
-- This function gets called once every frame
function draw()
-- This sets a dark background color
background(40, 40, 50)
-- This sets the line thickness
strokeWidth(5)
-- Do your drawing here
sprite(myImage,200,200)
end
Ah just figured it out. The “Project:Icon” thing works in the beta version of Codea, because it doesn’t clean up your project folder of extraneous files.
We’ll have to restructure the way project clean-up works in the release version before this feature becomes available.