<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Questions - Codea</title>
      <link>http://twolivesleft.com/Codea/Talk/categories/questions/feed.rss</link>
      <pubDate>Mon, 20 May 13 04:21:54 -0400</pubDate>
         <description>Questions - Codea</description>
   <language>en-CA</language>
   <atom:link href="/Codea/Talk/discussions/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>How do you hide a sprite in codea?</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2807/how-do-you-hide-a-sprite-in-codea</link>
      <pubDate>Sat, 18 May 2013 18:09:17 -0400</pubDate>
      <dc:creator>Elden123</dc:creator>
      <guid isPermaLink="false">2807@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>I have no idea</p>
]]></description>
   </item>
   <item>
      <title>Need Some Help (A Beginner&#039;s Request)</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2487/need-some-help-a-beginner-s-request</link>
      <pubDate>Thu, 21 Mar 2013 09:32:13 -0400</pubDate>
      <dc:creator>Steven</dc:creator>
      <guid isPermaLink="false">2487@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hello guys, 
I'm Not A Good Programmer, but Codea helped me to like programming. Suddenly, something has gone wrong because I tried to do something apparently quite easy. I want to do a animated background with a pattern like in Cargo-Bot game. 
This is the pattern: 
<a rel="nofollow" href="http://postimg.org/image/68dsrwkjd/" target="_blank"><img src="http://s4.postimg.org/68dsrwkjd/Picture.jpg" alt="Picture" style="border: 0px;" /></a>
<a rel="nofollow" href="http://postimg.org/image/5on96d0qz/" target="_blank"><img src="http://s9.postimg.org/5on96d0qz/cargo_bot.jpg" alt="cargo bot" style="border: 0px;" /></a>
Can you help me with a code?</p>
]]></description>
   </item>
   <item>
      <title>Detecting when app/script is shutdown</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2745/detecting-when-app-script-is-shutdown</link>
      <pubDate>Thu, 09 May 2013 14:55:16 -0400</pubDate>
      <dc:creator>BrianH</dc:creator>
      <guid isPermaLink="false">2745@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hi all,</p>

<p>I've decided to give Codea a try and found an issue I can't resolve.  Simply put, does Codea notify the running script that the user has pressed the home button or that the app has transitioned to the background?  This is assuming the script was exported to xCode and compiled to a native app.   Is there an equivalent to 'applicationWillResignActive'  or 'applicationDidEnterBackground'?  I'm an experienced iOS developer and would rather use Codea than Objective-C for quick app ideas.</p>

<p>I ask because in my app I would like to save the current data (tables) so the user doesn't have to re-create the data each time they run the app (assuming I've exported the app to xCode).  I've looked at serializing the table structures after each change is made, but that's a lot of overhead which I'd rather push to a 'shutdown()' method if possible.</p>

<p>Thanks for any suggestions!</p>

<p>-Brian</p>
]]></description>
   </item>
   <item>
      <title>How can I use collideConnected on a distance joint?</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2793/how-can-i-use-collideconnected-on-a-distance-joint</link>
      <pubDate>Thu, 16 May 2013 12:58:31 -0400</pubDate>
      <dc:creator>Neztec</dc:creator>
      <guid isPermaLink="false">2793@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>I have two physics bodies that are connected by a distance joint. My problem is that i still want them to be able to collide (if the proper forces are applied to them). Some research on box2d says I should be able to set a collideConnected property to still allow that, despite being connected by a distance joint. It doesn't seem to work in Codea. Any ideas why doesn't work?</p>

<p>Any help is much appreciated!
- Mike</p>
]]></description>
   </item>
   <item>
      <title>Loving Codea</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/864/loving-codea</link>
      <pubDate>Tue, 24 Apr 2012 07:08:38 -0400</pubDate>
      <dc:creator>chevi</dc:creator>
      <guid isPermaLink="false">864@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>I just got Codea today and I wanted to do some tests with it, so I decided to code a simple Chopper game (The usual of the chopper in the cave)
Preview of the game: <a href="http://p.twimg.com/ArPboRICEAAufUr.jpg" target="_blank" rel="nofollow">http://p.twimg.com/ArPboRICEAAufUr.jpg</a></p>

<p>After a couple hours I have a reasonably playable version (I will share the code when done), and several problems or doubts about Codea:</p>

<p>I know this has probably been discussed, but I couldn't find it, I've seen the Cargo-Bot game in the App Store, and I was wondering if there is a known process (hopefully simple) to export apps from Codea to the AppStore</p>

<p>Another thing is, Codea is great for games, but it doesn't really have many options to either interact with the user (Form creation for example), the iPad (more os functions) or the Internet. I would love to code some Apps for some of my websites, but right now Codea doesn't really provide the tools for that. Is it possible that the developers will add such features in future releases?</p>

<p>Thanks a lot!
Chevi</p>
]]></description>
   </item>
   <item>
      <title>Playback of MP3 files</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2796/playback-of-mp3-files</link>
      <pubDate>Fri, 17 May 2013 00:30:46 -0400</pubDate>
      <dc:creator>MrCoxall</dc:creator>
      <guid isPermaLink="false">2796@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>I was just wondering if anyone knows why you cannot simply play back MP3 files in Codea?
It seems like a needed element in a programming language designed for games.
Is there some technical reason that it was excluded.</p>
]]></description>
   </item>
   <item>
      <title>Tween on object</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2798/tween-on-object</link>
      <pubDate>Fri, 17 May 2013 07:00:12 -0400</pubDate>
      <dc:creator>HyroVitalyProtago</dc:creator>
      <guid isPermaLink="false">2798@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Have you a solution for make something like this ? :</p>

<pre><code>example = {}
example.pos = {}
example.pos.x = 0
example.pos.y = 0
example.dim = {}
example.dim.w = 10
example.dim.h = 10

