Search found 98 matches

by Mud
Thu Apr 19, 2012 8:03 pm
Forum: Support and Development
Topic: Regular Expressions
Replies: 13
Views: 2012

Re: Regular Expressions

when I see things like (.^$[%s]) I go mad... Regular expressions are much harder to read than write. Don't let scary ones intimidate you. You'll be able to write those quite easily yourself, long before (through practice) you're able to easily read them. There's almost nothing to them: WHAT TO MATC...
by Mud
Mon Mar 12, 2012 4:20 pm
Forum: General
Topic: Programming High?
Replies: 42
Views: 6365

Re: Programming High?

When I worked in the game industry, there were several programmers, two of them leads, who were pretty much always baked. I didn't work closely enough with them to know if their code qualified was affected (for better or worse), but they did solid work, were promoted, ect.
by Mud
Mon Feb 13, 2012 9:51 pm
Forum: General
Topic: global constants in the name of efficiency
Replies: 7
Views: 2091

Re: global constants in the name of efficiency

i also hear that global variables in Lua are looked up in some sort of table Yup. The global foo is _G['foo'] (or _ENV['foo'] in Lua 5.2). is the difference actually going to matter if i define a bunch of stuff in love.load (TILE_FLOOR = 0, TILE_WALL = 1, TILE_DOOR = 2, etc etc etc) versus using in...
by Mud
Mon Feb 13, 2012 5:26 pm
Forum: Support and Development
Topic: Wrapper instead of porting Love2D
Replies: 23
Views: 5751

Re: Wrapper instead of porting Love2D

SiENcE wrote:@Mud: Do you know why images are only changing thier y location and not the x?
This line renderprop:setLoc(prop, x, y) should be renderprop:setLoc(x,y)
by Mud
Wed Feb 08, 2012 11:53 pm
Forum: General
Topic: Card Game
Replies: 26
Views: 5548

Re: Card Game

Yes. It's called modules, not classes. Technically, you don't have any classes in your code. Well, you don't instantiate multiple instances of a module, like he does with Card and Player. His classes don't support inheritance, but inheritance is orthogonal to the concept of a class . So while they ...
by Mud
Wed Feb 08, 2012 10:32 pm
Forum: General
Topic: When does "scripting" become "programming"?
Replies: 36
Views: 4373

Re: When does "scripting" become "programming"?

Its why Javascript is called "Java"-"Script" instead of just "Java" (even though its relatively the same). JavaScript is "relatively the same" as Java in the same way that Java is "relatively the same" as C, which is to say, not very much. The similarity is this case is entirely superficial, extend...
by Mud
Wed Feb 08, 2012 10:08 pm
Forum: Support and Development
Topic: Wrapper instead of porting Love2D
Replies: 23
Views: 5751

Re: Wrapper instead of porting Love2D

Yes thats exactly my Idea 2. I'm fiddling with it, but i cant get it working. I sketched it out. We need to track the number of draw calls for a particular prop, and make sure we have an instance for each. So we create a lookup table to associate a prop with all instances of it. __prop_instances = ...
by Mud
Wed Feb 08, 2012 6:51 pm
Forum: General
Topic: When does "scripting" become "programming"?
Replies: 36
Views: 4373

Re: When does "scripting" become "programming"?

My 2 cents: Scripting is programming. What makes programming "scripting" is context. If an application exposes a language for the express purpose of extension/customization, that's it's scripting interface, and whatever language being used for that is it's "scripting language". There's a strong asso...
by Mud
Wed Feb 08, 2012 1:03 am
Forum: General
Topic: Full HD side-scrolling platformer with LÖVE. Is it possible?
Replies: 27
Views: 5633

Re: Full HD side-scrolling platformer with LÖVE. Is it possi

I tested the Moai SDK. The programming logic is totally different from the Love2D approach. Moai is not well documented, there is no community and the samples are rudimentary. I'm currently trying to figure out Moai (I want iOS support), and it makes me miss LÖVE badly. In LÖVE, all my time was spe...
by Mud
Sat Jan 28, 2012 1:56 am
Forum: General
Topic: What code editor do you use ?
Replies: 141
Views: 37738

Re: What code editor do you use ?

Vim. Been using it for 10 years for everything on every platform. One of it's advantages has always been lack of reliance on special keys and chorded keystrokes, which makes it awesome for telnet sessions and laptop keyboards, but I recently fell in love all over again when I started coding for the ...