HOME | DD

willmh93 — Physics sandbox

Published: 2009-11-17 20:45:11 +0000 UTC; Views: 23619; Favourites: 133; Downloads: 252
Redirect to original
Description ------------
controls
arrow keys = move ball while playing
hold control = edit points
------------

|l4m|2d|4n|31|l4n|31|4r|3j|l4r|3j|51|42|l51|42|5h|
4f|l5h|4f|60|4o|l60|4o|6m|4v|l6m|4v|7f|4y|l7f|4y|8
f|4y|l5y|2c|5y|2w|l5y|2w|64|3a|l64|3a|6i|3g|l6i|3g
|6u|3j|l6u|3j|7k|3n|l7k|3n|8i|3o|l8i|3o|97|3q|l97|
3q|9x|3w|c8s|5d|j|l79|73|5m|6z|l5m|6z|4o|6t|l4o|6t
|3v|6j|l3v|6j|3c|6b|l3e|6c|2u|6a|l2u|6a|2a|6e|l2a|
6e|1x|6k|l1x|6k|1q|6u|l1q|6u|1o|79|l1o|79|1p|7j|l1
p|7j|1u|7s|l1u|7s|22|80|l22|80|2c|85|l2c|85|2q|87|
l2q|87|33|86|l33|86|3f|82|l3f|82|3p|7y|l3p|7y|41|7
u|l41|7u|4a|7s|l4a|7s|4k|7s|l4k|7s|4z|7v|l4z|7v|62
|8b|l62|8b|6d|8j|l8k|5v|78|5z|l78|5z|5r|5u|l5r|5u|4u|5n|l4u
|5n|42|5c|l42|5c|3g|54|l3g|54|2w|51|l2w|51|27|55|l
27|55|1p|5b|l1p|5b|1a|5k|l1a|5k|x|5x|lx|5x|p|6a|lp
|6a|i|6s|li|6s|i|78|li|78|k|7q|lk|7q|o|80|lo|80|u|
8c|lu|8c|11|8l|l11|8l|1c|8u|l1c|8u|1q|93|l1q|93|22
|98|l22|98|2f|9b|l2f|9b|2v|9d|l2v|9d|39|9e|l39|9e|
3q|9c|l3q|9c|41|98|l41|98|4h|94|l4h|94|4u|94|l4u|9
4|58|97|l58|97|5l|9b|l5l|9b|5w|9h|l5w|9h|67|9o|eun
defined|undefined|undefined|undefined|ls|u|i|u|ls|
11|i|15|lu|17|k|1e|lw|1e|n|1l|l12|1l|t|1t|lundefin
ed|undefined|undefined|undefined|l18|1p|10|1z|l1c|
1s|17|24|l1i|1v|1g|27|l1o|1w|1n|2a|l1t|1w|1u|2b|lu
ndefined|undefined|undefined|undefined|l22|2a|23|1
y|l29|2a|2b|1y|l2f|2b|2i|20|l2m|2d|2p|20|l2t|2c|2x
|20|l30|2b|36|21|l36|2d|3d|22|l3f|2e|3l|23|l3n|2f|
3u|25|l3v|2e|46|26|l46|2e|4e|28|l5y|2c|62|4|c7k|1m
|o|c9z|1p|r|c3r|3p|j|c1t|2y|b|c1q|41|e|cm|3b|e|cq|
4u|c|c2x|7b|f|cm|9h|e|c10|ag|d|c20|9y|d|c2w|aj|b|c
3w|9x|e|c4w|ai|d|l21|h|1s|8|l1s|8|1e|8|l1e|8|10|c|
l10|c|s|j|ls|j|s|u|lundefined|undefined|undefined|
undefined|l9x|3w|aa|44|laa|44|ah|4g|lah|4g|aj|4r|l
aj|4r|ak|56|lak|56|aj|5l|laj|5l|ah|5w|lah|5w|ab|66
|lab|66|a4|6h|la4|6h|9w|6p|l9w|6p|9n|6v|l9n|6v|9e|
6z|l93|71|9e|6z|l93|71|79|73|l67|9o|6i|9t|l6i|9t|6
w|9y|l6w|9y|79|9z|l79|9z|7l|9z|l6d|8j|6q|8n|l6q|8n
|70|8q|l70|8q|7d|8r|l7d|8r|7n|8p|l8j|89|8u|86|l8u|
86|9a|84|l9a|84|9l|84|l9l|84|b3|84|eundefined|unde
fined|undefined|undefined|l7l|9z|82|9u|l82|9u|8g|9
r|l7n|8p|7y|8m|l7y|8m|87|8i|l87|8i|8j|89|e8g|9r|b3
|9s|c8k|2s|e|c8r|d|9|cam|3a|a|c9n|34|b|c7d|2w|b|c6
h|2a|9|c6n|k|b|cak|79|e|c7c|7v|f|c69|7i|9|c5e|7c|8
|c4k|7b|8|c3t|75|8|c5z|af|d|c7a|aj|a|cundefined|un
defined|undefined|c8d|7k|8|c95|7i|7|cundefined|und
efined|undefined|c9t|7f|7|caf|g|8|l2x|2|2k|3|l2k|3|2k|b|l2k
|b|2w|b|l2w|b|2w|l|l2w|l|2j|l|l3d|1|3d|k|l34|1|3m|
2|l3n|i|3w|2|l3w|2|43|j|l3q|a|41|a|l4a|l|4a|3|l4a|
3|4l|3|l4l|3|4l|b|l4l|b|4b|b|l4l|b|4o|k|l51|4|51|k
|l4s|2|5a|4|c4m|4s|a|c5h|55|7|c68|5c|7|c6z|5f|8|cu
ndefined|undefined|undefined|c7s|5f|7|cb|5t|9|c2y|
4b|8|c2u|33|8



