Difference between revisions of "LeapFrog Pollux Platform: STC"

From eLinux.org
Jump to: navigation, search
(Created page with 'Here's a port [http://github.com/yurovsky/lx-stc] of a simple game, STC [http://code.google.com/p/simple-tetris-clone/] ("simple tetris clone") that you can install and run on yo…')
 
m
Line 1: Line 1:
 
Here's a port [http://github.com/yurovsky/lx-stc] of a simple game, STC [http://code.google.com/p/simple-tetris-clone/] ("simple tetris clone") that you can install and run on your device provided that it's set up with a [[Leapster_Explorer_Framebuffer_Driver|framebuffer driver]] and [[Didj_and_Explorer_libSDL|libSDL]] rather than the original graphics drivers and Brio.  See those howto guides first.
 
Here's a port [http://github.com/yurovsky/lx-stc] of a simple game, STC [http://code.google.com/p/simple-tetris-clone/] ("simple tetris clone") that you can install and run on your device provided that it's set up with a [[Leapster_Explorer_Framebuffer_Driver|framebuffer driver]] and [[Didj_and_Explorer_libSDL|libSDL]] rather than the original graphics drivers and Brio.  See those howto guides first.
  
Source code
+
== Source code ==
  
 
You can obtain the source code from github.  For example:
 
You can obtain the source code from github.  For example:
Line 7: Line 7:
 
   git clone clone git://github.com/yurovsky/lx-stc.git
 
   git clone clone git://github.com/yurovsky/lx-stc.git
 
   cd lx-stc
 
   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:
 
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
 
   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:
 
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:
Line 18: Line 22:
 
   /usr/share/blocks.bmp
 
   /usr/share/blocks.bmp
 
   /usr/share/numbers.bmp
 
   /usr/share/numbers.bmp
 +
 +
== Running ==
  
 
On your device, simply run:
 
On your device, simply run:

Revision as of 21:21, 3 August 2010

Here's a port [1] of a simple game, STC [2] ("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.

Source code

You can obtain the source code from github. For example:

 git clone clone git://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.