This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-08-07 05:17:33

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Xenon Collab Camp

I decided to do this.  tongue

OK guys, what are we making?

Offline

 

#2 2011-08-07 19:10:25

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Collab Camp

I like my idea.


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&type=square&user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=applejack

Offline

 

#3 2011-08-10 09:49:53

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Collab Camp

Bump. Only 5 more days to submit a beta!

Offline

 

#4 2011-08-10 11:04:01

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Collab Camp

Ugh, who's idea are we going with?


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&type=square&user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=applejack

Offline

 

#5 2011-08-10 11:08:29

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Collab Camp

Collab thing?  How about a game or something.  I know how we could make 8-ball.

Offline

 

#6 2011-08-10 11:09:33

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Collab Camp

Vote.  big_smile
Scimonster: 1
applejack:   1

EDIT: amcerbu, would we show the math? We want this to have something to do with math.  wink

Last edited by scimonster (2011-08-10 11:10:30)

Offline

 

#7 2011-08-10 11:16:21

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Collab Camp

You mean a story about a pool game as you play it? "applejack broke... and nothing went in! Now it's scimonster's turn, he seems to be going for the 13..  but he got the 11 in instead!"

amcerbu wrote:

Collab thing?  How about a game or something.  I know how we could make 8-ball.

Last edited by applejack (2011-08-10 11:16:36)


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&type=square&user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=applejack

Offline

 

#8 2011-08-10 12:40:37

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Collab Camp

Amcerbu scratched on the 8-ball.  Sci and Applejack win!

Offline

 

#9 2011-08-10 13:41:53

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Collab Camp

How about you start on making a pool game with your elastic collision or something, and I'll make the graphics. Sci can work on the story.

amcerbu wrote:

Amcerbu scratched on the 8-ball.  Sci and Applejack win!


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&type=square&user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=applejack

Offline

 

#10 2011-08-10 15:05:09

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Collab Camp

I've actually already got graphics.  If I can, I'll upload them later today.

Offline

 

#11 2011-08-10 15:06:55

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Collab Camp

Have you started?

amcerbu wrote:

I've actually already got graphics.  If I can, I'll upload them later today.


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&type=square&user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=applejack

Offline

 

#12 2011-08-10 15:45:49

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Collab Camp

No, not yet.

Offline

 

#13 2011-08-10 18:15:52

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Collab Camp

Why not?

amcerbu wrote:

No, not yet.


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&type=square&user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=applejack

Offline

 

#14 2011-08-10 19:59:44

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Collab Camp

Haven't had so much time - school starts next week and I have a good bit of AP summer work.

Offline

 

#15 2011-08-10 20:50:10

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Collab Camp

School starts tomorrow for me.

amcerbu wrote:

Haven't had so much time - school starts next week and I have a good bit of AP summer work.


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&type=square&user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=applejack

Offline

 

#16 2011-08-11 13:35:55

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Collab Camp

Anyway, I'll upload the images to my account in a few minutes.

EDIT: Here's the link:

Pool Sprites

Last edited by amcerbu (2011-08-11 13:47:07)

Offline

 

#17 2011-08-11 22:25:13

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Collab Camp

YAY!

amcerbu wrote:

Anyway, I'll upload the images to my account in a few minutes.

EDIT: Here's the link:

Pool Sprites


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&type=square&user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=applejack

Offline

 

#18 2011-08-12 02:35:22

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Collab Camp

Nice sprites.  smile  Who's going first? I'll try to get something, but I'm not so good at the trig that's needed.

Offline

 

#19 2011-08-12 11:25:02

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Xenon Collab Camp

I'm not going to be able to help, so: Good luck!  wink
PS Please don't mention me in the credits, I didn't help...
PSS Remember, it's a story, not a game. How's pool a story?

Last edited by Hardmath123 (2011-08-12 11:26:46)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#20 2011-08-12 14:22:13

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Collab Camp

Maybe this won't be for collab camp, but just another Xenon project.  Hardmath is right- pool's not really a story.  If you guys want to do something for the "official" collab challenge, let's put this on hold for a bit. 



Otherwise, I've thought a good bit about how this project should work.  The main problem we will have to deal with is collision detection. 

A standard game of 8-ball includes 16 balls: the white cue ball, 7 solids, 7 stripes, and the 8 ball.  That means that in each frame, Scratch will have to test a total of...

15+14+13+12+11+10+9+8+7+6+5+4+3+2+1 = 120 possible collisions! (each ball can collide with any ball except itself)

