You are here

source

An Approach for Tetris Shapes in C++

I've been noodling with a Win32 version of Tetris, the ubiquitous "shape placing" game. I'm working in C++ using the Simple Directmedia Layer for my graphics. One of the interesting things in working out the game is the "shape" data. Below is the code for one my shapes, and the methods to "rotate" and "draw" it.

Tags: source code tetris c++

More Source Code

Here's some source code. I think I just figured out my issue.
Tags: perl source

Story with Code

I think this is Perl source code.
Tags: perl source
Subscribe to RSS - source