You can add a class copy-pasting the Fire class and design your own attack (like the example of the dungeon), and also a change for line 57 of Ship class: if self.invulnDuration == 0 then
with:
if self.health == 0 then return end if self.invulnDuration == 0 then
and then add before the end of the last if… if self.health == 0 then table.insert ( cosmos.explosions, Explosion:init(self.position,color(255,255,255,255),"Died") ) end
The real solution to copying and pasting is in the build sitting with Apple. You can simply upload .codea files straight from the app and import them from the web. Fingers crossed that it goes through.
It would be nice to see a video or tut
about that Simeon,… ah, a cool feature would be to have a fullscreen mode without console or the ability to move the left widgets in running mode
Here a change for the alien class , to move in a sinusuidal mode xD
+1 for full screen mode (it’s been suggested before).
One question though - if you go to full screen mode, how do you get back out of the app? There is now presumably no “back” button anymore. I’m actually thinking hitting the home button and re-running Codea is reasonable, but ugly.
Which brings up a question: is there a way under program control to do “exit” or such, ie. to dump you out of the display and back into the editor? So that we could add a “quit to editor” button or hotspot or such on a fullscreen project?
Bleah. Can’t say I like that; fullscreen should be fullscreen, no visible widgets at all (if you wanted to have a “hot corner”, meh, maybe, but please let us control where/when somehow). I’d much rather have an exit() call and I can manage it with touches or the like, or simply have someone hit Home to exit out.
It’s an aesthetic thing, as well as a “It’d be nice to hand this to my three year old and not have her push the buttons (she is a good button pusher) and get back to the code and have daddy have to fix it”.
+1 to exit button in the corner to back and -1 to the parameter to show…
When you switch to fullscreen, what happens with the WIDTH and HEIGHT?.. it differs from iPad/iPad2?
I love to host these deep conversations about game programming
Oh my gosh guys i have been looking for something like this forever, i got codea a llittle while ago and i am super determined to start coding…i thought the user interface would be a little more friendly and im having a little trouble with the rules of source code - so, i just want to know if i can directly import this into codea or if i can copy it in to check it out and mess around BUT i have no idea how, like should i use specific heading or make new pages for each group set up…confused
No genius here but what I do is copy each file and email it to myself from my desktop and save each file on the desktop to a Codea folder for archive purposes. I’m sure you could skip the desktop/laptop process and copy each file from your iPad while online.
Make sure the Main file goes into the Main tab in your project and add a tab (class) for each of the other files (named as each file is named) and copy them to each appropriate tab.
Most of the time the project runs without modifications but sometimes you have to troubleshoot some files to get them to work.
I haven’t seen this particular contribution so I haven’t tried to see if it still works in the current version of Codea.
Holy cow sorry for all the posts but i followed the full link and just copied it straight into the app and IT IS SOOO COOOL!!! Juaxix, how long have you been source coding for??? I am stoked to mess around and have some fun, thanks sooo much for posting this!!