Log in

View Full Version : Pong (source included)



wraggster
April 11th, 2008, 23:59
News/release from Hardrive


This is just what you think it is, yet another pong clone. Nothing much is different in this version than any of the millions of other versions, except that I added the ability to move horizontally as well as vertically. In my opinion, it's nothing really that special. This game started as a mini project that I worked on to teach myself the ropes on programming for the PSP as well as programming games using SDL. As a side effect of using SDL, this game also runs on Linux, Windows, or any other platform that is capable or running SDL. Still though, that's not the reason I am releasing this. The main reason I am releasing this is the source. While trying to figure out how to run SDL on the PSP, I came across much conflicting information, and there weren't many examples. If this code can help even one person out there use SDL, then I'm happy. However, that said, I'm not saying I'm using SDL correctly or in the most clever and efficient way possible. The code does compile and run as intended though, so I must be doing something right.

Installing
1.50 PSP
Navigate into release/150, and copy both of the Pong directories
into the GAME folder on your PSP.
3.xx
Navigate into release/3xx, and copy the Pong directory into the
directory on your PSP setup to run games in 3.xx kernel mode. This
will either be GAME or GAME3xx (replace xx with your firmware
version).
Windows
No installation is required. Simply navigate into release/windows
and run pong.exe.
Linux
No installation is required. You must have SDL, SDL_image, and
SDL_ttf installed however. Simply navigate into release/linux and
run the pong executable (from the terminal, "./pong"). The
pre-compiled version of this game was built on a 64-bit operating
system, and may not work on 32-bit systems. To get it to work,
compile it from source (see below).

Controls
PSP
Menu
Up D-Pad Up
Down D-Pad Down
Select Cross or Start

Player 1 Player 2
Up D-Pad Up Up Triangle
Down D-Pad Down Down Cross
Left D-Pad Left Left Square
Right D-Pad Right Right Circle

PC
Menu
Up Arrow Up
Down Arrow Down
Select Enter or Spacebar

Player 1 Player 2
Up W Up Up Arrow
Down S Down Down Arrow
Left A Left Left Arrow
Right D Right Right Arrow

Source
Yes, I included the source. If for some reason you wish to compile it
yourself, simply navigate to the src directory and issue a "make". This
will make all of the targets and put the executables in their proper
directories in the "release" directory. If you wish to build only a
specific target, "make 150" will compile a kxploited version for 1.50
PSPs, "make 3xx" will compile a 3.xx kernel version for 3.xx PSPs, and
"make linux" will compile the application for Linux. The compiled game
will be put into its proper directory in release. There currently is no
make command for Windows, as I compiled it using Dev C++. To build the
source, you will need SDL, SDL_image, and SDL_ttf. If you wish to build
the PSP versions, you will also need to have the PSP toolchain installed.

Real developers, if you see anything that is horribly wrong in my code, please alert me. I'm still learning

Download and Give Feedback Via Comments

via harddrive (http://forums.qj.net/f-psp-development-forum-11/t-release-pong-source-included-138564.html)