Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 14 Votes - 2.93 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge Threadᆦ ᆦ ᆦ
Author Message
Apjjm Offline
Super Moderator

Posts: 444
Joined: Apr 2011
Reputation: 42
Post: #131
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 all posts by this user Quote this message in a reply
Homicide13 Offline
Senior Member

Posts: 323
Joined: Nov 2010
Reputation: 14
Post: #132
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 all posts by this user Quote this message in a reply
Apjjm Offline
Super Moderator

Posts: 444
Joined: Apr 2011
Reputation: 42
Post: #133
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 all posts by this user Quote this message in a reply
Homicide13 Offline
Senior Member

Posts: 323
Joined: Nov 2010
Reputation: 14
Post: #134
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 all posts by this user Quote this message in a reply
nemesis567 Offline
Posting Freak

Posts: 840
Joined: May 2011
Reputation: 10
Post: #135
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 all posts by this user Quote this message in a reply
Apjjm Offline
Super Moderator

Posts: 444
Joined: Apr 2011
Reputation: 42
Post: #136
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 all posts by this user Quote this message in a reply
Homicide13 Offline
Senior Member

Posts: 323
Joined: Nov 2010
Reputation: 14
Post: #137
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 all posts by this user Quote this message in a reply
nemesis567 Offline
Posting Freak

Posts: 840
Joined: May 2011
Reputation: 10
Post: #138
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 all posts by this user Quote this message in a reply
Homicide13 Offline
Senior Member

Posts: 323
Joined: Nov 2010
Reputation: 14
Post: #139
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 all posts by this user Quote this message in a reply
nemesis567 Offline
Posting Freak

Posts: 840
Joined: May 2011
Reputation: 10
Post: #140
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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)