Learn Programming in Java

Contents

Here are the topics we cover:
 

Preface

You Already Know How (programming in "English")
Preface 0.1 (PBJ)
Preface 0.3 (If it's Saturday then choose Strawberry)
Preface 0.5 (Breakfast)
Preface 0.7 (Stoplight)
Preface 0.8 (Rock-Paper-Scissors)
Preface 0.9 (Subroutines)
Running Your English Program in Kitchen computer
 

English Programs You Can Write

4-function Calculator <-- This is a good easy program to start with
Guessing Game <-- This is a pretty good second program to do
Rock-Paper-Scissors (really!, but just text input and output)

Kitchen Computer Reference Manual
 

Programming in Java

Introduction
Lesson #0: Programming Environment
Lesson #1: Sequence & Output
Lesson #2: Variables & Expressions (Strings)
Variables & Expressions (Numbers)
Bitwise Operators
Lesson #3: Conditionals & Input (Guessing Game)
Using the BlueJ Debugger
Lesson #4: Iteration
Rock-Paper-Scissors Game
Lesson #5: Arrays
Seaman
ASCII Graphics & Subroutine(s)
Lesson #6: Simple Calculator
Lesson #7: Exceptions
Lesson #8: Native Java Input
Classes & Objects
Lesson #9: Event-Driven Software (Convert Game)
Unix vs Mac
Pong in GameEngine
Calculator in GameEngine
Rock-Paper-Scissors in GameEngine
Seaman with better graphics
Some Game Ideas Using the GameEngine
Squares Falling
Tetris
Snake
Lesson #10: Extras
New Widgets
Your Own Sprites
FIFO

Build Your Own Game in Java
Programming Tic-Tac-Toe
Keeping Score in English
ASCII Score in Java
Score in GameEngine
AI to Win
Data As Bits
Kitchen Computer Reference Manual
 

Appendix:

Things You Need to Know in Java
Trouble-Shooting GameEngine
Useful Tech Issues
Converting Your Game to JavaScript
Why 6? Why Not Objects? Why Java?
Flat vs the Real World
 

GameEngine Documents

The Itty Bitty GameEngine -- Overview
Your Own Java Game -- Step by step tutorial to build a simple "Pong" game
Class GameWgt -- The visual components of a GameEngine game
Overriding GameEvent -- The programmatic components of a GameEngine game
Widget Specification Text -- File format for GameMaker.txt and how to make your own
Converting Your Game to JavaScript -- What you need to know to run your game in a web browser
Programming Tic-Tac-Toe -- Start in English, then ASCII graphics, then GameEngine, finally AI
Some Game Ideas Using the GameEngine -- Some more challenging projects


<<Previous | ToC | Next >>

Revised: 2021 July 9