Slime Volleyball

449 views
Skip to first unread message

Scott Ferguson

unread,
Sep 11, 2015, 4:51:41 PM9/11/15
to app-inventor-de...@googlegroups.com
Here is my original App Inventor version of the popular Slime Volleyball game.

(For a version that works on phones, the emulator or tablets go here.)


Just drag the blue player to bounce the volleyball over the net.

If the ball hits the ground, a point is scored by the opponent.

Play the game then look at the procedure below.


The red player tracks the position of the volleyball and attempts to:

  • hit it back over the net
  • keep the ball from hitting the ground
  • stay within the bounds of it's side of the court
But when I look at the red player's movements during game play, they appear to be intelligent, or planned.
I just thought it was interesting that you can get that kind of effect with so few blocks and such simple logic

As a side effect of the above procedure, if the ball hits the ground it is stopped, but the red player keeps trying to move under it to push it over the net.
That results in an amusing jiggle back and forth that looks like a fit of frustration at missing the ball.
I could have fixed this by damping the oscillations, but decided it is too cute to fix!

---
sf


SlimeVolleyball.aia
SlimeVolleyball.apk

Abraham Getzler

unread,
Sep 11, 2015, 5:48:12 PM9/11/15
to app-inventor-de...@googlegroups.com
Very interesting!

I set the emulator running, and it's a very small beach with big slimes.

Did the original coder use the point-to-center and reverse-direction bounce technique
or was it yours?

ABG


On Fri, Sep 11, 2015 at 4:51 PM, Scott Ferguson <scottfr...@gmail.com> wrote:
Here is an App Inventor version of the popular Slime Volleyball game.


Just drag the blue player to bounce the volleyball over the net.

If the ball hits the ground, a point is scored by the opponent.

Play the game then look at the procedure below.


The red player tracks the position of the volleyball and attempts to:

  • hit it back over the net
  • keep the ball from hitting the ground
  • stay withing the bounds of it's side of the court
But when I look at the red player's movements during game play, they appear to be intelligent, or planned.
I just thought it was interesting that you can get that kind of effect with so few blocks and such simple logic

As a side effect of the above procedure, if the ball hits the ground it is stopped, but the red player keeps trying to move under it to push it over the net.
That results in an amusing jiggle back and forth that looks like a fit of frustration at missing the ball.
I could have fixed this by damping the oscillations, but decided it is too cute to fix!

---
sf


--
(you have received this message from the App Inventor Developers Library)
---
You received this message because you are subscribed to the Google Groups "App Inventor Developers Library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-develope...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

SlimeVolleyball_Screenshot.png
Colliding_with_Volleyball.png

Scott Ferguson

unread,
Sep 11, 2015, 6:21:52 PM9/11/15
to app-inventor-de...@googlegroups.com
That was the Scratch coder's idea.
I should make the players a percentage of the width or height of the screen.
I tested it on two tablets, but not the emulator.
It should not be too hard to make it work on a phone if everything is made 'responsive'.
Thanks for testing it!
---
sf
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-developers-library+unsubscribe@googlegroups.com.

Scott Ferguson

unread,
Sep 17, 2015, 9:47:27 AM9/17/15
to App Inventor Developers Library
Here is a link to a responsive version of the game which should work on a phone or the emulator: https://groups.google.com/forum/#!category-topic/app-inventor-developers-library/other/QGTKgWA5IDw
---
sf

On Friday, September 11, 2015 at 4:48:12 PM UTC-5, Abraham Getzler wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-developers-library+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages