fieldman.org squared (2001)
squared (2001)

back in early 2001 i fell pretty ill. the kind where you’re too nauseous to walk, and you have to shove kleenex up your nose to stop the running. what better to do than write a game? well, if you’re me that is.

i got the idea for squared a long long time ago when i played a version of it on AOL. i decided it could use an opengl upgrade, and this is what i came up with.

unfortunately, it didn’t turn out quite as nice as i had hoped. this was my first experiment with winsock + opengl, so i was experimenting a lot. i wasn’t really paying attention to coding style — just trying to get it functional — and when it would work i was too impatient to go back and clean up what i had done.

the end result is a pile of code that does what i want it to but is really a pain in the ass to sort through and modify. this means that when i decided i didn’t like how the game looked it was too late to change it into something cooler, let alone try to add things to it. also, i think i violate like ten billion rules of network programming.

whatever. it’s done, and it’s playable.

to serve, enter your name and press the begin server button. the game will wait for someone to connect. to connect, enter your name and the IP of the server and press the connect button. you can talk by typing into the field on the bottom and pressing enter. you can rotate the board by dragging the right mouse button.

players take turns putting down one peg at a time. when four of your pegs form the vertices of a square, you get (length of side + one)^2 points. for example, a square with vertices on the border of board is worth 64 points, while the smallest square you can make is worth 4 points. squares can be tilted (see screenshots.)

for now, the first player to reach 150 points wins. to start a new game, press the connect button. the board will reset and the other player will start the next round.

screenshots

download

Source: SquaredSrc.zip (12 Kb) Executable: Squared.zip (357 Kb)

The executable package contains the opengl files opengl32.dll and glu32.dll. If you know what these are, and know that you don’t need them, feel free to delete (to improve performance.)

famous, once

(opengl.org)

screencap of opengl.org