Destructible terrain (kind of like Worms)

Show us your works in progress and request feedback

Post » Sat Nov 01, 2014 12:52 pm

im pretty sure the fast algorithm is really faster (not so much but faster), try to make >10 fast clicks, you can see the slow one really hang a while
B
38
S
11
G
5
Posts: 485
Reputation: 5,340

Post » Sat Nov 01, 2014 4:27 pm

@Coin-coin le Canapin if you're doing testing, you should really just have a button that always fires the destruction code in the same area, while you count ticks between the start and end of the algorithm.

Do that for multiple areas on the screen, refresh, do it all again, and average through a few runs.
Then do that for your "new" algorithm.

Because honestly I don't notice a difference between the two.
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,836

Post » Sun Nov 02, 2014 9:07 am

I measured the duration of each event using wallclocktime function and clicking like mad, and it appears that the first algorithm is faster.

0.12s vs 0.15s, the results are constant over my tries.
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Mon Nov 03, 2014 4:11 pm

Well cool. Good to know. Any updates on the game you're working on?
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,836

Post » Mon Nov 03, 2014 8:34 pm

Not much.
http://canapin.com/construct/worms/v8/
Damage calculation has some glitches (with the 2nd weapon), players can't move and some badly optimized events cause too much CPU work.
Plus, I didn't implemented the proportional particle effect.

Actually I'm refactoring my engine from A to Z because it was a complete mess. I'll create a thread about it when I have something to show.

My project is creating a multiplayer game inspirated mostly by Gunbound, which had an incredibly amazing gameplay until the developper ruined it. I could talk about it for hours.

That said, I've never finished any project, with Construct 2 or not. But I enjoy trying year after year :D
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Fri Nov 07, 2014 10:33 am

Heh nice to see other people working on destructible terrain...

i guess we all use the same method (more less) invented by @R0j0hound for this using an array

Here is an (now old) video of my lemmings like thingy: http://www.youtube.com/watch?v=wA-pjHIF ... GLlM6slAlg
B
33
S
6
G
7
Posts: 339
Reputation: 7,426

Post » Mon Nov 10, 2014 1:07 pm

This is amazing ! May I ask you to share your capx with me ?
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Mon Nov 10, 2014 2:30 pm

I'll check if i can find it when i'm back home. It's messy though! :D
B
33
S
6
G
7
Posts: 339
Reputation: 7,426

Post » Tue Nov 11, 2014 9:55 pm

Sorry, didn't make it yesterday!

Here it is: http://ize.rocks/c2/Pingus.capx

However, as mentioned before... really messy :D
B
33
S
6
G
7
Posts: 339
Reputation: 7,426

Post » Wed Nov 12, 2014 12:52 pm

Thank you very much !
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

PreviousNext

Return to Works in Progress/Feedback Requests

Who is online

Users browsing this forum: Davven7 and 1 guest