Mercurial > hg > Members > kono > tree_dandy2
changeset 12:4c9c5cbd47c5
add p1 font
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 08 Dec 2010 02:12:27 +0900 |
parents | 5d2d9369052a |
children | 9f2eb8b9d23a |
files | Dandy.cc syokika.c |
diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Dandy.cc Wed Dec 08 02:04:07 2010 +0900 +++ b/Dandy.cc Wed Dec 08 02:12:27 2010 +0900 @@ -366,6 +366,7 @@ } else if ((pad[0].se > 0) && (pad[0].st > 0)) { gamef = 2; } + flip(); return gamef; } @@ -505,7 +506,10 @@ { SpriteTable *m = &sptable[number]; char *name = (char *) m->texture; -if (!name) return; +if (!name) { + printf("PutSprite %d unknown\n",number); + return; +} SceneGraphPtr object = sgroot->createSceneGraph(name); object->xyz[0] = x + screen_w /2; object->xyz[1] = y + screen_h /2; @@ -517,7 +521,10 @@ { SpriteTable *m = &sptable[number]; char *name = (char *) m->texture; -if (!name) return; +if (!name) { + printf("PutSpriteEx %d unknown\n",number); + return; +} SceneGraphPtr object = sgroot->createSceneGraph(name); object->xyz[0] = x + screen_w /2; object->xyz[1] = y + screen_h /2;
--- a/syokika.c Wed Dec 08 02:04:07 2010 +0900 +++ b/syokika.c Wed Dec 08 02:12:27 2010 +0900 @@ -150,7 +150,7 @@ DefSprite(DIFFENSIVEPOWER_GAUGE, "diffensivepower_gauge", 20, 215, 480, effect); DefSprite(GREENBULLET, "greenbullet", 128, 128, 480, effect); DefSprite(BULEBARRIER, "bulebarrier", 128, 128, 480, effect); - //DefSprite(FONT_PLAYER_1, "font_player1", 128, 32, 480, font); + DefSprite(FONT_PLAYER_1, "font_player_1", 128, 32, 480, font); //DefSprite(FONT_GAMEOVER, "font_gameover", 256, 32, 480, font); DefSprite(FONT_0, "font_0", 32, 32, 480, font); DefSprite(FONT_1, "font_1", 32, 32, 480, font);