Looking for a portable 3D vector class for your game? Here's what I have pieced together over the years. Still needs a little clean up. But solid and works great. // Usage Adding 2 vectors: Vector3Df v0(1,2,3); Vector3Df v1(4,5,6); Vector3D v2; v2 = v0 + v1; // Find angle between vectors v0 and v1 float angle = v0.angleInDegree(v1); // Normalize a vector (to unit length 1) Vector3Df v2n = v2.normalize(); // Vector3D is a template so feel free to use other types Vector3D<int> screen_pixels(10,10); // etc Also, it interfaces with a Matrix class. I'll post that soon so you can do some fun things there too! :) File Starts below...... //********************************************************************* /* vim: set filetype=cpp.doxygen : */ #ifndef VECTOR3D_H_ #define VECTOR3D_H_ #include <vector> #include <cstdlib> #include <cstdio> #include <iostream> #include <sstream> #include <cmath> ...
Posts
TimeCube The PSP Game
- Get link
- X
- Other Apps
You are all educated stupid! Your ignorance of 4 day TimeCube the Game is Evil! You worship a Tetris God with shapes other than Cubes. Man evolves from teenager, teenager evolves from child... old man blows a gasket.... All hail TimeCube! TimeCube PSP EBOOT It's a puzzle game. Rotate Cubes: square button Move Cubes: D-Pad (down to move faster down, like Evil-Tetris). Objective: Match 4 or more colors adjacently (no diagonals), more cubes = more points Chains from falling cubes after blocks deleted = more points Graphics: Created in Gimp Sounds: Audacity, and GNU Music: Produced in LMMS Editor: Vim (xterminal, Ctags) Inspiration: Cube Heads TODO: -Will be adding a few more fun easter eggs in later releases (Toasty!). -Multiplayer - Next block preview (maybe?) - Particle effects (more fun visual stuff) - High score saving - Eboot sound, before loading ( I hate proprietary formats like AT3, I need a converter but I am on Linux....