Search found 153 matches

by The Burrito
Tue Feb 07, 2012 2:02 am
Forum: General
Topic: lol physics
Replies: 3
Views: 2128

lol physics

I updated In The Dark over the weekend because I saw that some physics related things have been adjusted / fixed. I loaded up a level in the map editor and then this happened. IIcrZMduxP8 Just imagine Yakety Sax playing with this. I might reupload it with the music sometime. Not sure why it's doing ...
by The Burrito
Tue Jan 31, 2012 5:56 pm
Forum: Support and Development
Topic: Friction From Scratch
Replies: 15
Views: 8276

Re: Friction From Scratch

If I remember correctly, n*n is faster than n^2 which is faster than math.pow(n, 2). Can anyone confirm this please? math.pow(n,2) takes about twice as long as n^2. n*n takes about a third of the time so it's definitely the fastest method. If you are doing ^3 or higher n^N is going to be the fastest.
by The Burrito
Mon Jan 30, 2012 8:26 pm
Forum: Support and Development
Topic: Friction From Scratch
Replies: 15
Views: 8276

Re: Friction From Scratch

I don't think the friction is what's causing the issue, that's pretty straightforward and looks good. It has something to do with the acceleration, note that if you hold 2 arrows at once the velocities take a while to balance out, and once they do if you release the friction takes over and everythin...
by The Burrito
Mon Jan 30, 2012 7:54 pm
Forum: Support and Development
Topic: Foreground/Background Scrolling Implementation
Replies: 13
Views: 11057

Re: Foreground/Background Scrolling Implementation

I use the full physics engine or AABB collision for most of my tests / demos, but you probably want something in between. Take a look at Hardon Collider if you haven't already, it's pretty good. If you aren't planning on having much else you could write some kind of simple slope handler thing that p...
by The Burrito
Sun Jan 29, 2012 8:50 pm
Forum: Support and Development
Topic: Foreground/Background Scrolling Implementation
Replies: 13
Views: 11057

Re: Foreground/Background Scrolling Implementation

Thanks! I've been working on it for a long time, (about 2 years, it's at about 5k lines excluding map files now) hopefully it'll be done in the next few months, the programming is pretty much finished, I'm just working on maps and art related stuff now. Also with the foregrounds and backgrounds you'...
by The Burrito
Sat Jan 28, 2012 7:30 am
Forum: Support and Development
Topic: Foreground/Background Scrolling Implementation
Replies: 13
Views: 11057

Re: Foreground/Background Scrolling Implementation

I load them all up front, loading dynamically is certainly feasible, but if it is technically possible for the camera to ever scroll super fast it's probably going to cause a bit of slowdown. I'm doing foregrounds and backgrounds and they're stacked 3-5 rows high, so I could on occasion have 10 imag...
by The Burrito
Sat Jan 28, 2012 5:55 am
Forum: Support and Development
Topic: Physics Issues
Replies: 44
Views: 11952

Re: Physics Issues

The biggest issue however is that when rolling under a block the player still inexplicably slows down. I was wondering if anyone could tell me why this is? It's your player.sensor stuff, the left and right checks are zeroing the x velocity when they "hit" the block, you could split it up ...
by The Burrito
Sat Jan 28, 2012 5:25 am
Forum: Support and Development
Topic: Foreground/Background Scrolling Implementation
Replies: 13
Views: 11057

Re: Foreground/Background Scrolling Implementation

Is that the ground from Earthworm Jim, "For Pete's Sake"? Also, just for a quick reference as far as massive images go, many video cards can't handle things bigger than 2048X2048, and if you're using something that is less than 512px tall I suggest breaking it up into 512X512 chunks otherw...
by The Burrito
Sat Jan 28, 2012 2:21 am
Forum: Support and Development
Topic: Ropes in 0.8.0?
Replies: 2
Views: 1778

Re: Ropes in 0.8.0?

hmmm, my specific interest is making a game which involves a rope reliable enough that it can be wrapped around a large shape and when pulled would be able to haul a heavyish object around the shape rather than just stretching or eventually clipping through it. It seems increasing the number of iter...
by The Burrito
Fri Jan 27, 2012 8:10 pm
Forum: Support and Development
Topic: Ropes in 0.8.0?
Replies: 2
Views: 1778

Ropes in 0.8.0?

So I noticed that 0.8.0 has "rope" joints, looking them up in the box2D manual I saw "This can be useful to prevent chains of bodies from stretching, even under high load." and thought awesome, now I can make rope like structures that don't wig out all the time. So I made a rope ...