edit: Now it remembers the last thing you drew when you come back to it
Related content
Comments: 130

Sandy33311 In reply to ??? [2009-11-21 02:09:05 +0000 UTC]

Wow, it is very well organized and it's also mind-boggling. My jaw was dropping as I scrolled down and down and down your email!

👍: 0 ⏩: 1

willmh93 In reply to Sandy33311 [2009-11-21 11:44:54 +0000 UTC]

hehe. as it gets bigger and bigger, it gets harder to improve. even though it cut off a couple hundred lines there, that was only about 2000 lines.

That sounds like alot, but when you compare it to the average number of lines that goes into a modern xbox game (about 5-10 million lines), it really isn't much

but thankyou! i worked hard on this one, doubt i'll do anything like this for a while.

👍: 0 ⏩: 1

Sandy33311 In reply to willmh93 [2009-11-23 06:28:27 +0000 UTC]

It isn't much compared to a video game, but it's still a LOT! And you're still amazing!

👍: 0 ⏩: 0

CamelowWw In reply to ??? [2009-11-18 14:51:27 +0000 UTC]

WAWW love it *.**

👍: 0 ⏩: 1

willmh93 In reply to CamelowWw [2009-11-18 16:46:23 +0000 UTC]

thanks

👍: 0 ⏩: 1

CamelowWw In reply to willmh93 [2009-11-18 18:12:03 +0000 UTC]

you're welcome

👍: 0 ⏩: 1

willmh93 In reply to CamelowWw [2009-11-19 08:12:42 +0000 UTC]

👍: 0 ⏩: 0

0rava [2009-11-18 05:35:07 +0000 UTC]

It's awesome \o\
Did you take a tutorial for the savesystem, if so, remember url? I'd love to learn to make something like that.

👍: 0 ⏩: 1

willmh93 In reply to 0rava [2009-11-18 16:45:57 +0000 UTC]

thankyou

Nope, sorry I made this with no help from the web. I can explain how I made the loading/saving work if you want.


say you have the code for two lines:

|l1z|3s|4t|4r|l44|6l|7h|5v

that split up into:

|l1z|3s|4t|4r
|l44|6l|7h|5v


the '|' character is my delimiter, so if we replace them with spaces for readability you have:

l1z 3s 4t 4r
l44 6l 7h 5v


the first character is an 'l' for "line", then you're left with these four points for each line:

1z 3s 4t 4r
44 6l 7h 5v


these number are in base-36 to make it as short as possible.
that means the points for the first line are:

Point 1 X = 1z = 71
Point 1 Y = 3s = 136

Point 2 X = 4t = 173
Point 2 Y = 4r = 171


or (71, 136) , (173, 171)