tween(2, example, {pos.x=10, dim.w=20})
-- or
tween(2, example, {pos["x"]=10, dim["w"]=20})
</code></pre>
]]></description>
   </item>
   <item>
      <title>Remove &quot;Made with Codea&quot; in Vidéo</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2788/remove-made-with-codea-in-video</link>
      <pubDate>Wed, 15 May 2013 16:29:27 -0400</pubDate>
      <dc:creator>threads</dc:creator>
      <guid isPermaLink="false">2788@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hello, sorry if this has already been answered but I didn't find out how to hide the "Made with Codea" mention when recording a video in Codea. 
Not that I don't want to mention it, because I love Codea and I'm happy to promote it, but it's not really convenient. Can we at least make it smaller ?
I'm exporting videos from Codea, and I import them into the "8mm" app, and re-exporting to use them in a "VJ" set. The result is nice, I might post some videos here, but it would be great to get rid of this big inscription..</p>
]]></description>
   </item>
   <item>
      <title>Mesh, shader &amp; light</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2791/mesh-shader-light</link>
      <pubDate>Thu, 16 May 2013 07:21:44 -0400</pubDate>
      <dc:creator>HyroVitalyProtago</dc:creator>
      <guid isPermaLink="false">2791@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hello !</p>

<p>I don't really understand for the moment how works shader, but if somebody know how to simulate light (Undirectional light, spot, ...) in 3D scene with mesh and shader, that could be great !</p>

<p>Thanks</p>
]]></description>
   </item>
   <item>
      <title>Calendar</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2772/calendar</link>
      <pubDate>Tue, 14 May 2013 09:01:21 -0400</pubDate>
      <dc:creator>Speakmore</dc:creator>
      <guid isPermaLink="false">2772@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hey everyone, I was looking to make an application that incorporated many things into one, one of the things I'd like to add to my project is a calendar. I want to do things with this calendar, like add reminders/notifications to it, but I'm not even sure how to do the calendar.</p>

<p>I want to be able to connect to a calendar I guess online so that I don't have to edit it every year with where the month starts and all. I would like for the calendar to be in a box form similar to this: <a href="http://www.timeanddate.com/calendar/" target="_blank" rel="nofollow">http://www.timeanddate.com/calendar/</a></p>

<p>Then I want to add a notification table I guess or um system to it, so that you can input notifications like:
Doctor's Appointment 9:00 am
And at whatever time you give it, a notification box will pop up just like the Reminders App and tell you that you have a Doctor's Appointment!</p>

<p>If someone could please help me out with this I'd be grateful as I'm very new to Codea and not sure how I'd do this. If you could point me in the right dorection as far as a tutorial that goes over this or code that is already shared, I'd be thankful!</p>

<p>Speakmore</p>
]]></description>
   </item>
   <item>
      <title>Codea for RPGs</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2784/codea-for-rpgs</link>
      <pubDate>Wed, 15 May 2013 14:34:49 -0400</pubDate>
      <dc:creator>utilityname</dc:creator>
      <guid isPermaLink="false">2784@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Considering downloading--interested in what people think about Codea for developing basic FF-esqe RPGs.  New to developing and interested in making very basic story-based games.  I don't see any Codea examples with text clouds or NPC interaction or open 'levels'.  Any advice will be greatly appreciated.</p>
]]></description>
   </item>
   <item>
      <title>Putting an image into an email or text message?</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2789/putting-an-image-into-an-email-or-text-message</link>
      <pubDate>Wed, 15 May 2013 23:46:29 -0400</pubDate>
      <dc:creator>beyond</dc:creator>
      <guid isPermaLink="false">2789@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hi All, does anyone know if it's possible yet via Codea to put a saveImage() into an email or text message? I can get text into an email thanks to another thread here, but don't know how to get an image in the email. And I haven't seen anything yet about any integration with text messaging, but maybe it's been done -- I did a search here on the forum and didn't find anything. Thanks for any info/insight anyone has!</p>
]]></description>
   </item>
   <item>
      <title>Taking a screenshot of part of the screen?</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2766/taking-a-screenshot-of-part-of-the-screen</link>
      <pubDate>Mon, 13 May 2013 18:47:56 -0400</pubDate>
      <dc:creator>beyond</dc:creator>
      <guid isPermaLink="false">2766@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hi All, does anyone have any experience with triggering a screenshot of a specific rectangular region of the screen, or does it need to be a screenshot of the entire screen only? Anyone seen any code examples of either? Thanks in advance for any insight/suggestions!</p>
]]></description>
   </item>
   <item>
      <title>Basics of 3d programming</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2769/basics-of-3d-programming</link>
      <pubDate>Tue, 14 May 2013 06:31:57 -0400</pubDate>
      <dc:creator>michaelmaguin</dc:creator>
      <guid isPermaLink="false">2769@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hi folks I have just recently purchased codea and it really is an excellent IDE, by far and away leaps and bounds ahead of anything else I have seen.</p>

<p>I am from a vb.net background but have taken quite well with lua simple but effective.</p>

<p>My main question is has anyone got an idiots guide to 3d programming within the codea as it's something I am eager to learn. I am already coding an iso engine for a game with collision detection which I plan on sharing with a full breakdown on the site.</p>

<p>All the best for now
Michael maguinness</p>
]]></description>
   </item>
   <item>
      <title>passing 3x3 matrix from lua to shader?</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2778/passing-3x3-matrix-from-lua-to-shader</link>
      <pubDate>Tue, 14 May 2013 17:34:32 -0400</pubDate>
      <dc:creator>orizein</dc:creator>
      <guid isPermaLink="false">2778@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hi,</p>

