Difference between revisions of "LeapFrog Pollux Platform: STC"
m (moved Leapster Explorer: stc to LeapFrog Pollux Platform: STC: generalized name) |
(can't checkout using 'git' protocol without authorization... use http instead) |
||
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
You can obtain the source code from github. For example: | You can obtain the source code from github. For example: | ||
− | git clone | + | git clone https://github.com/yurovsky/lx-stc.git |
cd lx-stc | cd lx-stc | ||
Line 53: | Line 53: | ||
The "m" key will exit the game, "p" pauses, etc. | The "m" key will exit the game, "p" pauses, etc. | ||
+ | |||
+ | |||
+ | |||
+ | [[Category:LeapFrog Pollux Platform]] |
Latest revision as of 22:34, 17 April 2015
Summary
Here's a port of a simple game, STC Simple Tetris Clone that you can install and run on your device provided that it's set up with a framebuffer driver and libSDL rather than the original graphics drivers and Brio. See those howto guides first.
Software Needed
You can obtain the source code from github. For example:
git clone https://github.com/yurovsky/lx-stc.git cd lx-stc
Compiling
Before building lx-stc, make sure that you've copied the SDL header files to some location, for example a rootfs directory containing /usr/include/sdl. Replace "/path/to/rootfs" with that path below and change the name of your toolchain as needed. Then build the game:
CROSS_COMPILE=arm-linux-uclibcgnueabi- ROOTFS_PATH=/path/to/rootfs make
Installing
If successful, you'll see ./sdl-stc. Copy that binary to /usr/bin on your device and copy the .bmp files in ./bin/sdl to /usr/share on your device so that you have:
/usr/bin/sdl-stc /usr/share/back.bmp /usr/share/blocks.bmp /usr/share/numbers.bmp
Running
On your device, simply run:
sdl-stc
to play the game. Press the "home" button on your device to exit.
Or, on your Linux PC
Want to play sdl-stc on your PC instead? Make sure you have sdl headers installed:
sudo apt-get install libsdl-dev
And then build the game like this:
make clean ROOTFS_PATH=/ make
And to "install" it:
sudo cp bin/sdl/*.bmp /usr/share sudo cp ./sdl-stc /usr/local/bin
And to play it, just run:
sdl-stc
The "m" key will exit the game, "p" pauses, etc.