use the flash functions .toString(36) to convert to base 36 and and parseInt("mynum", 36) to convert back to decimal.

Hope that wasn't too hard to understand, but thanks!

👍: 0 ⏩: 2

JohnJensen In reply to willmh93 [2010-01-19 22:15:59 +0000 UTC]

Very nice system!

👍: 0 ⏩: 1

willmh93 In reply to JohnJensen [2010-01-21 11:24:24 +0000 UTC]

thanks alot

👍: 0 ⏩: 0

0rava In reply to willmh93 [2009-11-19 05:45:10 +0000 UTC]

Not hard at all to understand, now that you've explained it first. Thanks.

👍: 0 ⏩: 1

willmh93 In reply to 0rava [2009-11-19 08:11:23 +0000 UTC]

good hope i helped ^^
you're welcome (:

👍: 0 ⏩: 1

0rava In reply to willmh93 [2009-12-02 14:13:25 +0000 UTC]

Finally got around to using this somewhere: [link]
Decided not to go with base36 for reasons unknown. Plus it's not yet quite finished but works.
Thank you again for the help.

👍: 0 ⏩: 1

willmh93 In reply to 0rava [2009-12-02 16:24:20 +0000 UTC]

You're welcome! i'm glad i helped
turned out nicely on yours.

mine still lacks saving the ball position & environment properties, but I can't be bothered changing it

👍: 0 ⏩: 0

Lost-Lonely-Luna In reply to ??? [2009-11-18 05:14:35 +0000 UTC]

Ahaha, thats so good.
I had so much fun just taking the gravity on and off XD

👍: 0 ⏩: 1

willmh93 In reply to Lost-Lonely-Luna [2009-11-18 16:28:41 +0000 UTC]

thank's alot :'D
hehe, i found it fun to put gravity on 0, friction on 0, bounce on 100, and watch it bounce forever off everything ^^

thanks again :]

👍: 0 ⏩: 0

Sandy33311 [2009-11-18 02:11:23 +0000 UTC]

Well, here is stupid Sandy again. I think it's very well done, but I don't get it. I made circles and everything and then pressed play (the arrow) and the only thing that happened is that the ball fell down. ??

👍: 0 ⏩: 1

willmh93 In reply to Sandy33311 [2009-11-18 16:23:46 +0000 UTC]

it's pretty simple, and do you mean the ball went through the lines and circles? because that shouldn't happen try again, maybe it just didn't load it properly.

seems to be working for everybody else, but start with just one simple line and see if it bounces off it.

but thanks alot

👍: 0 ⏩: 1

Sandy33311 In reply to willmh93 [2009-11-20 03:18:20 +0000 UTC]

Oops, I replied to this directly on your dev page and not from my message center.

👍: 0 ⏩: 0

geexter In reply to ??? [2009-11-18 02:02:20 +0000 UTC]

Wicked COOLLLL!!!!

👍: 0 ⏩: 1

willmh93 In reply to geexter [2009-11-18 16:23:56 +0000 UTC]

thanks alot 8D

👍: 0 ⏩: 1

geexter In reply to willmh93 [2009-11-19 02:46:43 +0000 UTC]

No problem <3!!

👍: 0 ⏩: 0

xtrashxqueenx In reply to ??? [2009-11-17 21:02:29 +0000 UTC]

EVIL D:

-totally-not-constructive comment-

👍: 0 ⏩: 1

willmh93 In reply to xtrashxqueenx [2009-11-18 00:23:13 +0000 UTC]

eh O.o that doesn't even make sence xD
i'm not evil *purrs*

glad you liked it.. x3

👍: 0 ⏩: 0

TomPField [2009-11-17 20:54:48 +0000 UTC]

nice, good implementation. well done

👍: 0 ⏩: 1

willmh93 In reply to TomPField [2009-11-18 00:19:31 +0000 UTC]

thanks alot :3 nice to know as i put way too much time into this

👍: 0 ⏩: 1

TomPField In reply to willmh93 [2009-11-18 07:15:36 +0000 UTC]

haha, been there, but I think the result justifies that

👍: 0 ⏩: 1

willmh93 In reply to TomPField [2009-11-19 08:10:29 +0000 UTC]

thanks

👍: 0 ⏩: 0


<= Prev |