<p>I have mat3 uniform in my shader. How should I set value for that from lua script?</p>
]]></description>
   </item>
   <item>
      <title>How to make objects  collide</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2771/how-to-make-objects-collide</link>
      <pubDate>Tue, 14 May 2013 08:10:20 -0400</pubDate>
      <dc:creator>bilal</dc:creator>
      <guid isPermaLink="false">2771@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>I am making a game, and if the two objects collide  it is game over, but    i cant do it.</p>
]]></description>
   </item>
   <item>
      <title>Question on meshes</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2754/question-on-meshes</link>
      <pubDate>Sun, 12 May 2013 03:47:26 -0400</pubDate>
      <dc:creator>Ignatz</dc:creator>
      <guid isPermaLink="false">2754@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Suppose I want to make a mesh of a rectangular tree image with a transparent background. I really just want the tree.</p>

<p>I can either</p>

<p>(a) use addRect / create two triangles covering the entire image, or</p>

<p>(b) I can create a large set of vectors which accurately map the contours of the tree and omit surrounding blank pixels</p>

<p>So (a) has fewer vertices but (b) has fewer pixels</p>

<p>If the mesh is used to create a pixel map, after which the vertices are disposed of, then I'm guessing (b) is better, because it has fewer pixels. But if the vertices are needed for each redraw, then (a) may put less strain on the processor.</p>

<p>Does anyone know enough about this to give me some advice?</p>
]]></description>
   </item>
   <item>
      <title>Storage question</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2756/storage-question</link>
      <pubDate>Sun, 12 May 2013 15:26:40 -0400</pubDate>
      <dc:creator>presidenten</dc:creator>
      <guid isPermaLink="false">2756@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hi guys!</p>

<p>If I want users to add a profile picture etc and the program downloads a picture through http_request and then saves it with saveImage('Documents:someid',img). Will this work even when I deploy on appstore or is it Codea specific storage?</p>
]]></description>
   </item>
   <item>
      <title>Make an object revolve around another object</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2750/make-an-object-revolve-around-another-object</link>
      <pubDate>Fri, 10 May 2013 12:08:36 -0400</pubDate>
      <dc:creator>evanlws12</dc:creator>
      <guid isPermaLink="false">2750@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>I'm trying to make an object revolve around another. I thought it could be done using applyForce, but the object either doesn't move much at all, or it revolves and slows down. Is there a way to make it revolve at a certain speed? Here is the code for it.</p>

<pre><code><br />-- revolution example test

-- Use this function to perform your initial setup
function setup()
    --creating the object that will be revolved around
    center = physics.body(CIRCLE, 40)  
        center.x = WIDTH/2
        center.y = HEIGHT/2
        center.type = STATIC

    --creating the revolving object
    asteroid = physics.body(CIRCLE, 40)  
        asteroid.x = 400
        asteroid.y = 200
        force = vec2(math.cos(asteroid.x),math.sin(asteroid.y))   
        asteroid:applyForce(force * 100) -- apply force from center of mass          

        joint = physics.joint(REVOLUTE,center,asteroid,vec2(center.x, center.y))

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
    ellipse(center.x,center.y, 40)
    sprite("Space Art:Asteroid Small", asteroid.x, asteroid.y)

end
</code></pre>
]]></description>
   </item>
   <item>
      <title>EPUB reader</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2605/epub-reader</link>
      <pubDate>Mon, 15 Apr 2013 11:06:11 -0400</pubDate>
      <dc:creator>cc76</dc:creator>
      <guid isPermaLink="false">2605@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hi,</p>

<p>I would like to create an epub reader with Codea. I think for to use Cider libraries for UI.</p>

<p>For the algorithm, you have some reference or source code in Lua from which to start?</p>

<p>thanks</p>
]]></description>
   </item>
   <item>
      <title>How to make a scrolling background in codea??</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2746/how-to-make-a-scrolling-background-in-codea</link>
      <pubDate>Thu, 09 May 2013 17:48:45 -0400</pubDate>
      <dc:creator>Jlew</dc:creator>
      <guid isPermaLink="false">2746@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>How to make my own sprite("background",x,y,xw,xy) scroll???</p>

<p>I need it to move from left to right....</p>
]]></description>
   </item>
   <item>
      <title>Quick Question on texturing vertices</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2743/quick-question-on-texturing-vertices</link>
      <pubDate>Thu, 09 May 2013 05:42:03 -0400</pubDate>
      <dc:creator>Ignatz</dc:creator>
      <guid isPermaLink="false">2743@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Suppose I have a complex 2D shape I am trying to model in 3D, with triangle vertices.</p>

<p>If the size of the texture image can be small or large, ie anything, it gets quite complicated figuring out where to put all the vertices, because triangles need to be fitted to the image as well as to the overall shape.</p>

<p>A simpler solution is to create a temporary image the same size as the whole shape, and tile it with the image, then the whole shape fits within this image, and you can define vector triangle sizes as you wish, without any constraints imposed by image size.</p>

<p>My question is - if I do this, and if I destroy the temporary image afterwards, is there likely to be a hit on memory or performance as the result of using a large image, ie does Codea have to keep the image in memory, or does it discard it once the triangles are textured initially?</p>
]]></description>
   </item>
   <item>
      <title>Is there a way to tell how much memory your program is using, while it&#039;s running?</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2717/is-there-a-way-to-tell-how-much-memory-your-program-is-using-while-it-s-running</link>
      <pubDate>Mon, 06 May 2013 07:59:52 -0400</pubDate>
      <dc:creator>Ignatz</dc:creator>
      <guid isPermaLink="false">2717@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>The reason is I'm using some big texture images for a mesh, and I wanted to find out if the images remain in memory after they've been used to texture the mesh, ie whether it makes a difference what size images you use to texture a particular mesh.</p>

<p>But knowing how much memory you're using is useful anyway.</p>
]]></description>
   </item>
   <item>
      <title>Copyright</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2718/copyright</link>
      <pubDate>Mon, 06 May 2013 09:02:59 -0400</pubDate>
      <dc:creator>Speakmore</dc:creator>
      <guid isPermaLink="false">2718@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hey guys,
