/******************************************************\ * Copyright (C) 1997 by ArBy Technology * * No Rights at all! * * Baldan Roberto 1st September '97 * \******************************************************/ T E T R I S example of 3D game First of all: _____________ To develop this application I used Microsoft Developer Studio, Visual C++ 4.0. You would not find much problems to port it in any different environment, because of use of standard C makefile to compile and build with GNU compiler. Anyway you may find strange indentation behaviours due to Microsoft's editor. To start the game invoke: Siocons auto Please, play it for a little long, to discover all of the features I put on it Thanks for your attention. Contact me at roba@ve.shineline.it Roberto Baldan. ------------------------------------------------------------------------------ Controls -------- Quit - Select + Start Pause - Start Continue - Start Continue from end - Start Exit replay mode - Start Step inside - Select Center - Select Move piece - Left pad Translate - Left pad Rotate piece - Right pad Rotate - Right pad Rotate (in game) - R1, R2, L1, L2 And much more. Aim --- How to make PlayStation crash down by too much polygons. Overview Of Construction ------------------------ Mapping is not too bad, but rendering makes me out. Description ----------------------- Here is a 3D Tetris-like game. It is not so playable 'cause of a bad viewing of the field, but I think it will be a good template for use of mapping and run-time polygons contruction and manipulation. The core of polygons manipulation is defined in TMDShape.h, where are defined m_Top, m_Bottom, m_Front, m_Left, m_Right used for grid construction, also is defined m_cube that is the basic cube for piece construction. TMD.h is given for Sony by Ashley, to define basic modeling structures. Block.h, Block.c Here are handled the different shapes of the seven pieces. Main.c Is used for initializations and main loop. Map.h, Map.c Describe the map of the game field. Monitor.h, Monitor.c Monitorize all game moves, for use in Replay mode. Pad.h, Pad.c For use of the controller. Sound.h, Sound.c Play our favourite songs. Tetris.h, Tetris.c Is where all the game's rules are acknowledged. and finally mountTMD.c Stores all initializations, run-time manipulations and rendering of the polygon models. Problems ---------- You may find a loss in performance and eventually a crash down in cases of use of a large game field with associated background grid on.