Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 14 Vote(s) - 2.93 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge Threadᆦ ᆦ ᆦ
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
RE: [CHALLENGE THREAD]

I used GetEntitiesCollide. But note that you cannot use the wildcard "*" with that function, and that there are some missing numbers on the walls (number 4 is missing on one of the maps).
04-20-2012, 07:24 PM
Find
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
RE: [CHALLENGE THREAD]

(04-20-2012, 07:24 PM)Apjjm Wrote: I used GetEntitiesCollide. But note that you cannot use the wildcard "*" with that function, and that there are some missing numbers on the walls (number 4 is missing on one of the maps).
D: So you just used a for(;;Wink statement to check all the possible collisions? I feel like that would lag. >_<

04-20-2012, 09:00 PM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
RE: [CHALLENGE THREAD]

(04-20-2012, 09:00 PM)Homicide13 Wrote: D: So you just used a for(;;Wink statement to check all the possible collisions? I feel like that would lag. >_<
Not really, you only have to do one pass when you add a node. AddAttachedPropToProp is probably a bigger a bottleneck for a reasonable number of walls as that requires reading several files from disk. Besides, if you run the whole thing without using a timer (I used a timer so i could see what it was doing) in the OnStart routine all the work is done in the loading screen anyway.
(This post was last modified: 04-20-2012, 11:57 PM by Apjjm.)
04-20-2012, 11:50 PM
Find
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
RE: [CHALLENGE THREAD]

(04-20-2012, 11:50 PM)Apjjm Wrote:
(04-20-2012, 09:00 PM)Homicide13 Wrote: D: So you just used a for(;;Wink statement to check all the possible collisions? I feel like that would lag. >_<
Not really, you only have to do one pass when you add a node. AddAttachedPropToProp is probably a bigger a bottleneck for a reasonable number of walls as that requires reading several files from disk. Besides, if you run the whole thing without using a timer (I used a timer so i could see what it was doing) in the OnStart routine all the work is done in the loading screen anyway.
Ah ok, that makes sense.



04-21-2012, 01:34 AM
Find
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
RE: [CHALLENGE THREAD]

Time's up. It's time for Homicide13 to post the solution. Apjjm to post his, and the challenge he will purpose.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
04-24-2012, 02:54 PM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
RE: [CHALLENGE THREAD]

A* Search solution:
Code
Additional files

Other (original) solution (for completeness sake):
Spoiler below!

Code
Uses the same file set as the A* solution.

04-24-2012, 09:33 PM
Find
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
RE: [CHALLENGE THREAD]

Alright, if someone else comes up with a solution should I also post mine as well then?

04-24-2012, 09:51 PM
Find
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
RE: [CHALLENGE THREAD]

No, now you give me yours so I can place it in the main post. Remember that it must all be explained so people know what was expected.

There will be a link for Apjjm post too.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
(This post was last modified: 04-24-2012, 09:55 PM by nemesis567.)
04-24-2012, 09:54 PM
Find
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
RE: [CHALLENGE THREAD]

Alright, here is my solution: http://www.mediafire.com/?xts0jk052z5dtvl
It's just a really simple solution that keeps the box moving forward at an angle and has it bounce off any walls that it might run in to.

04-25-2012, 12:20 AM
Find
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
RE: [CHALLENGE THREAD]

It's time for Apjjm to release his challenge.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
04-26-2012, 12:02 AM
Find




Users browsing this thread: 5 Guest(s)