I've just contacted Apple Support about Copyright and what I can and can't do because I enjoyed playing this game on the internet and wanted to make an application based around it. I wanted to know if I was allowed to do this, the women stated she didn't know anything about Application creation and Copyright and that I should contact my lawyer.
Me being 16, certainly does not have a lawyer and decided that some of you guys that have already published applications into the store would have some knowledge.</p>

<p>Am I allowed to copy/use the same objective/goal/idea and make it my application. I will not be using the same same name or pixels as them, but like I said the same idea.</p>

<p>I contacted them regardless asking if I could make an application off the idea, but I don't think I need the permission.</p>
]]></description>
   </item>
   <item>
      <title>Creating a bouncing ball with a set velocity</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2714/creating-a-bouncing-ball-with-a-set-velocity</link>
      <pubDate>Sun, 05 May 2013 20:01:39 -0400</pubDate>
      <dc:creator>evanlws12</dc:creator>
      <guid isPermaLink="false">2714@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>I've seen many examples about how to make an object bounce around on a screen, but i still can't figure out how to have the user "flick" the screen and have the ball bounce at a certain speed. Im used an object to create the ball so I think it has something to do with linearVelocity but i'm not sure. It always goes in one direction that way.</p>
]]></description>
   </item>
   <item>
      <title>universal apps</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2707/universal-apps</link>
      <pubDate>Sun, 05 May 2013 01:52:23 -0400</pubDate>
      <dc:creator>corneliuhoffman</dc:creator>
      <guid isPermaLink="false">2707@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>This is probably a stupid question but if I am trying to install my app on an Ipod it seems that it cannot find the sprites/shaders. Are there any settings I need to modify in the Xcode?</p>
]]></description>
   </item>
   <item>
      <title>Background?</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2715/background</link>
      <pubDate>Sun, 05 May 2013 23:15:45 -0400</pubDate>
      <dc:creator>Speakmore</dc:creator>
      <guid isPermaLink="false">2715@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hey so quick question.</p>

<p>I was wondering if I could make a program that would run as my background.</p>

<p>It would contain moving objects and when I touched the screen, and action would occur.</p>

<p>I know you make Applications with this stuff, but is there a way I could make something for my background image??</p>
]]></description>
   </item>
   <item>
      <title>Fullscreen no buttons</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2682/fullscreen-no-buttons</link>
      <pubDate>Tue, 30 Apr 2013 09:57:42 -0400</pubDate>
      <dc:creator>Saurabh</dc:creator>
      <guid isPermaLink="false">2682@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>I have a stupid question whose answer I can't find.
If I run my code in 'display mode Fullscreen no buttons' then how can I return back to my code editing page without closing codea? I couldn't find any way to do so.</p>
]]></description>
   </item>
   <item>
      <title>Addon Question: Access to native Codea objects?</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2709/addon-question%3A-access-to-native-codea-objects</link>
      <pubDate>Sun, 05 May 2013 11:56:39 -0400</pubDate>
      <dc:creator>toadkick</dc:creator>
      <guid isPermaLink="false">2709@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>I'm looking into porting my SpriteBatch class to be a native Codea Addon, in hopes that it will deliver huge performance increases with batched sprite rendering. Right now using SpriteBatch implemented in Lua, I can get 250-300 batched sprites on screen before FPS dips below 60 on my iPad 4th gen. This is just a theory so far since I have no actual evidence to back it up yet, but my theory is that I'm running into a performance wall due to SpriteBatch:sprite() being implemented in Lua (it does a ton of stuff, like manipulate the view matrix, setting verts/vert colors/uv coordinates, etc), and I'm thinking that using Obj-C to do this heavy lifting might net performance gains of 100%-1000% or more (i.e., a performance increase big enough to draw somewhere between 500-5000 batched sprites (or more) before FPS starts to dip below 60).</p>

<p>In order for this to work, I need access to Codea's mesh object natively (in Obj-C), since the SpriteBatch class uses a mesh to do it's dirty work; however when I exported my project using the new export feature, I noticed that the Codea runtime's headers and sources are not included in the exported project, just the compiled static library.</p>

<p>Is there any way I can gain access to the native mesh object in Obj-C so that I can access it in my SpriteBatch addon class? Or, would it be possible to do this without direct native access, using the Lua C runtime to gain access to the mesh() object via Lua?</p>

<p>EDIT: nevermind, it looks like the Codea runtime doesn't provide a C API for any of it's internal objects (only a Lua API), so without access to the functionality to mess with a mesh's buffers directly, most of this is impossible (or at least, any workarounds would potentially negate the performance increase, so it's not worth doing at this point :/ )</p>
]]></description>
   </item>
   <item>
      <title>Are there limitations???</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2700/are-there-limitations</link>
      <pubDate>Fri, 03 May 2013 22:26:37 -0400</pubDate>
      <dc:creator>DTK</dc:creator>
      <guid isPermaLink="false">2700@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hello to all of you codea forum members. I am new to this forum so please take it easy on a beginner like me :). Mainly my question deals with the limitations or what codea can or cannot do. I want to make sure I can make rts( real time strategy), rpg(role playing games), fps( first person shooter) etc. before I jump head first into learning lua, processing, graphics and all the other gears that make codea work. You could strip my question down to this: Are there games that cannot be made with codea??? I don't want to spend weeks learning all of this just to be disappointed by learning that there are limitations....</p>

<p>If there are basically no brick walls to hit, my second question would have to be where to start learning how to make codea work. Thanks ahead for your answers, please keep your answers in as simple form as possible since I have next to no programming experience.(I did try learning obj-c once though)</p>

<p>Forgive me for any errors in this thread, or if I basically asked the same question as somebody else, please correct me if I do so.</p>

