Blocks 1.0


WarmFluffyUK

The Big Wad Bolf.
Joined
Sep 4, 2004
Messages
3,384
Location
UK
Website
www.retrotech.one
Blocks, v1.0
It is a logical game.

download on archive.gp2x.de

blocksGP2X.jpg


It is necessary to throw blocks (from one
up to three for time) to the central field so that groups of blocks
with identical color were created. If in such group will be 3
or more blocks such group will be gone from a field and will
release a way to other blocks, which rested against it.

This program has been wrote on pascal (design and debug in Delphi
and colpile to GP2X in freepascal win32 for linux-arm. Source included
in archive. In the project it has been used JEDI-SDL, demo by Guyfawkes,
GMenu2X by Massimiliano "Ryo" Torromeo and lybraries by Kounch.

How to play
------------------
Game rules are very simple. It is necessary to throw blocks (from one
up to three for time) to the central field so that groups of blocks
with identical color were created. If in such group will be 3
or more blocks such group will be gone from a field and will
release a way to other blocks, which rested against it. To throw
blocks it is possible only in those places where on a way to
the central field there will be other block. The new level will
begin after all field will be cleared. In a new level of initial
blocks in a field will be more. After everyone 90 levels the quantity
of colors will be increased. Game will end after it will be impossible
to make a new course.

Controls
------------------
In game:
Joystick cursor - moving of the cursor on an external field
Left and Right - fast moving of the cursor clockwise or back
B - throw of the block
A - Undo. It is accessible only on one step
X - quick save (in file Save 8)
Select - power save. Music will be stopped, the screen is
blanking and frequency of the processor is reduced.
During this LED "Battery" will be blink.
Start - exit from game. Before it query for save will not be,
therefore it is necessary to keep the progress
separately
Y - enter to menu.

In menu:
Up and Down - moving on items of the menu, and in the window
in the lines
Left and Right - choice of value in Options
A - cancel, for Options changes are applied,
but do not save in configuration file
B - Ok. В Options changes will be remembered and will
operate at following start of game

Configuration
------------------
It is a file blocks.cfg. It there is in one directory with blocks.gpe.
Format is next:
[Main]
Colors=5 - the quantity of colors for level
NextBlock=1 - showing next blocks
Sound=1 - sound on
Music=0 - music off
PathMusic=/mnt/sd/ - directory with music files
Volume=80 - volume of sound and music
Skin=winter - skin name (this is a name of subdirectory
inside blocks/pics)
Frequency=100 - processor's frequency in MHz. During power saving
this value decrease to 25 MHz, after this return
to initialize volume

Nodes
------------------
If during game you listen to music with high bitrate, when pauses
between pressing buttons and reaction are possible. At a choice
of the catalogue with music search on SD card will be made.
It can borrow some time. It is sometimes more reasonable to correct
a file blocks.cfg which there is in one directory with blocks.gpe.
I of anything (while anything) was not done for support TV and Mouse.
So do not search for it in game.

Troubleshooting
------------------
Sometimes save-files are not kept on SD card. May be it dependes from cache.
How to make for joystick repeating pressing it is similar SDL_EnableKeyRepeat
for the keyboard?
The charge of the battery showed a level 3, but the device was switched off
from shortage of energy. It is strange.

Enjoy the game!

--------------------
Eugene Proshkin
 
WarmFluffyUK posted on Dec 11 2006 at 02:25 PM said:
Sometimes save-files are not kept on SD card. May be it dependes from cache.
Do you sync() after saving?

WarmFluffyUK posted on Dec 11 2006 at 02:25 PM said:
How to make for joystick repeating pressing it is similar SDL_EnableKeyRepeat
for the keyboard?
Use SDL_GetTicks() to time the last button press and after a certain time trigger the action again.
I made a Joystick class in gmenu2x for this purpose, you may take a look at it if you're interested.

WarmFluffyUK posted on Dec 11 2006 at 02:25 PM said:
The charge of the battery showed a level 3, but the device was switched off
from shortage of energy. It is strange.
Reading battery status is very unreliable.
I managed to get a pretty decent status by reading /dev/batt 10 times, discarding the higher and the lower values (the wronger values) and dividing by 8 to find the middle value.
 
Last edited by a moderator:
WarmFluffyUK posted on Dec 12 2006 at 12:25 AM said:
Blocks, v1.0
This program has been wrote on pascal (design and debug in Delphi
and colpile to GP2X in freepascal win32 for linux-arm. Source included
in archive. In the project it has been used JEDI-SDL, demo by Guyfawkes,
GMenu2X by Massimiliano "Ryo" Torromeo and lybraries by Kounch.
Eugene Proshkin

Hi Eugene :)

I am using the Win32 freepascal myself to code windows programs using JEDI-SDL, but I am now interested in creating GP2X programs using the compiler.

I know from you (and others) that a linux-arm version of freepascal for Win32 is possible, but I am not sure how to go about setting up freepascal to allow this.

Using the Win32 version would mean that I wouldn't have to muck around with a Linux distro, etc first.

Would you have some instructions/tips that you could give me to allow me to setup the linux-arm compiling stuff for Win32 freepascal to get it working?

cheers,
Paul.

paul_nicholls@NoSpam.hotmail.com

Remove NoSpam to send email.
 
Last edited by a moderator:
Back
Top