Search found 18 matches

by Omnivore
Wed Jul 31, 2013 5:45 pm
Forum: Support and Development
Topic: File lines to table (lua question)
Replies: 8
Views: 6465

Re: File lines to table (lua question)

function string_split(text, sep, out) sep, out = sep or "%s", out or {} for s in string_gmatch(text, "([^"..sep.."]+)") do out[#out + 1] = s end return out end or similar should do the job (cut and paste from my utility.lua file). Use like: local some_table = string_sp...
by Omnivore
Wed Jul 31, 2013 2:50 pm
Forum: General
Topic: [POLL] Do you like "then,do,end" or "{ }"?
Replies: 37
Views: 17231

Re: [POLL] Do you like "then,do,end" or "{ }"?

To be perfectly honest, I'd much prefer Python syntax in general. Having to type end or } feels like I'm back in either ancient Pascal or K&R C days. Lua has many advantages, but I'd just about give them all up if there was a Python version of Love. Really miss the conciseness and power as well ...
by Omnivore
Tue Jul 30, 2013 1:42 pm
Forum: General
Topic: Today is Refactoring Day!
Replies: 2
Views: 2176

Today is Refactoring Day!

For me anyhow. It is that time when the adding of new features and cool ideas has to be brought to a halt before the code becomes too tangled to ever untangle. The time when unnecessary files no longer containing useful code clutter up the source directories. When major files creep up past the 500 L...
by Omnivore
Sun Jul 28, 2013 4:13 pm
Forum: Games and Creations
Topic: Snapshot Roguelike alpha
Replies: 15
Views: 37725

Re: Snapshot Roguelike alpha

Now up to v0.0.10, added a main menu with splash/background, now using the Inconsolata-g font for hud, menus, and messages. New item: throwable grenades! You start with six of them, they don't drop, and you can commit suicide if you use them wrong - but they'll kill a pack of big-A's most times. Als...
by Omnivore
Sat Jul 27, 2013 4:52 pm
Forum: General
Topic: Dynamic story generation
Replies: 7
Views: 4632

Re: Dynamic story generation

But that's still forcing player to a certain road, it's just there's more paths on the road that create slight illusion of variety. If you really want dynamic story, you should throw away any kind of static general story and let the generator do the whole thing. Eh where did I say you couldn't go o...
by Omnivore
Sat Jul 27, 2013 4:26 pm
Forum: General
Topic: Dynamic story generation
Replies: 7
Views: 4632

Re: Dynamic story generation

The Dwarf Fortress system seems interesting, especially the way it keeps and builds a historical record. Now as to table top RPG, I have a fairly long history. In fact, many of my personal programming projects have been related in one way or another to the Traveller RPG system. In Traveller there ar...
by Omnivore
Sat Jul 27, 2013 11:00 am
Forum: General
Topic: Complex motion formulas?
Replies: 2
Views: 1891

Re: Complex motion formulas?

Just wonder, how often do you use, if ever, complex motion formulas (besides box2d)? Like former vs. latter? One area I found the various popular physics engines lacking in was newtonian (or quasi-newtonian) movement in space. Oh I'm sure they could be used but I found it easier to write my own mot...
by Omnivore
Sat Jul 27, 2013 10:50 am
Forum: General
Topic: Dynamic story generation
Replies: 7
Views: 4632

Dynamic story generation

Time to once again revisit this old (to me) topic in a new forum. This attempt has been prompted by the https://love2d.org/forums/viewtopic.php?f=3&t=39796 thread. Earlier today I blogged a copy of my old theory on the subject at http://darkstarstraveller.blogspot.com/2013/07/another-look-at-dyn...
by Omnivore
Sat Jul 27, 2013 10:37 am
Forum: General
Topic: Ever had a project that you had to give up on?
Replies: 30
Views: 10442

Re: Ever had a project that you had to give up on?

I'd like to note it also addresses raidho's point, in saying "you know what a watermelon is", because yes, obviously you can't just paint a watermelon without ever having seen one. There is a ton of trial and error as well as a trail of discarded partial attempts along the road to any inn...
by Omnivore
Fri Jul 26, 2013 8:50 pm
Forum: General
Topic: Ever had a project that you had to give up on?
Replies: 30
Views: 10442

Re: Ever had a project that you had to give up on?

Sometimes you just hit the limit of your resources (and skills) - like a 3d cubical subdivision object oriented raycaster I wrote back in the mid 90's... after getting it done I realized I couldn't afford the camera setup (the **old** way to do 3D modeling) nor did I know any 3d artists. Also the vi...