<p>Thanks,DTK</p>
]]></description>
   </item>
   <item>
      <title>Making comments span more than one line</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2703/making-comments-span-more-than-one-line</link>
      <pubDate>Sat, 04 May 2013 15:29:53 -0400</pubDate>
      <dc:creator>evanlws12</dc:creator>
      <guid isPermaLink="false">2703@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Quick question, the name says it all. Is there a way to do this in codea? I know the -- creates a comment but what if i want it to continue on more than one line?</p>
]]></description>
   </item>
   <item>
      <title>self in function</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2699/self-in-function</link>
      <pubDate>Fri, 03 May 2013 13:23:33 -0400</pubDate>
      <dc:creator>Cabernet</dc:creator>
      <guid isPermaLink="false">2699@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hi, I need help with this unusual problem.</p>

<p>I have class where in function SmallCloud:init I initializing self.id. Here variable works, also in SmallCloud:draw() function. But when I call SmallCloud:update function, here have variable self.id a nil value. Why?</p>

<p>Code:</p>

<pre><code>SmallCloud = class()

function SmallCloud:init(id,x,y,strana,pocet,ciel,rychlost)
    self.id=id
    self.x=x
    self.y=y
    self.strana=strana
    self.pocet=pocet
    self.ciel=ciel
    self.rychlost=rychlost
end

function SmallCloud:draw()
    pushStyle()
    if self.strana==1 then
        sprite("Dropbox:modry",self.x,self.y,40+self.pocet)
        fill(0,173,238,255)
    elseif self.strana==2 then
        sprite("Dropbox:red",self.x,self.y,40+self.pocet)
        fill(191,33,46)
    elseif self.strana==3 then
        sprite("Dropbox:orange",self.x,self.y,40+self.pocet)
        fill(255,156,43)
    end
    font("SourceSansPro-Regular")
    fontSize(25)
    --text(self.pocet,self.x,self.y)
    text(self.id,self.x,self.y)
    popStyle()
end


function SmallCloud:update()
    print(self.id)
end
</code></pre>
]]></description>
   </item>
   <item>
      <title>Codea bindings not showing up in shader lab [SOLVED]</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2691/codea-bindings-not-showing-up-in-shader-lab-solved</link>
      <pubDate>Wed, 01 May 2013 12:42:55 -0400</pubDate>
      <dc:creator>Zoyt</dc:creator>
      <guid isPermaLink="false">2691@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hello,
I'm trying to alter a shader to use in Codea, but the bindings aren't showing up. If someone could help, what would be great. Here is the code for the fragment shader:</p>

<pre>
/////////////////////////////////////////////////////////
// Alpha Threshold effect

precision highp float;

uniform lowp sampler2D samplerFront;

uniform float threshold;
uniform float smoothness;
uniform float unpremultiply;

varying vec2 vTex;

void main()
{
    lowp vec4 color = texture2D( samplerFront, vTex ) ;
    if( unpremultiply &gt; 0.0 ) { color.rgb /= color.a ; }
        
    float range = ( color.a - (1.0 - threshold) - (smoothness * 0.05) ) / (0.0001 + smoothness * 0.1) ;
    color.a = smoothstep( 0.0, 1.0, range ) ;
    color.rgb *= color.a ;
        
    gl_FragColor = color ;
}
</pre>
]]></description>
   </item>
   <item>
      <title>Xcode and effects shaders</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2677/xcode-and-effects-shaders</link>
      <pubDate>Sun, 28 Apr 2013 23:55:08 -0400</pubDate>
      <dc:creator>aciolino</dc:creator>
      <guid isPermaLink="false">2677@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>I have just taken a project from my ipad that was using the Effects:Ripple shader as:</p>

<pre><code>Water.shader=shader("Effects:Ripple")
</code></pre>

<p>When I try to compile this, it works, but when I run it, I get the error:</p>

<pre><code>Bad argument #1 to 'shader' (Shader not found)
</code></pre>

<p>In my xcode project, the Resources/ShaderPacks has an Effects.shaderpack with Ripple.shader, and 3 files.</p>

<p>Why would this fail?</p>
]]></description>
   </item>
   <item>
      <title>Codea Wiki tutorial #3 fix</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2684/codea-wiki-tutorial-3-fix</link>
      <pubDate>Tue, 30 Apr 2013 14:33:02 -0400</pubDate>
      <dc:creator>evanlws12</dc:creator>
      <guid isPermaLink="false">2684@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>I'm trying to make a simple game in codea and looking at the tutorial (under getting started) I've recreated the ball example that has the circle bounce around the screen. However, when the user flicks the ball near the edge of the screen the ball gets stuck to the side of the screen. Is there a way to fix this?</p>

<p>Here is the code from the tutorial that I need in my program:</p>

<pre><code>function setup()
    x = WIDTH/2
    y = HEIGHT/2
    bc = color(248, 250, 13, 255)
    tc = color(195, 17, 17, 255)
    c = bc
    inTouch = false
    dx = 0
    dy = 0
    r = 30
end

function draw()
    background(0, 0, 0, 255)
    fill(c)
    ellipse(x,y,r)
    if inTouch then
        x = tx
        y = ty
        c = tc
    else
        x = x +  dx
        y = y +  dy
        c = bc
    end
    if y &gt; HEIGHT - r then
        dy = - dy
    end
    if y &lt; r then
        dy = - dy
    end
    if x &gt; WIDTH - r then
        dx = - dx
    end
    if x &lt; r then
        dx = - dx
    end
end

function touched(touch)
    tx = touch.x
    ty = touch.y
    if touch.state == BEGAN then
        inTouch = true
        velocity = {}
    end
    if touch.state == MOVING then
        table.insert(velocity,1,vec2(touch.deltaX,touch.deltaY))
    end
    if touch.state == ENDED then
        dx = 0
        dy = 0
        n = 0
        for i = 1,10 do
            if velocity[i] then
                n = n + 1
            dx = dx + velocity[i].x
            dy = dy + velocity[i].y
            end
        end
        if n &gt;0 then
        dx = dx / n
        dy = dy / n
        end
        inTouch = false
    end