In my "Elastic Collision Multi" projects, I used a list that stored all possible collisions between any two balls.  For five balls, the list would read...

Code:

1 2 1 3 1 4 1 5 2 3 2 4 2 5 3 4 3 5 4 5

Each set of consecutive members represents two "names" of balls (since I stored their positions and velocities in lists, "1" would be both the name of the ball, and the location in each list that held 1's data).

Unfortunately, Scratch's repeats are simply too slow to iterate through 120 possibly combinations.  So, we are presented with two options: 

Option 1: Hardcode everything.  This would be an incredible hassle, considering that we would end up assembling code for 120 collisions.  The possibility that we made a mistake would be large, and additionally, every time a ball sinks, we will be testing unnecessary collisions.  The one advantage is that it doesn't require the use of turbo mode, so it would be more accessible. 

Option 2: Use Flash turbo mode.  This solves a number of our problems (I know for sure that my "Elastic Collision" project works fine in Flash turbo with 16 objects).  The only thing we need to deal with is framerate, so a "wait 0 seconds" block might be placed before drawing each frame, to prevent the undesirable effect of only seeing the final frame, after collisions have occurred.  In addition, we can delete unnecessary items from the collision list as the game goes on and balls are pocketed. 

Tell me what you think.

Offline

 

#21 2011-08-13 11:03:51

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Collab Camp

Option 3: Use sprites...

amcerbu wrote:

Maybe this won't be for collab camp, but just another Xenon project.  Hardmath is right- pool's not really a story.  If you guys want to do something for the "official" collab challenge, let's put this on hold for a bit. 



Otherwise, I've thought a good bit about how this project should work.  The main problem we will have to deal with is collision detection. 

A standard game of 8-ball includes 16 balls: the white cue ball, 7 solids, 7 stripes, and the 8 ball.  That means that in each frame, Scratch will have to test a total of...

15+14+13+12+11+10+9+8+7+6+5+4+3+2+1 = 120 possible collisions! (each ball can collide with any ball except itself)

In my "Elastic Collision Multi" projects, I used a list that stored all possible collisions between any two balls.  For five balls, the list would read...

Code:

1 2 1 3 1 4 1 5 2 3 2 4 2 5 3 4 3 5 4 5

Each set of consecutive members represents two "names" of balls (since I stored their positions and velocities in lists, "1" would be both the name of the ball, and the location in each list that held 1's data).

Unfortunately, Scratch's repeats are simply too slow to iterate through 120 possibly combinations.  So, we are presented with two options: 

Option 1: Hardcode everything.  This would be an incredible hassle, considering that we would end up assembling code for 120 collisions.  The possibility that we made a mistake would be large, and additionally, every time a ball sinks, we will be testing unnecessary collisions.  The one advantage is that it doesn't require the use of turbo mode, so it would be more accessible. 

Option 2: Use Flash turbo mode.  This solves a number of our problems (I know for sure that my "Elastic Collision" project works fine in Flash turbo with 16 objects).  The only thing we need to deal with is framerate, so a "wait 0 seconds" block might be placed before drawing each frame, to prevent the undesirable effect of only seeing the final frame, after collisions have occurred.  In addition, we can delete unnecessary items from the collision list as the game goes on and balls are pocketed. 

Tell me what you think.


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&type=square&user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=applejack

Offline

 

#22 2011-08-13 11:48:03

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Xenon Collab Camp

Unfortunately, using sprites won't take away the 120 possible collision count.

Offline

 

#23 2011-08-13 14:34:00

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Collab Camp

HM said it wouldn't be a story, mut it can be.

amcerbu wrote:

Unfortunately, using sprites won't take away the 120 possible collision count.


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&type=square&user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=applejack

Offline

 

#24 2011-08-13 14:44:16

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Xenon Collab Camp

Only two more days! I'm going to try my idea, a story about a kid who learns to like math. It will be interactive in the way that the user can try out the same thing the guy is.

Offline

 

#25 2011-08-13 23:48:16

applejack
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: Xenon Collab Camp

If you need graphics...

scimonster wrote:

Only two more days! I'm going to try my idea, a story about a kid who learns to like math. It will be interactive in the way that the user can try out the same thing the guy is.


http://i.imgur.com/zKzps.png
http://blocks.scratchr.org/API.php?action=onlineStatus&type=square&user=applejack -I'm http://blocks.scratchr.org/API.php?action=onlineStatus&type=text&user=applejack

Offline

 

Board footer