A Development Example for Squeak 3.9
Section 1
Introduction
Installation
Game Overview
Discovery Of Objects
Test Driven Development
Define The Project For Our Game
Create Some Model Classes
Unit Test The Original Model
Run Our First Unit Test
Mirror Cell
Abstract Cell Class
Unit Test For Mirror Cell
New Methods For Mirror Cell
Target Cell
Target Cell Unit Test
Grid
Grid Unit Test
Making A Deeper Grid Unit Test
Section 2
Leaving Notes In Your Code
Laser Beam Path
Direction Vectors
Unit Test For Grid Direction Hierarchy
Back To The Laser Beam Path
Path Calculation
Grid Unit Test Activated
The Smalltalk-Way To Do A Case Statement
Game Graphics
Rendering The Cells
LaserGame Morph
A Factory For Grids
Management of Colors
Progress So Far
Back to the LaserGame Morph
Adding Controls
A Unit Test To Demonstrate A Bug
Section 3
Interacting With Cells
Handle Mouse Events
Detecting Mirror Cell Click Regions
Creating Custom Forms
Determine Push Regions
Drawing Push Hints On The Game Board
Using "Halt Once"
Determine Rotate Regions
Rotate A Mirror Cell
Click And Rotate A Cell
Clean Up Left-Over Hints
Bug With Target Cell
Push A Cell
Push Cells With The Mouse
Visual Bug With Push
Source Management With Monticello
Section 4
Communicate With Arrow Colors
Better Cursor Management
Making Larger Cells
Add A Counter and Window Colors
Add Move Counter And Randomizer
A Bigger Game Board
Drawing The Laser Beam
Laser On Blank Cell
Laser On Target Cell
Laser On Mirror Cell
Section 5
A Missed Bug
Adding More Game Stats
Undo
Modify Package Definition
Reset (and a bug fix)
Showing Laser Home Visually
A Less Brittle Unit Test Design
Better Hint Arrows Alignment
Minor Cosmetic Tweaks
Section 6
Prepare For Application Deployment
Next Steps Towards Deployment
A Double-Clickable Mac Application
Better Lock-Down Steps
Notes
Next Page
Copyright © 2007 Stephan B Wessels
swessels1955@yahoo.com