Introduction To Greenfoot

Slides:



Advertisements
Similar presentations
Teaching with Greenfoot
Advertisements

Getting to know Greenfoot
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
Animation Mrs. C. Furman. Animation  We can animate our crab by switching the image between two pictures.  crab.png and crab2.png.
Program: Little Crab Mr Gano.
Lesson One: The Beginning Chapter 2: Processing Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from built-in help reference.
Greenfoot Asteroids Mrs. C. Furman August 16, 2010.
Wombats Creating Games with Greenfoot The Walker School – Games and Simulations
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2010/2011.
BlueJ: a very quick introduction. BlueJ BlueJ is an IDE (Interactive Development Environment). It includes –an editor, which you use to write your programs.
Scite Scintilla integrated text editor. Click here.
Lesson One: The Beginning
13-Jul-15 BlueJ: A Very Quick Introduction. BlueJ BlueJ is an IDE (Integrated Development Environment). It includes an editor, which you use to write.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
Princess & Dragon Part 4: Breathing Fire—Adding Effects to Alice By Elizabeth Liang under the direction of Professor Susan Rodger Duke University June.
ICT Functional Skills Managing Files and Folders.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
Created by NW 2012 – please note all copyright on images used is property of copyright holder. Note: some of the more complicated descriptions are taken.
KJOlinski.com - RapidHMI INTRODUCING RapidHMI AND PLCExplorer.
FUNDAMENTALS OF PROGRAMMING SM1204 SEMESTER A 2012.
Integrated Development Environments (IDEs) CS 21a: Introduction to Computing I First Semester,
Using Eclipse. What is Eclipse? The Eclipse Platform is an open source IDE (Integrated Development Environment), created by IBM for developing Java programs.
VIDEO GAME PROGRAMMING Video Game Programming Junior – DigiPutt INSTRUCTOR TEACHER’S ASSISTANT.
Greenfoot. Getting Started Open the Greenfoot download site: Select Greenfoot
 We are going to learn about programming in general…How to think logically and problem solve. The programming language we will use is Python. This is.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
CSE 113 Introduction to Computer Programming Lecture slides for Week 2 Wednesday, September 7 th, 2011 Instructor: Scott Settembre.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
JCreator CS 21a: Introduction to Computing I Department of Information Systems and Computer Science Ateneo de Manila University.
Booting Ubuntu Linux Live CSCI 130 – Fall 2008 Action Lab Dr. W. Jones.
Chapter 1 - Getting to know Greenfoot
Adding Documents to OnCourse. Add a Document Look for the Documents tab and click it.
4th Grade Book Publishing Project: Animal ABC Book
Creating Projects in JCreator Computer Science 40S.
Hello World in the Forte IDE An introduction to the Forte IDE (integrated development environment) writing the classic “Hello World” program in Java.
Creating Greenfoot Backgrounds. GIMP: GIMP: is a software graphics editor is a software graphics editor is similar to Adobe Photoshop – but FREE. is similar.
Saving Work to Your School Server Click through this presentation at your own speed. Use it as a review or a guide while saving a project.
Greenfoot Game Programming Club.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
Introduction to Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland.
Lesson 1: Writing a program. Java Java is a programming language Computer cannot understand it, though it can be translated ( compiled ) so a computer.
Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,
Advanced Stuff Learning by example: Responding to the mouse.
Kakihijau.googlepages.com Introduction To Greenfoot Part-1.
How to Install Eclipse Click hereClick here to download Eclipse.
Review for test! Alice Chapter 1&2 Test is tomorrow! - March 26 th March 25th.
Delphi first steps. How to create a project Open – File – New – VCL Forms Application.
Introduction to Eclipse Programming with an Integrated Development Environment.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
How to Create and Extract a Zip Folder Mark K. Jowett, Ph.D.
How to Execute first program in Borland C++. Install Borland C++ Download Borland C++ from LMS – rland%20C++%20V3.1.ziphttp://vulms.vu.edu.pk/Courses/CS609/Downloads/Bo.
Chapter 2 – The Little Crab Program:. Little Crab Scenario Inheritance: The Arrows Denote Hierarchy Crab is an Animal Animal is an Actor Therefore, It.
Creating Scenarios In Greenfoot. Greenfoot Scenarios are made up of: Greenfoot Scenarios are made up of: A World class. A World class. Actor classes.
Using Placeholders to Simplify your Methods: Learning Methods, Part 2 By Deborah Nelson Duke University Professor Susan Rodger June 16, 2008.
Creating a Zip File with a Password. 1.Right Click on the File or Folder you want to Zip. 2.Choose “Add to Zip”
DOWNLOADING FILES FROM THE OERB Teacher Version. Step 1 log onto: elearningontario.ca Click on the elearning logo to enter the website.
Dreamweaver MX. 2 Timeline Overview (p. 480) n Animations can be achieved with DHTML (__________ HTML) using JavaScript code and _____ or later browsers.
Chapter 4 - Finishing the Crab Game
Chapter 4 - Finishing the Crab Game
Dropbox Basics.
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
An introduction to programming Created by Dr. Randy Pausch
The Little Crab Scenario
Pages.
OS Sim (Operating System Concepts Simulator)
Greenfoot November 8, 2009.
Presentation transcript:

Introduction To Greenfoot

What is Greenfoot? Greenfoot: is an Integrated Development Environment. (Remember, an IDE is a program that lets you create other programs) uses the Java Programming Language. is aimed at creating 2D graphical applications.

Greenfoot is great for creating: Games (biomekanoidchicken) Applications Simulations (ants)

In Greenfoot, programs and applications are called “Scenarios.” To open a Scenario: Open Greenfoot Scenario  Open Scenario Find the Greenfoot Folder  Find the Scenario folder  Look for this icon:

Greenfoot uses 2 superclasses: 1. World – The instance of this class becomes the world in which the actor objects do things. 2. Actor – This class contains data properties and methods that allow for actor objects to exist in the instance of the world class. (We will learn more about super and sub classes later…)

The Greenfoot IDE Class Diagrams World Object Actor Object

If a class is striped, it needs to be compiled. Compiling classes: If a class is striped, it needs to be compiled.

You can right-click a class, to see its constructor. Select the constructor, and then you can add an instance of the class to the world. Adding objects to the world: Shift-Click: Another way of adding objects is to click on the class, press shift, and click in the world.

The Run button simply calls the Act method over and over again. Running the World: The Run button simply calls the Act method over and over again. The Act button calls the Act Method. The objects in the world will do whatever they are programmed to do. The speed at which the Run button calls the act method can be altered here.

To see an object’s methods: Right-Click an object in the world. You can also execute those methods. This is great for interactive testing.

To alter the code for a class: Double-click the class. This opens the BluJ editor. Change the code. Save or Compile!

Question: Does the Crab class from the demo have a move( ) method defined in it?

There is no move( ) method in the Crab class There is no move( ) method in the Crab class. So where is that method coming from? Notice how the Crab class from the demo has a class above it named Animal. The Crab class has access to ALL of the Animal class’ methods.

Here is the move( ) method in the code from the Animal class: This Crab class uses the Animal class’ move( ) method to move in the world. We will learn more about this later….

Code that you used today: move( ); //This moves the object forward. turn(-12); //This turns the object -12 degrees if(Greenfoot.isKeyDown(“left”)) { turn(12); } //This code turns the object whenever the left key is pressed down.

Opening Greenfoot Projects from www.classofcrow.com: Mister Crow will be giving you incomplete Greenfoot projects (for now). These will usually be found on the website in a zipped format. “Zipped” means that a folder with files is compressed and zipped into ONE file. You have to have a program like 7-zip to UNZIP those files. 7-Zip is free and it is already loaded on our computers. Download the file  Right-click on it Select “7-Zip”  Select “Extract Here”  The files and folder will be unzipped.

Saving Greenfoot Projects for grading: When you are finished with your project go to: Scenario  “Save a copy as” Name the folder: crow(period)_(ProjectNumber)_(LastNameFirstInitial) For Example: crow3_121_SmithJ This folder will go in the CLASS folder on the due date.