end
</code></pre>
]]></description>
   </item>
   <item>
      <title>Problem with my code. [Fixed]</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2694/problem-with-my-code-fixed</link>
      <pubDate>Thu, 02 May 2013 00:22:33 -0400</pubDate>
      <dc:creator>Okok111</dc:creator>
      <guid isPermaLink="false">2694@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Yes, I'm a noob. Please don't judge me, I can't find the answer anywhere. Anyway, the function that I'm struggling with is ball.Draw(). I have made an instance of ball called myball, and I use myball.Draw() to run it. The problem is, it says that my variables are nil (it says that there's an error in stroke(), it expected a number and got nothing.
Code in the ball class:</p>

<pre><code>Ball = class()

function Ball:init(x)
    -- you can accept and set parameters here
    self.xpos = WIDTH / 2
    self.ypos = HEIGHT / 2
    self.colourred = 0
    self.colourblue = 255
    self.colourgreen = 255
    self.colour = color(colourred, colourblue, colourgreen)
    self.ballsize = 25
end

function Ball.draw()
    stroke(Ball.colour)
    fill(Ball.colour)
    rect( xpos, ypos, ballsize, ballsize)
end

function Ball:touched(touch)
    -- Codea does not automatically call this method

    end 
</code></pre>

<p>And yes, I probably should use a vector, I just haven't gotten around to it.</p>
]]></description>
   </item>
   <item>
      <title>Virtual Mac for Xcode export</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2690/virtual-mac-for-xcode-export</link>
      <pubDate>Wed, 01 May 2013 11:54:50 -0400</pubDate>
      <dc:creator>inancyuce</dc:creator>
      <guid isPermaLink="false">2690@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>I remember reading a thread about how to use Xcode in a PC so that you don't have to buy a Mac to prepare your project for the App Store, but I can't find that thread. Does anyone know if there is a practical and legal way of achieving this?</p>
]]></description>
   </item>
   <item>
      <title>Multiple physics objects</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2650/multiple-physics-objects</link>
      <pubDate>Thu, 25 Apr 2013 05:45:46 -0400</pubDate>
      <dc:creator>Saurabh</dc:creator>
      <guid isPermaLink="false">2650@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>I was making a small game for me to play when I'm bored and I came across an issue.
What I want to do is shoot bullets by clicking on the screen and it also happens that way.
But if I click quickly then the first bullet disappears and a new bullet is formed. I need to know how can I make the first bullet go on even after making a second one. I tried to see the inbuilt physics example, test 1, where he creates multiple polygons but I couldn't understand it.
Here is my code.</p>

<pre><code>function setup()
    bullet = physics.body(CIRCLE,10)
end

function draw()
    background(0, 0, 0, 255)
    pushStyle()
    fill(255, 255, 255, 255)
    ellipse(bullet.x,bullet.y,10)
    popStyle()
end

function createBullet()
    bullet.x = x
    bullet.y = y
    bullet.linearVelocity = vec2(1000,0)
    bullet.restitution = 0
    bullet.type = DYNAMIC
end

function touched(touch)
    x = touch.x
    y = touch.y
    if touch.state == BEGAN then
        createBullet()
    end
end
</code></pre>
]]></description>
   </item>
   <item>
      <title>Buttons and Graphics</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2678/buttons-and-graphics</link>
      <pubDate>Mon, 29 Apr 2013 08:37:05 -0400</pubDate>
      <dc:creator>Speakmore</dc:creator>
      <guid isPermaLink="false">2678@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hey all, very new to this. Just started 2 days ago and found this as a great opportunity for me to get coding some games!</p>

<p>I've always wanted to do this... Anyway, let me get on with my question:</p>

<p>For people making their own games, did you or even do you have to create your own graphics for every level and all?
Just looking for a quicker way, because I don't want to have to make 50+ level graphics when I'm not even that efficient with creating graphics to begin with.</p>

<p>Second question has been pretty much answered</p>

<p>Thanks,
Speakmore</p>
]]></description>
   </item>
   <item>
      <title>Slow when touching</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2676/slow-when-touching</link>
      <pubDate>Sun, 28 Apr 2013 22:18:21 -0400</pubDate>
      <dc:creator>wrmichael</dc:creator>
      <guid isPermaLink="false">2676@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Using the below code.  It slows the project down once I have four buttons.  Three runs smooth.</p>

<p>Is  the pointinginrect slowing me down?</p>

<pre><code>Button = class()

-- Fast Mesh Button Class courtesy of <a rel="nofollow" href="/Codea/Talk/profile/Vega">@Vega</a>
-- 3 Aug 2012
--
-- Modified: - Call Back Functionality added
--           - pushStyle() &amp; popStyle() added to draw()
--           - tapped status added
--           - pointInRect() function added
--           - changed vec2 location to x and y (to reduce typing!)
--
-- Version 1.3 (4 Aug 2012)

function Button:init(text,x,y,width,height)
    self.state = "normal"
    self.text = text
    self.textColor = color(255,255,255,192)
    self.x = x
    self.y = y
    self.width = width
    self.height = height
    self.visible = true
    self.fontSize = 28
    self.font = "ArialRoundedMTBold"
    self.color1 = color(255, 255, 255, 96)
    self.color2 = color(128,128,128,32)
    self.presscolor1 = color(192, 224, 224, 128)
    self.presscolor2 = color(96, 192, 224, 128)
    self.verts = self:createVerts(self.width, self.height)
    self.myMesh = mesh()
    self.myMesh.vertices = triangulate(self.verts)
    self.vertColor = {}
    self:recolor()
    self.action = nil
    self.tapped = false
    self.actionpress= false
    self.istouched = false
end

function Button:setColors(c1,c2,p1,p2)
    self.color1 = c1
    self.color2 = c2
    self.presscolor1 = p1
    self.presscolor2 = p2
    self:recolor()
end

function Button:textOptions(fn, sz, col)
    self.font = fn
    self.fontSize = sz
    self.textColor = col
end

function Button:draw()
    if self.visible == true then
        pushStyle()
        pushMatrix()
        translate(self.x,self.y)
        self.myMesh:draw()
        fill(self.textColor)
        fontSize(self.fontSize)
        font(self.font)
        text(self.text, self.width/2,self.height/2)
        self:drawLines(self.verts)
        popMatrix()
        popStyle()
        if self.istouched then
            if self.actionpress then
                if self.action then
                    self.action()
                end
            end
        end
    end
end

function Button:touched(touch)
    self.tapped = false
    if self.visible then  
        if pointInRect(touch.x, touch.y, self.x, self.y, self.width, self.height) then
            if touch.state == BEGAN then
                self.tapped = true
                self.state = "pressing"
                self:recolor()
                self.istouched = true

            elseif touch.state == ENDED then
                if self.state == "pressing" then
                    self.state = "normal"
                    self.tapped = true
                    self:recolor()

                end
                if self.actionpress == false then
                    if self.action then
                        self.action()
                        actiontook = true
                    end
                end
                self.istouched = false
            end
        else
            self.state = "normal"
            self:recolor()
        end

    end
    if touch.state == ENDED then
        self.istouched = false
    end

end

function Button:createVerts(w,h)
    local r
    local v = {}
    if w &gt; 100 or h &gt; 100 then
        if w&gt;=h then r = math.round(h/100) else r = math.round(w/100) end
    else
        r = 1
    end
    v[1] = vec2(w,6*r)
    v[2] = vec2(w-r,4*r)
    v[3] = vec2(w-2*r,2*r)
    v[4] = vec2(w-4*r,r)
    v[5] = vec2(w-6*r,0)
    v[6] = vec2(6*r,0)
    v[7] = vec2(4*r,r)
    v[8] = vec2(2*r,2*r)
    v[9] = vec2(r,4*r)
    v[10] = vec2(0,6*r)
    v[11] = vec2(0,h-6*r)
    v[12] = vec2(r,h-4*r)
    v[13] = vec2(2*r,h-2*r)
    v[14] = vec2(4*r,h-r)
    v[15] = vec2(6*r,h)
    v[16] = vec2(w-6*r,h)
    v[17] = vec2(w-4*r,h-r)
    v[18] = vec2(w-2*r,h-2*r)
    v[19] = vec2(w-r,h-4*r)
    v[20] = vec2(w,h-6*r)
    return v
end

function Button:drawLines(v)
    noSmooth()
    strokeWidth(1)
    stroke(0, 0, 0, 192)
    for i=1, #v-1 do
        line(v[i].x,v[i].y,v[i+1].x,v[i+1].y)
    end
    line(v[#v].x,v[#v].y,v[1].x,v[1].y)   
end

function Button:recolor()
    local lt, dk
    if self.state == "normal" then 
        lt = self.color1
        dk = self.color2
    else
        lt = self.presscolor1
        dk = self.presscolor2
    end
    for i=1,3 * #self.verts - 6 do
        if self.myMesh.vertices[i].y &gt; self.height/2 then
            self.vertColor[i] = lt
        else
            self.vertColor[i] = dk
        end
    end
    self.myMesh.colors = self.vertColor
end

-- Math Utilities

function math.round(value)   
    -- math.round function courtesy of Vega.   
    return math.floor(value + 0.5)

end

function pointInRect(pointX, pointY, x, y, w, h)

    -- Returns true if point (pointX, pointY) is within the rectangle
    -- with lower left corner at (x, y) with a width of w and a
    -- height of h.
    --
    -- Reefwing Software (www.reefwing.com.au)
    -- Version 1.0

    if pointX &gt;= x and pointX &lt;= x + w and pointY &gt;= y and pointY &lt;= y + h then
        return true
    else
        return false
    end

end

</code></pre>
]]></description>
   </item>
   <item>
      <title>Trying to make a table of tile objects and draw each one...</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2668/trying-to-make-a-table-of-tile-objects-and-draw-each-one</link>
      <pubDate>Sat, 27 Apr 2013 15:02:36 -0400</pubDate>
      <dc:creator>torchie</dc:creator>
      <guid isPermaLink="false">2668@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Right now I'm getting "Attempt to perform arithmetic on field "WIDTH" (a nil value)":</p>

<pre><code>tile = class()
function tile:init(x,y)

 self = {}

self.x = x;

self.y = y;

self.WIDTH = 128

self.HEIGHT = 128

self.draw = tile:draw()

return self

end


function tile:draw()
rect(self.x-self.WIDTH/2, self.y-self.HEIGHT/2, self.WIDTH, self.HEIGHT
end


-- then, outside...

for k = 1, 6 do
    table.insert(self.table, tile:init(12,12))
end

for i, v in ipairs(table) do
    tile:draw()
end
</code></pre>

<p>on self.x-self.WIDTH the highlighting disappears... does this mean I'm not allowed to modify those variables?</p>

<p>I just can't figure this out...</p>
]]></description>
   </item>
   <item>
      <title>Rounded corners [ANSWERED]</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/203/rounded-corners-answered</link>
      <pubDate>Wed, 23 Nov 2011 21:09:27 -0500</pubDate>
      <dc:creator>Bortels</dc:creator>
      <guid isPermaLink="false">203@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>So - I want a rectangle with rounded corners. Before I write my own nasty version with lines and quarter ellipses and such - is there some more elegant way to do it I'm missing? Or has someone perhaps already done this?</p>
]]></description>
   </item>
   <item>
      <title>Detecting on-screen keyboard vs. hardware keyboard</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2663/detecting-on-screen-keyboard-vs-hardware-keyboard</link>
      <pubDate>Fri, 26 Apr 2013 23:36:57 -0400</pubDate>
      <dc:creator>toadkick</dc:creator>
      <guid isPermaLink="false">2663@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Is it possible to tell if a user is using a hardware keyboard vs. the onscreen keyboard? I've dug around and I can't seem to find anything, but this would be a very useful feature.</p>

