Blog

Drawing things with recursion

I made a little Java drawing experiment called Tendron. It starts with a few lines and turns into a branching, rather plant-like scribble. There is not really a game here; I just wanted to see what the pattern would do. A Cluster creates four Tendril objects pointing into different quadrants. Each tendril draws short randomized […]

Read post: Drawing things with recursion

ETPaint

I made a little paint program in Java. Drag the mouse to draw, click a color in the palette, and keep drawing. It is not going to replace Paint, but it is mine. The applet listens for mouse presses, releases, and dragging. The palette is an image with different clickable coordinate regions; choosing one updates […]

Read post: ETPaint

Pong in a web page

I made a Java version of Pong. A paddle, a ball, and somebody trying to keep the ball from getting past them: a pretty good starting point for figuring out an animated game. The applet uses AWT mouse and keyboard events for input, images for the paddles and ball, and an audio clip for the […]

Read post: Pong in a web page

Guess the three-digit number

Here is another little Java applet: guess a three-digit number. The computer picks the number and keeps asking until I get it right, then tells me how many guesses it took. This version uses Swing input and message dialogs, even though it is launched from an applet page. The program generates the number with Java’s […]

Read post: Guess the three-digit number

My arithmetic practice applet

I made a little Java project for practicing arithmetic. The computer asks the question, checks the answer, and keeps track of the score. It is a lot more interesting to program the practice than to do a whole page of it myself. The calculation class keeps the two numbers, the computer’s answer, the user’s answer, […]

Read post: My arithmetic practice applet