Load zone files.
[cantaveria.git] / title.c
blob28022aac39730b078923c6c1170f569ab2260a0f
1 /*
2 Cantaveria - action adventure platform game
3 Copyright (C) 2009 Evan Rinehart
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to
18 The Free Software Foundation, Inc.
19 51 Franklin Street, Fifth Floor
20 Boston, MA 02110-1301, USA
23 #include <stdio.h>
25 #include "util.h"
26 #include "game.h"
27 #include "backend.h"
28 #include "title.h"
31 void title_setup(){
32 //load some graphics
33 //place the graphics
34 //if any, setup sprite update callbacks
36 printf("you just entered the title screen\n");
40 void title_keydown(int key){
41 printf("you pressed key %d\n",key);
42 if(key == keynum(ESCAPE_KEY)){
43 game.end = 1;
47 void title_keyup(int key){
48 printf("you release key %d\n",key);
51 void title_joymovex(int joy, int x){
52 printf("you moved joystick %d x axis to %d\n",joy,x);
55 void title_joymovey(int joy, int y){
56 printf("you moved joystick %d y axis to %d\n",joy,y);
59 void title_joypress(int joy, int button){
60 printf("you pressed joystick %d button %d\n",joy,button);
63 void title_joyrelease(int joy, int button){
64 printf("you released joystick %d button %d\n",joy,button);
67 void title_update(){
71 struct handler title_handler = {
72 title_keydown,title_keyup,title_joymovex,
73 title_joymovey,title_joypress,title_joyrelease