<p>For my part, I'd like to know this so that, if using the onscreen keyboard, I can shift my typing area into view if needed, but if using a hardware keyboard, I wouldn't need to do anything.</p>

<p>UIKit has a nice feature where you can set a callback, and whenever the keyboard is displayed/hidden, it calls that callback with information about how the keyboard is going to be displayed: it's ending frame size, the animation curve used to show/hide the display, and some other stuff I can't remember. This is awesome because you can synchronize your view's animation with the on screen keyboard if necessary.</p>

<p>If there current is no functionality to detect hw/sw keyboard, I propose that the callback feature be added to the feature tracker. If there is, please point me to it so I can use it :)</p>
]]></description>
   </item>
   <item>
      <title>Codea hangs the iPad.</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2669/codea-hangs-the-ipad</link>
      <pubDate>Sat, 27 Apr 2013 15:57:23 -0400</pubDate>
      <dc:creator>dave1707</dc:creator>
      <guid isPermaLink="false">2669@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Has anyone else run into this. When I exit a program and go back to the examples/project screen, the screen only partially displays and my iPad 1 is totally unresponsive, so I can't close Codea or do anything else. I let it sit like that for awhile, but the screen still only shows part of the examples/project screen. I have to power down the iPad 1 and power it back up. This has happened 3 times so far over the past couple of months.</p>
]]></description>
   </item>
   <item>
      <title>Text Background Color</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2672/text-background-color</link>
      <pubDate>Sat, 27 Apr 2013 22:54:42 -0400</pubDate>
      <dc:creator>Jknight3</dc:creator>
      <guid isPermaLink="false">2672@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Is it possible to make the background of text transparent?</p>
]]></description>
   </item>
   <item>
      <title>How to save the photos on the game</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2559/how-to-save-the-photos-on-the-game</link>
      <pubDate>Thu, 04 Apr 2013 10:39:28 -0400</pubDate>
      <dc:creator>Mohammad_abumoosa</dc:creator>
      <guid isPermaLink="false">2559@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>When I want to share my game the photos doesn't go to hem I want a code or any thing when I share my app the photos go to hem pleas</p>
]]></description>
   </item>
   <item>
      <title>Having trouble drawing meshes from functions</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2666/having-trouble-drawing-meshes-from-functions</link>
      <pubDate>Sat, 27 Apr 2013 10:37:08 -0400</pubDate>
      <dc:creator>Chupacabra</dc:creator>
      <guid isPermaLink="false">2666@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hello,</p>

<p>I am new to Codea (and coding in general) and have found this site to be extremely useful.  I've used this site to learn how to draw meshes and how to call functions, but I'm a bit stuck when it comes to combining the two techniques.  I'm sure it's something really simple that I am doing incorrectly.</p>

<p>Problem:  I can draw meshes just fine when I include them in "Main", but I cannot get my meshes to draw when I try to call it as a function.</p>

<p>Thank you all for your help.</p>

<pre><code>function setup()

triangle = meshTest()

--triangle = mesh()
--triangle.vertices = {vec2(0,0),vec2(100,0),vec2(0,100)}

end


function draw()

    background(40, 40, 50)
    strokeWidth(5)
    triangle:draw()

end

-- The code below is on a different tab  -- 

meshTest = class()

function meshTest:init()

self.mesh = mesh()
self.vertices = {vec2(0,0),vec2(100,0),vec2(0,100)}

end

function meshTest:draw()

self.mesh:draw()

end
</code></pre>
]]></description>
   </item>
   <item>
      <title>Codea manual book?</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2655/codea-manual-book</link>
      <pubDate>Fri, 26 Apr 2013 12:35:35 -0400</pubDate>
      <dc:creator>jython</dc:creator>
      <guid isPermaLink="false">2655@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Codea manual book ?</p>
]]></description>
   </item>
   <item>
      <title>Ipair (table)</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2639/ipair-table</link>
      <pubDate>Sun, 21 Apr 2013 17:08:29 -0400</pubDate>
      <dc:creator>Jazmal</dc:creator>
      <guid isPermaLink="false">2639@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Newbie require help
Need help to figure out how to use the ipair(table).</p>

<p>For k,v inpairs(table)
   Blah
End</p>

<p>Figured out how to use it basics, but can someone help me to figure out how to assign a variable to ( table ) so I can use the same routine without having to write separate code.</p>

<p>Thanks</p>
]]></description>
   </item>
   <item>
      <title>Need help storing lots of data in a table for future use</title>
      <link>http://twolivesleft.com/Codea/Talk/discussion/2617/need-help-storing-lots-of-data-in-a-table-for-future-use</link>
      <pubDate>Thu, 18 Apr 2013 04:27:44 -0400</pubDate>
      <dc:creator>dolbs</dc:creator>
      <guid isPermaLink="false">2617@/Codea/Talk/discussions</guid>
      <description><![CDATA[<p>Hi
I am new to Codea and I am having difficulty storing and recovering multiple data sets for future use.  I need to be able to access a table for a particular data set based on a dropdon box selection. I am familiar with 'saveLocaldata' but this doesn't look suitable for larges data sets.  Any help, tips etc will be greatly appreciated. :(</p>
]]></description>
   </item>
   </channel>
</rss>