Search found 44 matches
- Tue Apr 26, 2011 8:04 am
- Forum: General
- Topic: table to math
- Replies: 6
- Views: 2095
Re: table to math
Something like local mathstr = table.concat(mathtbl) local sum = loadstring("return "..mathstr)() might work. Depending on how trusted this string is, you might not want to do that. If the string came from another player over the network, the other player could send you something like {&q...
- Mon Apr 25, 2011 8:26 am
- Forum: Support and Development
- Topic: Newbie here gonna start out small
- Replies: 16
- Views: 7232
Re: Newbie here gonna start out small
Nope. I doubt anyone will have a problem as a result, though.BlackBulletIV wrote:Oh really? Didn't know that. What about the code snippets we post? It'd be public domain unless otherwise stated I'm guessing?
- Fri Apr 22, 2011 12:24 pm
- Forum: Support and Development
- Topic: ideas for new game
- Replies: 9
- Views: 4813
Re: ideas for new game
Shmups all day long. You can probably throw together something about as complex and soul-crushingly difficult as Raiden in a weekend.
- Fri Apr 22, 2011 12:20 pm
- Forum: Libraries and Tools
- Topic: nbml - BulletML-like shmup scripting
- Replies: 2
- Views: 3708
Re: nbml - BulletML-like shmup scripting
If you want to make a shmup with a lot of bullets that aren't of constant velocity (or need to be able to spawn other bullets), I would recommend using the ObjMan and Object classes defined in objman.lua and object.lua. Make an ObjMan when your game starts. Register a function with it that does stuf...
- Wed Apr 20, 2011 11:28 pm
- Forum: Libraries and Tools
- Topic: memoize.lua
- Replies: 35
- Views: 18599
Re: memoize.lua
It looks like it just stores a private cache and uses a function decorator to check the cache. Then it returns the cached value or the return value of the function you gave it.Taehl wrote:I don't need it yet, but it looks pretty sweet. Let me guess, it does fancy things with metatables?
- Wed Apr 20, 2011 10:59 pm
- Forum: Libraries and Tools
- Topic: memoize.lua
- Replies: 35
- Views: 18599
Re: memoize.lua
Cool, can you post it?
- Mon Apr 18, 2011 11:59 am
- Forum: Libraries and Tools
- Topic: nbml - BulletML-like shmup scripting
- Replies: 2
- Views: 3708
nbml - BulletML-like shmup scripting
http://ompldr.org/vOGJqNw/nbml-screenie.png This is a tiny demo of a system for scripting shmups by attaching scripts to bullets and executing them asynchronously. It was inspired by my previous work using BulletML and my huge dislike for scripting things in XML. object.lua provides an API that doe...
- Mon Apr 18, 2011 9:03 am
- Forum: Support and Development
- Topic: Help me decide what to do next?
- Replies: 30
- Views: 20030
Re: Help me decide what to do next?
It seems like his paddle is bigger than mine.
- Sun Apr 17, 2011 9:18 am
- Forum: Games and Creations
- Topic: Snayke - Out now! Version 1.1, soundtrack available
- Replies: 196
- Views: 137353
Re: wormbearpig - Snake clone
The edge of my monitor looks similar to the black pixels on the edge of my monitor, so those backgrounds are not the best for me. The look that results from the background becoming the same color as the grid is pretty cool though.
- Thu Apr 14, 2011 11:19 am
- Forum: Support and Development
- Topic: Weird Error: "pure virtual method called"
- Replies: 11
- Views: 3405
Re: Weird Error: "pure virtual method called"
I'm glad that works, but ideally Object::release() would never be invoked on an Object that had already deleted itself. It seems like either something is decrementing count without also incrementing it first or you found a super fun race condition.