This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

PiRocks
PiRocks presents ...

2009/4/6

Programming Language

This is a very primitive programming language
that I through together. To use it, click on a
programing block on the left side of the screen.
The programming block will appear at the next
available location. Once you have put in all the
programming blocks that are in your program, click
the Render block at the bottom right corner. When
you click render, a ball will appear and move acording
to the actions you put in. The blue programming blocks
are movements-up, down, left, right. The other blue
programming blocks are diagonally-up, left(DoagUL);
diagonally-up, right(DiagUR); diagonally-down, right(DiagDR);
and diagonally-down, left(DiagDL); The turquoise
block is a keyboard block. It allows you to prss a
key and make the ball move. To use the keyboard block,
press the key you want to be pressed for the action to
take place-that key should come up in the empty
space(if the key doesn't come up, you need to use another key).
Next click on the keyboard block and a copy of it
will apear on the next available space. Then, click
on the movement block you want to be executed when
the key is pressed. Once you have done this, the
movement block will appear under the keyboard
block(you can see through the keyboard block).
Now, if you click on the render button, the ball
will move according to the movement action you
selected only if the designated key is pressed.
Beneath the Render block, there is another block
called Place Walls, if you click it, you can see
how the scenario will look right after you click
Render. Once you have clicked Place Walls, you can
then click anywhere on the screen to place a wall.
when click Render the Scenario will have walls in it
wherever you placed them ealier. Beneath the Place
Walls Block there is a block that reads Gravity off,
if you click this block, it will change to Gravity on
and vice versa. When you select Render, Gravity will pull
the ball down if it is not on a wall. Beneath the Gravity
block, there is a a block that reads Speed: 50, this number
is how fast your program will run. If you left click this block,
the speed will increase. If you right click, it will decrease.

Note: Walls will not work as obstacles if Gravity is not enabled.

10521 views / 22 in the last 7 days

4 votes | 0 in the last 7 days

Tags: mouse simulation with-source programming gui language program

open in greenfoot
Your browser is ignoring the <APPLET> tag.
A new version of this scenario was uploaded on Mon Apr 06 15:31:04 UTC 2009
A new version of this scenario was uploaded on Mon Apr 06 15:31:50 UTC 2009
mjrb4mjrb4

2009/4/6

Hiya, nice idea here. At the moment though things seem to be flashing by very quickly, perhaps it'd be better with the speed slowed down a fair bit or with the speed slider still in place so the speed can be altered?
A new version of this scenario was uploaded on Tue Apr 07 17:30:14 UTC 2009
PiRocksPiRocks

2009/4/7

I just added a speed button so that you can control what speed the program runs at.
A new version of this scenario was uploaded on Sat Apr 11 22:43:26 UTC 2009
MathManiacMathManiac

2010/3/13

Unrelated: Can you help me please? I am new 2 Greenfoot and my audio isn't working, so I can't look at the videos, and the tutorials in text are useless.
MathManiacMathManiac

2010/3/13

Never mind.

Want to leave a comment? You must first log in.

Who likes this?

JetLennit MathManiac mik programmer