Libgdx Notes

Total Page:16

File Type:pdf, Size:1020Kb

Libgdx Notes LibGDX Notes LibGDX Notes These notes assume that you have a familiarity with Java programming. If you do program in Java you probably use an integrated development environment (IDE) already. There are many possible choices for IDE’s, for beginners: BlueJ (www.bluej.org) DrJava (www.drjava.org) For more advanced programmers there is: Eclipse (eclipse.org) NetBeans (netbeans.org) IntelliJ IDEA (www.jetbrains.com/idea/) The first book I am tacking “Beginning Java Game Development with LibGDX” will use BlueJ. I will detail the steps to get the same “hello world” program with LibGDX up and running on BlueJ, Eclipse and NetBeans. Using BlueJ 1. Obtain a copy of BlueJ at www.bluej.org Figure 1 - www.bluej.org BlueJ has a download installer for Windows, Mac OS X, Ubuntu/Debian, Raspbian Linux. 1 LibGDX Notes Since I already have Java JDK installed I will select “BlueJ Installer” How to tell if you have Java JDK installed. Open a command prompt window Enter “java –version” 2. The Window version for BlueJ is a *.msi file that you can install by double-clicking on it. You should see a desktop icon for BlueJ – what does it look like? Figure 2 - Desktop Icon 3. Double-click the desktop icon The application window is rather basic and simple – especially for all you developers that use Eclipse and NetBeans! Figure 3 illustrates what the screen looks like when first started. 2 LibGDX Notes Figure 3 - BlueJ Start Screen 4. From the menu select Project New Project… 5. A “New Project” file dialog opens up. Navigate to the location of your BlueJ projects. I decided to place all my BlueJ projects under a directory BLUEJ and for this specific project to create a directory named HELLO_WORLD. Figure 4 - Folder organization for my BlueJ projects The screen will now appear as: 3 LibGDX Notes Figure 5 - IDE after creating HELLO_WORLD project 6. Create a new class by clicking on the “New Class…” button. Figure 6 - Enter name of the new class "HelloWorld" 7. Enter the class name “HelloWorld” and click on “Ok” 4 LibGDX Notes Figure 7 - Updated BlueJ IDE with new class 8. Double-click on the “HelloWorld” rectangle or right-click over the rectangle and select “Open Editor” You will see that the class has a lot of template code already inserted for you! Figure 8 - HelloWorld with template code 9. Delete all the code and enter the following code: Table 1 - HelloWorld.java code /** * Write a description of class HelloWorld here. * 5 LibGDX Notes * @author Lorraine Figueroa * @version May 28 2016 */ public class HelloWorld { public static void main() { System.out.println("Hello, World!"); } } The IDE should look like this: Figure 9 - Our HelloWorld program 10. Click on the “Compile” button You should see the following message at the bottom of the IDE in the status screen. Figure 10 - Status message after compilation 11. Return to the main screen with the “HelloWorld” rectangle. Right-click and select “void main()” 6 LibGDX Notes Figure 11 - Running the class main() A terminal window will open up with the results of running the program: Figure 12 - Result of running our HelloWorld program To the left of your HelloWorld class as illustrated in Figure 13 is a README.TXT file that automatically got created when we created our BlueJ project. 12. Double-click on the README.TXT file in order to open up the contents of the file in a text editor. 7 LibGDX Notes Figure 13 - Our Hello World Project The original contents of the README.TXT file is shown below: Table 2 - Original README.TXT file ------------------------------------------------------------------------ This is the project README file. Here, you should describe your project. Tell the reader (someone who does not know anything about this project) all he/she needs to know. The comments should usually include at least: ------------------------------------------------------------------------ PROJECT TITLE: PURPOSE OF PROJECT: VERSION or DATE: HOW TO START THIS PROJECT: AUTHORS: USER INSTRUCTIONS: A good programmer will make sure that the README.TXT is updated and accurate so that years from now others will be able to find out the purpose of the project and know how to execute it. 8 LibGDX Notes Table 3 - Update README.TXT file PROJECT TITLE: HelloWorld PURPOSE OF PROJECT: This is a test project to get acquainted with BlueJ VERSION or DATE: 05/28/2016 HOW TO START THIS PROJECT: Execute the main in the class HelloWorld AUTHORS: L. Figueroa USER INSTRUCTIONS: N If you plan on using BlueJ I highly recommend that you obtain the reference manual at https://www.bluej.org/doc/bluej-ref-manual.pdf and spend 15 to 20 minutes going over it in order to get an idea what features the IDE has and for future reference. 13. Head over to https://libgdx.badlogicgames.com/ to download the jar file for the LibGDX library. Figure 14 - LibGDX banner The Java framework library can be used to create programs for desktops, Android devices, iOS and HTML5. 14. Click the “Download” icon and head over to the “Releases” download folder and find the latest file in the format libgdx-x.x.x.zip. Figure 15 - Downloading the latest LibGDX zip file 15. Unzip the contents of the zip file into a location we will use to add LibGDX to all our projects (and across IDEs). I will place it at C:\LibGDX You will find several jar files in the folder you extracted the zip file into: 9 LibGDX Notes Figure 16 - Jar files in LibGDX The files we want to use are: gdx.jar gdx-natives.jar gdx-backend-lwjgl.jar gdx-backend-lwjgl-natives.jar Since we want to use these files across many BlueJ projects let’s put the files in a location that will be available to all our BlueJ projects 16. Find the location of where BlueJ was installed. On my Windows system it was C:\Program Files (x86)\BlueJ. Figure 17 - Location of BlueJ installation 10 LibGDX Notes 17. Copy the jar file noted above into the BlueJ \lib\userlib folder. Figure 18 - Moving LibGDX jar file into BlueJ 18. Start or re-start BlueJ IDE. Close the old HelloWorld project if it automatically opened up. 19. Create a new project called ViewImage 20. Create a new class ViewImage with the contents as shown below: Table 4 - ViewImage.java /** * Write a description of class ViewImage here. * * @author Lorraine Figueroa * @version 5/29/2016 */ import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.Texture; public class ViewImage extends Game { private Texture texture; private SpriteBatch batch; public void create() { FileHandle worldFile = Gdx.files.internal("pong.png"); 11 LibGDX Notes texture = new Texture(worldFile); batch = new SpriteBatch(); } public void render() { Gdx.gl.glClearColor(1, 1, 1, 1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); batch.begin(); batch.draw(texture, 0, 120); batch.end(); } } 21. Create another new class named GameLauncher with the contents: Table 5 - GameLauncher.java /** * Write a description of class GameLauncher here. * * @author Lorraine Figueroa * @version 5/29/2016 */ import com.badlogic.gdx.backends.lwjgl.LwjglApplication; public class GameLauncher { public static void main(String[] args) { ViewImage myProgram = new ViewImage(); LwjglApplication launcher = new LwjglApplication(myProgram); } } 22. Compile both programs and Run GameLauncher. 12 LibGDX Notes Figure 19 - Executing GameLauncher 23. Just click “OK” Figure 20 - Result of running GameLauncher The nice feature in BlueJ is that you can “see” the relationship between files in the IDE. 13 LibGDX Notes Figure 21 - BlueJ class relationships The image above makes it clear that the GameLauncher invokes or includes a reference to the ViewImage object. None of the methods in myProgram are actually invoked by ViewImage. It passes the myProgram object to another class LwjglApplication that manages to get the methods in ViewImage invoked so we see our image. There are several advantages to using LibGDX as your Java game framework: It has methods for handling user input from the keyboard, mouse, game pad or touch screens It can be used to render 2D graphics It has methods to play sound effects or play music It allows you to easily integrate other third party tools It has methods to render 3D graphics and even load 3D models. 14 LibGDX Notes Figure 22 - Soldier 3D model At this time I will admit that using BlueJ for my IDE Java Development does not feel like a good idea. I will now detail how to get the ViewImage project constructed using Eclipse. Using Eclipse I will have to admit that BlueJ seems simple and I could see how it can be quite appealing for students who are starting to learn how to program in Java but as a Java program I am used to having to do less work with respect to getting my imports in and also NOT having to compile every file. So I will step through how to recreate the LibGDX ViewImage using Eclipse. 1. Open Eclipse and create a new workspace to hold all our LibGDX project. Figure 23 - Creating a workspace Note: I am using a 64-bit OS (Windows 7), with 64-bit Java SDK and 64-bit version of Eclipse. 15 LibGDX Notes 2. Enter the workspace and create a new Java Project – ViewImage by right-clicking in the Project Explorer and selecting New Project … Java Project and click on Next>. Figure 24 - Creating new Java Project 3. Enter the project name ViewImage and click on Finish. Figure 25 - Our Eclipse Project Explorer 4. Highlight the src folder (as shown above) and right-click on New Package and enter the name: com.att.brainycode.libgdx.examples.
Recommended publications
  • Metadefender Core V4.13.1
    MetaDefender Core v4.13.1 © 2018 OPSWAT, Inc. All rights reserved. OPSWAT®, MetadefenderTM and the OPSWAT logo are trademarks of OPSWAT, Inc. All other trademarks, trade names, service marks, service names, and images mentioned and/or used herein belong to their respective owners. Table of Contents About This Guide 13 Key Features of Metadefender Core 14 1. Quick Start with Metadefender Core 15 1.1. Installation 15 Operating system invariant initial steps 15 Basic setup 16 1.1.1. Configuration wizard 16 1.2. License Activation 21 1.3. Scan Files with Metadefender Core 21 2. Installing or Upgrading Metadefender Core 22 2.1. Recommended System Requirements 22 System Requirements For Server 22 Browser Requirements for the Metadefender Core Management Console 24 2.2. Installing Metadefender 25 Installation 25 Installation notes 25 2.2.1. Installing Metadefender Core using command line 26 2.2.2. Installing Metadefender Core using the Install Wizard 27 2.3. Upgrading MetaDefender Core 27 Upgrading from MetaDefender Core 3.x 27 Upgrading from MetaDefender Core 4.x 28 2.4. Metadefender Core Licensing 28 2.4.1. Activating Metadefender Licenses 28 2.4.2. Checking Your Metadefender Core License 35 2.5. Performance and Load Estimation 36 What to know before reading the results: Some factors that affect performance 36 How test results are calculated 37 Test Reports 37 Performance Report - Multi-Scanning On Linux 37 Performance Report - Multi-Scanning On Windows 41 2.6. Special installation options 46 Use RAMDISK for the tempdirectory 46 3. Configuring Metadefender Core 50 3.1. Management Console 50 3.2.
    [Show full text]
  • Blue, Bluej and Greenfoot
    Kent Academic Repository Full text document (pdf) Citation for published version Kölling, Michael (2016) Lessons from the Design of Three Educational Programming Environments: Blue, BlueJ and Greenfoot. International Journal of People-Oriented Programming, 4 (1). pp. 5-32. ISSN 2156-1796. DOI https://doi.org/10.4018/IJPOP.2015010102 Link to record in KAR http://kar.kent.ac.uk/56662/ Document Version Publisher pdf Copyright & reuse Content in the Kent Academic Repository is made available for research purposes. Unless otherwise stated all content is protected by copyright and in the absence of an open licence (eg Creative Commons), permissions for further reuse of content should be sought from the publisher, author or other copyright holder. Versions of research The version in the Kent Academic Repository may differ from the final published version. Users are advised to check http://kar.kent.ac.uk for the status of the paper. Users should always cite the published version of record. Enquiries For any further enquiries regarding the licence status of this document, please contact: [email protected] If you believe this document infringes copyright then please contact the KAR admin team with the take-down information provided at http://kar.kent.ac.uk/contact.html International Journal of People-Oriented Programming January-June 2015, Vol. 4, No. 1 Table of Contents SIKONL C I T L V PF EP iv Steve Goschnick, Swinburne University of Technology, Melbourne, Australia Leon Sterling, Swinburne University of Technology, Melbourne, Australia
    [Show full text]
  • Java Ide's One-On-One*
    DR. J VS. THE BIRD: JAVA IDE'S ONE-ON-ONE* Michael Olan Computer Science and Information Systems Richard Stockton College Pomona, NJ 08240 609-652-4587 [email protected] ABSTRACT An important decision facing instructors of introductory programming courses is the choice of supporting software development tools. Usually this involves selecting an integrated development environment (IDE). BlueJ has received widespread adoption for first year courses that use the Java programming language; however, DrJava is emerging as an alternative. This paper features a comparison of the pedagogical approaches used by BlueJ and DrJava as a guideline for selecting the tool best suited to the teaching style used in the introductory course. 1. INTRODUCTION The choice was simple when text editors and the command line were the only tools for developing programs. That changed with the introduction of integrated development environments (IDE's), and campuses nationwide adopted Borland's Turbo Pascal. Languages also have changed. Pascal was designed as a teaching language, but now academic programs use advanced languages designed for professional software engineers. Making these complex languages accessible to beginning students requires a careful selection of the development environment. This discussion will only include Java, currently the dominant language choice for introductory courses. Let us first consider several levels of tool support in the introductory course sequence: 1) Minimal: A text editor and the command line. 2) Simple IDE: Just the basics, no bells and whistles. 3) Professional IDE: Powerful and feature filled. ___________________________________________ * Copyright © 2004 by the Consortium for Computing Sciences in Colleges. Permission to copy without fee all or part of this material is granted provided that the copies are not made or distributed for direct commercial advantage, the CCSC copyright notice and the title of the publication and its date appear, and notice is given that copying is by permission of the Consortium for Computing Sciences in Colleges.
    [Show full text]
  • Objects First with Java™ a Practical Introduction Using Bluej
    Objects First with Java™ A Practical Introduction Using BlueJ David J. Barnes and Michael Kölling University of Kent Sixth Edition Boston Columbus Indianapolis New York San Francisco Hoboken Amsterdam Cape Town Dubai London Madrid Milan Munich Paris Montreal Toronto Delhi Mexico City Sao Paulo Sydney Hong Kong Seoul Singapore Taipei Tokyo A01_BARN7367_06_SE_FM.indd 1 10/03/16 4:08 pm Contents Foreword xiv Preface xv List of Projects Discussed in Detail in This Book xxv Acknowledgments xxviii Part 1 Foundations of Object Orientation 1 Chapter 1 Objects and Classes 3 1.1 Objects and classes 3 1.2 Creating objects 4 1.3 Calling methods 5 1.4 Parameters 6 1.5 Data types 7 1.6 Multiple instances 8 1.7 State 9 1.8 What is in an object? 10 1.9 Java code 11 1.10 Object interaction 12 1.11 Source code 13 1.12 Another example 15 1.13 Return values 15 1.14 Objects as parameters 16 1.15 Summary 17 Chapter 2 Understanding Class Definitions 21 2.1 Ticket machines 21 2.2 Examining a class definition 23 2.3 The class header 25 2.4 Fields, constructors, and methods 26 2.5 Parameters: receiving data 32 2.6 Assignment 34 A01_BARN7367_06_SE_FM.indd 5 10/03/16 4:08 pm vi | Contents 2.7 Methods 35 2.8 Accessor and mutator methods 36 2.9 Printing from methods 39 2.10 Method summary 42 2.11 Summary of the naïve ticket machine 42 2.12 Reflecting on the design of the ticket machine 43 2.13 Making choices: the conditional statement 45 2.14 A further conditional-statement example 47 2.15 Scope highlighting 48 2.16 Local variables 50 2.17 Fields, parameters, and
    [Show full text]
  • Experiences Using Bluej's Submitter with an Automated Grader
    We use BlueJ in our CS1 course Experiences Using BlueJ’s Submitter with an Automated Grader Aggressively objects-first, taught in Java We teach software testing from the very first lab as well Stephen Edwards Virginia Tech We use an automated grading system called Web-CAT Dept. of Computer Science [email protected] Web-CAT accepts submissions via HTTP http://people.cs.vt.edu/~edwards/ http://web-cat.sourceforge.net/ Stephen Edwards BlueJ Day: Experiences Using BlueJ’s Submitter Virginia Tech Web-CAT is a flexible, customizable grading Our strategy for managing submission system that supports test-based assignments definitions has evolved over time Submission.defs format allows BlueJ to include definitions We require students to write tests for everything from a URL, so they can be loaded from anywhere CS1CS1 Our grading system runs student tests on their code, and Sub. DynamicallyHTML Sub. DynamicallyHTML CS2 defs orGenerated! PHP CS2 Performs static analysis (checkstyle, PMD) defs orGenerated! PHP CS3CS3 Tracks code coverage (Clover) First, we used a single web-hosted definitions file Then we let each instructor write their own, and used a Supports “by hand” feedback too top-level file to include them all together Then we modified Web-CAT to dynamically generate Provides feedback in one, integrated HTML report submission.defs for the assignments it knows about Stephen Edwards BlueJ Day: Experiences Using BlueJ’s Submitter Virginia Tech Stephen Edwards BlueJ Day: Experiences Using BlueJ’s Submitter Virginia Tech Student
    [Show full text]
  • Bluej Manual
    BlueJ COMPANION MANUAL To accompany Big Java 2e and Java Concepts 4e by Cay Horstmann BRUCE QUIG, Deakin University Based on the BlueJ Tutorial by Michael Kölling John Wiley & Sons, Inc. SENIOR ACQUISITIONS EDITOR Bill Zobrist EDITORIAL ASSISTANT Bridget Morrisey PRODUCTION EDITOR Marsheela Evans MARKETING DEVELOPMENT MANAGER Phyllis Cerys . Book printed and bound by________________. The cover was printed by__________________. This book is printed on acid free paper. ∞ Copyright 2005 John Wiley & Sons, Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, Inc. 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978)646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008. To order books or for customer service please, call 1-800-CALL WILEY (225-5945). ISBN 0-471-73712-7 Printed in the United States of America 10 9 8 7 6 5 4 3 2 1 Contents 1 About BlueJ 1 About this manual 2 Scope and audience 2 Feedback 2 2 Installation 3 Installation on Windows 3 Installation on Macintosh 4 Installation on Linux/Unix and other Systems 4 Installation problems 4 3 Getting started – using classes 5 Starting BlueJ 5 Creating the project directory 5 Exploring System classes 5 Creating Library objects 7 Execution 8 4 Writing your own classes 11 Opening an existing project 11 Editing a class 12 Compilation 13 Help with compiler errors 14 Creating objects 14 Adding a Driver class 16 5 Doing a bit more..
    [Show full text]
  • The Bluej Environment Reference Manual
    The BlueJ Environment Reference Manual Version 2.0 for BlueJ Version 2.0 Kasper Fisker Michael Kölling Mærsk Mc-Kinney Moller Institute University of Southern Denmark HOW DO I ... ? – INTRODUCTION ........................................................................................................ 1 ABOUT THIS DOCUMENT................................................................................................................................. 1 RELATED DOCUMENTS.................................................................................................................................... 1 REPORT AN ERROR.......................................................................................................................................... 1 USING THE CONTEXT MENU........................................................................................................................... 1 1 PROJECTS.......................................................................................................................................... 2 1.1 CREATE A NEW PROJECT................................................................................................................... 2 1.2 OPEN A PROJECT ............................................................................................................................... 2 1.3 FIND OUT WHAT A PROJECT DOES .................................................................................................... 2 1.4 COPY A PROJECT ..............................................................................................................................
    [Show full text]
  • Integrated Development Environments
    Integrated Development Environments Steven J Zeil February 13, 2013 Contents 1 The Components of an IDE 2 2 IDE Examples 3 3 Eclipse 5 1 Integrated Development Environments IDEs Integrated Develop Environments (IDEs) are software packages that attempt to provide comprehen- sive support for programming • and possible other software development activities .................................... 1 The Components of an IDE The Components of an IDE (minimal) What’s the minimum that we expect in an IDE? • editor • build – maybe no more than compiler invocation – with error messages captured/interpreted/walked by editor • run/execute • debugger .................................... The Components of an IDE (optional) What would we like to see in an IDE? • syntax highlighting & aid in editor • documentation (API) look-up • flexible/configurable build • packaging/deployment options .................................... CS7952 Integrated Development Environments The Components of an IDE (deluxe) What makes us giddy in an IDE? • smart feedback in the editor – learns API of new code – suggestions • coding aids in editor – templates – common refactoring (transformations) • documentation generation • test integration • integration with version ctrl .................................... 2 IDE Examples emacs The *nix swiss army knife of editors, emacs has long functioned as a basic IDE: • syntax-highlighting editor • build support (invokes *nix make) – parses error messages from compilers & other tools • debugger interface • works directly with many version control systems .................................... References, if you are unfamiliar with this: • Compiling in emacs • emacs Debugging mode (CS252) CS7953 Integrated Development Environments emacs Strengths and Weaknesses • highly portable • supports virtually any language you would have a compiler for • even in windowed mode, leans toward keyboard rather than mouse – (not sure if that’s a pro or a con) • outdated interface • high learning curve ...................................
    [Show full text]
  • Object Orientation Through the Lens of Computer Science Education with Some New Implications from Other Subjects Like the Humanities
    Technische Universität München Fakultät für Informatik Fachgebiet Didaktik der Informatik Object-Oriented Programming through the Lens of Computer Science Education Marc-Pascal Berges Vollständiger Abdruck der von der Fakultät für Informatik der Technischen Universität München zur Erlangung des akademischen Grades eines Doktors der Naturwissenschaften (Dr. rer. nat.) genehmigten Dissertation. Vorsitzender: Univ.-Prof. Dr. Johann Schlichter Prüfer der Dissertation: 1. Univ.-Prof. Dr. Peter Hubwieser 2. Univ.-Prof. Dr. Torsten Brinda, Universität Duisburg-Essen Die Dissertation wurde am 07. April 2015 bei der Technischen Universität München eingereicht und durch die Fakultät für Informatik am 02. Juli 2015 angenommen. Abstract In recent years, the importance of the object-oriented paradigm has changed signifi- cantly. Initially it was mainly used in software engineering, but it is now being used more and more in education. This thesis applies methods of educational assessment and statistics to object-oriented programming and in doing so provides a broad overview of concepts, teaching methods, and the current state of research in this field of computer science. Recently, there have been various trends in introductory courses for object-oriented programming including objects-first and objects-later. Using current pedagogical concepts such as cognitive load theory, conceptual change, and self-directed learning in the context of this work, a teaching approach that dispenses almost entirely of instruction by teachers was developed. These minimally invasive programming courses (MIPC) were carried out in several passes in preliminary courses in the Department of Computer Science at the TU München. The students were confronted with a small programming task just before the first lecture.
    [Show full text]
  • Programming with Python and Java Honors
    Randolph Township Schools Randolph High School Programming with Python and Java Honors “Mathematics provides a framework for dealing precisely with notions of ‘what is’. Computation provides a framework for dealing precisely with notions of ‘how to’.” -- Margaret Mead Department of Science, Technology, Engineering, and Math Anthony Emmons, Supervisor Curriculum Committee: Matthew Horner Curriculum Developed: June 2018 Date of Board Approval: September 4th, 2018 1 Randolph Township Schools Randolph High School Table of Contents Section Page(s) Mission Statement and Education Goals – District 3 Affirmative Action Compliance Statement 3 Educational Goals – District 4 Introduction 5 Curriculum Pacing Chart 6 APPENDICES 40 2 Randolph Township Schools Mission Statement We commit to inspiring and empowering all students in Randolph schools to reach their full potential as unique, responsible and educated members of a global society. Randolph Township Schools Affirmative Action Statement Equality and Equity in Curriculum The Randolph Township School district ensures that the district’s curriculum and instruction are aligned to the state’s standards. The curriculum provides equity in instruction, educational programs and provides all students the opportunity to interact positively with others regardless of race, creed, color, national origin, ancestry, age, marital status, affectional or sexual orientation, gender, religion, disability or socioeconomic status. N.J.A.C. 6A:7-1.7(b): Section 504, Rehabilitation Act of 1973; N.J.S.A. 10:5; Title IX, Education Amendments of 1972 3 RANDOLPH TOWNSHIP BOARD OF EDUCATION EDUCATIONAL GOALS VALUES IN EDUCATION The statements represent the beliefs and values regarding our educational system. Education is the key to self-actualization, which is realized through achievement and self-respect.
    [Show full text]
  • CSIS10A Installation Instructions for Setting up the Bluej Java IDE
    CSIS10A Installation Instructions for setting up the BlueJ Java IDE I. Before installing BlueJ, Windows users will need to install the Java JDK first. (Mac OS 10.5 and higher should already have this) 1) To use the BlueJ IDE in this class, you must first download the latest Java JDK. Visit http://www.oracle.com/technetwork/java/javase/downloads/index.html and scroll down and click the first box that says “Download JDK”. On the next window, choose your platform. Ignore any other registration steps and click continue at bottom 2) Another page comes up (below). Click the red link below. 3) You should then find the downloader asking whether to save the file. NOTE: If you are blocking popups in Internet Explorer, you may get a notification at the top of your browser window (blue line below this line). Just click and enable download. When the File Download begins… 4) Choose “Run” and click through all security warnings. Follow the standard install guidelines, keep the default directories and so on. II. Installing the BlueJ Integrated Development Environment 5) Download the appropriate version of BlueJ for your computer at the following link: http://www.bluej.org/download/download.html Go directly to Step 2 below (you have already installed Java JDK) 6) Click on the appropriate platform and choose RUN at the File Download prompt. Click through any security warnings. 7) Close any unnecessary programs and click next. Click all the NEXT buttons in the dialogues that follow, then click INSTALL on the last one. 8) After BlueJ finishes installing, you can now run a test program to make sure it works.
    [Show full text]
  • Greenfoot-Book-TOC-And-Intro.Pdf
    Introduction to Programming with Greenfoot Object-Oriented Programming in Java With Games and Simulations Michael Kölling To Krümel and Cracker—may their imagination never fade. —mk Education is not the filling of a pail, but the lighting of a fire. —William Butler Yeats Companion Website Additional material and resources for this book can be found at http://www.greenfoot.org/book/ For students: ! The Greenfoot software ! The scenarios discussed in this book ! The Greenfoot Gallery—a scenario showcase ! Tutorial videos ! A discussion forum ! Technical support For teachers: ! A teacher discussion forum ! Additional exercises related to the book ! The “Green Room” containing worksheets and other teaching resources Table of Contents Acknowledgements 11 Introduction 13 1 Getting to know Greenfoot 15 1.1 Getting started 15 1.2 Objects and classes 17 1.3 Interacting with objects 19 1.4 Return types 21 1.5 Parameters 22 1.6 Greenfoot execution 24 1.7 A second example 25 1.8 Understanding the class diagram 26 1.9 Playing with Asteroids 27 1.10 Source code 28 1.11 Summary 31 2 The first program: Little Crab 33 2.1 The Little Crab scenario 34 2.2 Making the crab move 35 2.3 Turning 36 2.4 Dealing with screen edges 39 2.5 Summary of programming techniques 44 3 Improving the Crab— more sophisticated programming 47 3.1 Adding random behavior 47 3.2 Adding worms 51 3.3 Eating worms 53 3.4 Creating new methods 55 ! Table of Contents | 5 3.5 Adding a Lobster 57 3.6 Keyboard control 58 3.7 Ending the game 60 3.8 Adding sound 63 3.9 Summary of programming
    [Show full text]