Nombre del proyecto
===================

Este es un pinball open source multiplataforma 2d desarrollado utilizando C + SDL en Linux.

/*
 * Copyright (c) 2007-2008 by Rafael Ignacio Zurita <rizurita@yahoo.com>
 * Copyright (c) 2007-2008 by Miriam Lechner <lechnermiriam@gmail.com>
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 */


Como compilar
-------------

# make clean
# make all


POR CHEQUEAR:
/*
 * Linball - un pinball 2D multiplataforma escrito en C + SDL (desarrollado en Linux)
 *
 * COSAS FEAS DEL CÓDIGO QUE QUISIERA CAMBIAR (pero que en el estado actual
 * en que están funcionan):
 *
 * - la "V" roja donde se posiciona la pelota (en pinball.bmp) antes de empezar
 *   el nivel de juego es un truco para que la pelota caiga y se posicione
 *   sin moverse. dx tiene que ser igual a 0, y pelotax = 743 (pelotay = 600)
 *
 * - la posición de la tabla inicial es -700 (y0pantalla).
 * 
 * Los valores anteriores están dentro del código de juego como inicialización.
 * Lo feo de esos valores es que si alguien (yo tal vez) cambia un valor de 
 * esos la pelota caerá mal al comenzar el nivel y no se posicionará delante
 * del "resorte" disparador
 *
 * - en colisiones() no se hará un efecto de sonido cuando la pelota "rebote" 
 *   en alguna parte inferior. Esto es porque cuando la pelota es retenida
 *   por los flippers en realidad lo que sucede es que rebota en ambos lados
 *   constantemente. Si hacemos un efecto de sonido en esos rebotes se escucharía
 *   una especie de "ametralladora".
 *
 */

En Neo (Openmoko OS) se puede usar xrandr para rotar y redimensionar la
pantalla. xrandr  -s 320x240 -o left

Iniciar X en Neo:
 xinit /etc/X11/Xsession -- /usr/bin/Xglamo :0 -pn -dpi 285 -screen 480x640 -hide-cursor -root-ppm /usr/share/pixmaps/xsplash-vga.ppm

Iniciar linball en Neo:
 xinit ./pinball -- /usr/bin/Xglamo :0 -pn -dpi 285 -screen 480x640 -hide-cursor

Para tomar screenshots:
neo# DISPLAY=:0 xhost +
pc# DISPLAY=192.168.0.202:0 xwd -root -out file.xwd

