2009-12-15 21:56:25 +00:00
|
|
|
/*===========================================
|
2009-12-15 22:32:21 +00:00
|
|
|
NoNameNo CubedTileDemo
|
|
|
|
A sample code to show how to use Dynamic Texturing
|
|
|
|
Have a look a TileDemo sources for diff ;)
|
2009-12-15 21:56:25 +00:00
|
|
|
============================================*/
|
|
|
|
#include <grrlib.h>
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
2010-03-11 03:01:31 +00:00
|
|
|
#include <math.h>
|
2009-12-15 21:56:25 +00:00
|
|
|
#include <wiiuse/wpad.h>
|
|
|
|
|
2022-03-12 09:50:08 +00:00
|
|
|
#include "tile1_png.h"
|
|
|
|
#include "perso_png.h"
|
|
|
|
#include "bg_png.h"
|
|
|
|
#include "nonameno_png.h"
|
2009-12-15 21:56:25 +00:00
|
|
|
|
|
|
|
#define TileMap1Width (32)
|
|
|
|
#define TileMap1Height (32)
|
|
|
|
#define Map1Width (87)
|
|
|
|
#define Map1Height (51)
|
|
|
|
|
|
|
|
signed short Map1Data[53][87] =
|
|
|
|
{{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
|
|
|
|
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0,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, 1,15, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
|
|
|
|
{16,16,17,16,17,16,17,16,17,16, 0, 0, 0, 0, 0, 0, 1, 1,17,16, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3,18,19, 3,18,19, 3, 4,20,21, 0,22, 0, 0, 0, 0, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 0, 1, 1, 1, 0,17,16,17,16,17,16,17,16,17,16,17,16,17,16,17,16,17,16,17,16,17},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23,22,22, 0, 1, 1, 1, 1, 0,24,23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,25,26, 0,27,28,28,28,28,28,28,28,28,28,29,30,31,22, 0, 0, 0, 2, 3,32,33, 3,34,35, 3,36,37, 3, 4, 0, 1, 0, 0,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23,22,22, 0, 1, 1, 1, 1, 0,24,23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,38,39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,14, 0,22,13,14, 0, 2, 3,11,12, 3,11,12, 3,11,12, 3, 4, 1, 1, 0, 0,24,23,40,41,40,41,40,41,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23,27,28,28,31, 1, 1, 1, 0,24,23,13,14, 0, 0, 0, 0, 0, 0, 0, 0,42,43, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,20,21, 0,22,20,21, 0, 2, 3,18,19, 3,18,19, 3,18,19, 3, 4, 1, 0, 0, 0,24,23,44,45,46,44, 0, 0,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23,27,28,28,31, 1, 0, 0, 0,24,23,20,21, 0, 0, 0, 0, 0, 0, 0,22,47,48,22, 0, 0, 0, 0, 0, 0, 0, 0, 0,27,28,28,28,28,29,30,28,28,28,28,28,28,28,28,28,28,28,28,28,28,31, 0, 0,24,23,44,11,12,44,13,14,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0,27,28,28,31, 0, 0, 0,24,23,13,14, 0, 0, 0,13,14, 0,42,43,42,43,42,43, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,14,17,16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,24,23,44,18,19,44,20,21,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23,27,28,28,31, 0, 0, 0, 0,24,23,20,21, 0, 0, 0,20,21,22,47,48,47,48,47,48,22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,20,21,24,23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,24,23,27,28,28,31,13,14,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0,27,28,28,31, 0, 0,27,28,28,29,30,28,28,28,29,30,28,28,28,28,28,28,28,31, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3, 4, 0,13,14,24,23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,24,23,40,41,40,41,20,21,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23,27,28,28,31, 0, 0, 0, 0, 0, 0,20,21, 0, 0, 0,13,14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3,49,50, 3, 4,13,14,24,23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,24,23,24,23,24,23,13,14,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0,27,28,28,31, 0, 0, 0, 0, 0,13,14, 0, 0, 0,20,21, 0, 0, 0, 0,20,21, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3,11,12, 3, 4,20,21,24,23, 0, 0, 0, 0,27,28,28,31, 0, 0, 2, 3, 3, 4, 0,40,41,40,41,40,41,20,21,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 0,27,28,28,31, 0, 0, 0,20,21, 0, 0, 0,13,14, 0, 0, 0, 0,13,14, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3,18,19, 3, 4,13,14,24,23, 0, 0,17,16, 0,27,28,31, 0, 2, 3,51,52, 3, 4, 0, 0, 0, 0, 0, 0,13,14,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 0, 2, 3, 3, 4, 0, 0, 0,13,14, 0, 0, 0,20,21, 0, 0, 0,27,29,30,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,31, 2,53,54, 4, 0,22, 0, 0, 2, 3,11,12, 3, 4, 0, 0, 0, 0, 0, 0,20,21,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 2, 3,55,56, 3, 4, 0, 0,20,21, 0, 0, 0,13,14, 0, 0, 0, 0,13,14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3,11,12, 3, 4,22, 0, 0, 2, 3,18,19, 3, 4, 0, 0, 0, 0, 0, 0,13,14,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 2, 3,11,12, 3, 4, 0, 0,13,14, 0, 0, 0,20,21, 0, 0, 0, 0,20,21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3,18,19, 3, 4,22, 0, 0,27,28,28,28,28,28,28,28,28,28,28,31,20,21,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 2, 3,18,19, 3, 4, 0, 0,20,21, 0, 0, 0,13,14, 0, 0, 0, 0,13,14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,27,28,28,31, 0,22, 0, 0, 0, 0, 0, 0, 0, 0,17,16,17,16,17,16,13,14,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0,27,28,28,28,28,28,28,28,28,28,28,31, 0, 0,20,21, 0, 0, 0,27,29,30,28,28,28,28,28,28,28,28,28,31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,22, 0, 0, 0, 0, 0, 0, 0, 0,24,23,24,23,24,23,20,21,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,14, 0, 0, 0, 0,13,14, 0, 0, 0, 0, 0, 0, 0, 0, 0,57,57, 0,57,57, 0,57,57, 0,42,43, 0,42,43, 0, 0, 0, 2, 3, 3, 4, 0, 0, 0,24,23,24,23,24,23,13,14,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 0, 2, 3, 3, 4, 0, 0, 0, 0, 0, 0,27,28,28,28,28,28,28,28,29,30,31, 0, 0, 0, 0, 0, 0, 0, 0,57,57, 0,57,57, 0,57,57, 0,47,48, 0,47,48, 0, 0, 2, 3,58,59, 3, 4, 0, 0,24,23,24,23,24,23,13,14,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 2, 3,60,61, 3, 4,13,14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,14, 0, 0, 0, 0, 0, 0, 0, 0, 0,57,57, 0,57,57, 0,57,57, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3,11,12, 3, 4, 0, 0,24,23,24,23,24,23,20,21,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 2, 3,11,12, 3, 4,20,21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,20,21, 0, 0, 0, 0, 0, 0, 0, 0, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0, 0, 2, 3,18,19, 3, 4, 0, 0,24,23,24,23,24,23,13,14,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 2, 3,18,19, 3, 4,13,14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,14, 0, 0, 0, 0, 0, 0, 0, 0, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0, 0,27,28,28,28,28,31, 0, 0,24,23,24,23,24,23,20,21,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0,27,28,28,28,28,28,29,30,28,28,31, 0, 0, 0, 0, 0, 0, 0, 0,20,21, 0, 0, 0, 0, 0, 0, 0, 0, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,24,23,24,23,24,23,13,14,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 0, 0, 0, 0, 0, 0,13,14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,14, 0, 0, 0, 0, 2, 3, 3, 4, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0, 0,42,43, 0, 0, 0, 0, 0, 0,24,23,24,23,24,23,20,21,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 0, 0, 0, 0, 0, 0,20,21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,20,21, 0, 0, 0, 0, 3,62,63, 3, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0, 0,47,48, 0, 0, 0, 0, 0, 0,24,23,40,41,40,41,13,14,40,41,40,41,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 0, 0, 0, 0, 0, 0,13,14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,14, 0, 0, 0, 2, 3,11,12, 3, 4, 0,57,57,57,57,57,57, 0, 0,57,57, 0,57,57, 0, 0,25,26, 0, 0,20,21, 0, 0,24,23, 2, 3, 3, 4,20,21, 0, 0, 0, 0,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 0, 0, 0, 0, 0, 0,20,21, 0, 0, 0, 2, 3, 3, 4, 0, 0, 0, 0,20,21, 0, 0, 0, 2, 3,18,19, 3, 4, 0, 0,57, 0, 0,57, 0, 0, 0,57,57, 0,57,57, 0, 0,38,39, 0, 0,13,14, 0, 0,24,23, 3,64,65, 3,13,14, 0, 0, 0, 5,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 0, 0, 0, 0, 0, 0,13,14, 0, 0, 2, 3,66,67, 3, 4, 0, 0, 0,13,14, 0, 0,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,30,31, 0,24,23, 3,11,12, 3,20,21, 0,42,43,10,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 0, 0, 0, 0, 0, 0,20,21, 0, 0, 2, 3,11,12, 3, 4, 0, 0, 0,20,21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,13,14, 0, 0,24,23, 3,18,19, 3,13,14, 0,47,48,15,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 0,68, 0, 0, 0, 0,13,14, 0, 0, 2, 3,18,19, 3, 4, 0,68, 0,13,14, 0, 0,57,57,57,57, 0, 0, 0,57,57,57, 0, 0, 0, 0,57, 0, 0,57, 0, 0, 0,57,57,57,57, 0, 0,20,21, 0, 0,24,23,27,28,28,28,28,28,28,28,28,31,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0,27,28,28,28,28,28,28,29,30,28,28,28,28,28,28,28,28,28,28,28,28,28,28,31,57,57,57,57,57, 0,57,57,57,57,57, 0, 0,57,57,57,57,57,57, 0, 0,57,57,57,57,57, 0,13,14, 0, 0,24,23,17,16,17,16,17,16,17,16,17,16,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 0,17,16,17,16, 0,13,14, 0, 0, 0, 0, 0, 0, 0,44, 0, 0, 0, 0, 0, 0, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,20,21, 0, 0,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 0,24,23,24,23, 0,20,21, 0, 0, 0, 0, 0, 0, 0,44, 0, 0, 0, 0, 0, 0, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,13,14, 0, 0,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23, 0, 0, 0,24,23,24,23, 0,13,14, 0, 0, 0, 0, 0, 0, 0,44, 0, 0, 0, 0, 0, 0, 0,57,57,57,57, 0, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57,57,57, 0, 0,20,21, 0, 0,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23,22, 0, 0,24,23,24,23, 0,20,21, 0, 0, 0, 0, 0, 0, 0,44, 0, 0, 0, 0, 0, 0, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,13,14, 0, 0,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23,22, 0, 0,24,23,24,23, 0,13,14, 0, 0, 2, 3, 3, 4, 0,44, 0, 0, 0, 0, 0, 0, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,13,14, 0, 0,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23,22, 0, 0,17,69,70,16, 0,20,21, 0, 2, 3,71,72, 3, 4,44, 0, 0, 0, 0, 0, 0, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57, 0,13,14, 0, 0,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{23,23,24,23,24,23,24,23,24,23,42,43, 0,44,11,12,44, 0,13,14, 0, 2, 3,11,12, 3, 4,44, 0, 0, 0, 0, 0, 0, 0,57,57,57,57,57, 0,57,57,57,57,57, 0,57,57, 0,57,57, 0,57,57, 0,57,57,57,57,57, 0,20,21, 0, 0,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24,23,24},
|
|
|
|
{41,41,40,41,40,41,40,41,40,41,47,48,22,44,18,19,44, 0,13,14, 0, 2, 3,18,19, 3, 4,44, 0, 0,68,68, 0, 0, 0,57,57,57,57, 0, 0, 0,57,57,57, 0, 0,57,57, 0,57,57, 0,57,57, 0,57,57,57,57, 0, 0,13,14, 0, 0,40,41,40,41,40,41,40,41,40,41,40,41,40,41,40,41,40,41,40,41,40},
|
|
|
|
{73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73},
|
|
|
|
{74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74},
|
|
|
|
{74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74},
|
|
|
|
{74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74},
|
|
|
|
{74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74},
|
|
|
|
{74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74},
|
|
|
|
{74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74},
|
|
|
|
{74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74},
|
|
|
|
{74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74}};
|
|
|
|
|
|
|
|
signed int Map1Info[53][87] =
|
|
|
|
{{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8,43521,43521, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2},
|
|
|
|
{ 8, 8, 2, 8, 2, 8, 2, 8, 2, 8, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0,43521,43521, 0, 0, 0,43521,43521, 0, 0, 0, 0,43521,43521, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,62976,62976, 0, 0,43521,43521, 2, 8, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2},
|
|
|
|
{ 8, 8, 2, 8, 2, 8, 2, 8, 2, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 0, 0, 0,43521,43521, 0, 0, 0, 1,43521,43521, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2},
|
|
|
|
{ 8, 8, 2, 8, 2, 8, 2, 8, 2, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 0, 0, 0,43521,43521, 0, 0, 0, 0,43521,43521, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,65024,65024, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2, 8, 2},
|
|
|
|
{ 8, 8, 2, 8, 2, 8, 2, 8, 2, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 0, 0, 0,43521,43521, 0, 0, 0, 0,43521,43521, 0,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, 0,43521,43521, 0, 0, 2, 8, 0, 0, 0, 0,43521,43521, 0, 0, 0, 0, 2, 8, 2, 8, 2, 8, 2, 8, 2},
|
|
|
|
{ 8, 8, 2, 8, 2, 8, 2, 8, 2, 8, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 0, 0, 0, 0, 0,62720,62720, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 0, 0, 2, 8, 0, 0, 0, 0,43521,43521, 0, 0, 0, 0, 2, 8, 2, 8, 2, 8, 2, 8, 2},
|
|
|
|
{ 8, 8, 2, 8, 2, 8, 2, 8, 2, 8, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,43521,43521, 1, 0, 2, 8, 0, 0, 0, 0,43521,43521, 0, 0, 0, 0, 2, 8, 2, 8, 2, 8, 2, 8, 2},
|
|
|
|
{ 8, 8, 2, 8, 2, 8, 2, 8, 2, 8, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 0, 0, 2, 8, 0,61184,61184, 0,43521,43521, 0, 0, 0, 0, 2, 8, 2, 8, 2, 8, 2, 8, 2},
|
|
|
|
{ 8, 8, 2, 8, 2, 8, 2, 8, 2, 8, 0, 0, 0, 0, 0, 0, 0, 0,43521,43521, 0, 0, 0, 0,61952,61952, 0, 0, 0, 0, 0,43521,43521, 0, 0, 0, 0, 0, 0, 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;
|
2009-12-15 22:32:21 +00:00
|
|
|
int dirx=0, diry=0;
|
|
|
|
int cptx=0, cpty=0;
|
|
|
|
int bgx=-32, bgy=-32;
|
|
|
|
float idperso=0;
|
2020-01-13 18:26:08 +00:00
|
|
|
int i;
|
2017-06-18 18:29:12 +00:00
|
|
|
float sinnonameno=0;
|
2009-12-15 22:32:21 +00:00
|
|
|
float camZ=1400.0f;
|
|
|
|
float a=0;
|
2009-12-15 21:56:25 +00:00
|
|
|
|
|
|
|
GRRLIB_Init();
|
|
|
|
GRRLIB_Settings.antialias = false;
|
|
|
|
WPAD_Init();
|
|
|
|
GRRLIB_ClipDrawing(0,0,rmode->fbWidth,rmode->efbHeight);
|
2022-03-12 09:50:08 +00:00
|
|
|
GRRLIB_texImg *tex_tile1 = GRRLIB_LoadTexture(tile1_png);
|
2009-12-15 22:32:21 +00:00
|
|
|
GRRLIB_InitTileSet(tex_tile1, TileMap1Width, TileMap1Height, 0);
|
2022-03-12 09:50:08 +00:00
|
|
|
GRRLIB_texImg *tex_perso = GRRLIB_LoadTexture(perso_png);
|
2009-12-15 22:32:21 +00:00
|
|
|
GRRLIB_InitTileSet(tex_perso, 64, 64, 0);
|
2022-03-12 09:50:08 +00:00
|
|
|
GRRLIB_texImg *tex_bg = GRRLIB_LoadTexture(bg_png);
|
|
|
|
GRRLIB_texImg *tex_nonameno = GRRLIB_LoadTexture(nonameno_png);
|
2009-12-15 22:32:21 +00:00
|
|
|
GRRLIB_InitTileSet(tex_nonameno, 32, 32, 0);
|
2009-12-15 21:56:25 +00:00
|
|
|
|
|
|
|
GRRLIB_texImg *tex_screen = GRRLIB_CreateEmptyTexture(rmode->fbWidth, rmode->efbHeight);
|
|
|
|
|
2009-12-15 22:51:39 +00:00
|
|
|
GRRLIB_SetBackgroundColour(0x00, 0x00, 0x00, 0xFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
|
2009-12-15 22:32:21 +00:00
|
|
|
while(1) {
|
|
|
|
GRRLIB_2dMode();
|
2009-12-15 21:56:25 +00:00
|
|
|
WPAD_ScanPads();
|
2010-01-08 23:00:07 +00:00
|
|
|
if (WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME) break;
|
|
|
|
if (WPAD_ButtonsHeld(0) & WPAD_BUTTON_PLUS) camZ+=20.0f;
|
|
|
|
if (WPAD_ButtonsHeld(0) & WPAD_BUTTON_MINUS) camZ-=20.0f;
|
2009-12-15 21:56:25 +00:00
|
|
|
|
2009-12-15 22:32:21 +00:00
|
|
|
if((dirx==0) && (diry==0)) {
|
|
|
|
if (WPAD_ButtonsHeld(0) & WPAD_BUTTON_LEFT) { diry=-4; idperso=15;}
|
|
|
|
else if (WPAD_ButtonsHeld(0) & WPAD_BUTTON_RIGHT) { diry=4; idperso=15;}
|
2020-01-13 19:41:26 +00:00
|
|
|
else if (WPAD_ButtonsHeld(0) & WPAD_BUTTON_DOWN) { dirx=-4; idperso=1;}
|
|
|
|
else if (WPAD_ButtonsHeld(0) & WPAD_BUTTON_UP) { dirx=4; idperso=8;}
|
2009-12-15 21:56:25 +00:00
|
|
|
}
|
|
|
|
|
2009-12-15 22:32:21 +00:00
|
|
|
if((dirx==0) && (diry==0)) {
|
|
|
|
idperso=0;
|
2009-12-15 21:56:25 +00:00
|
|
|
}
|
|
|
|
|
2009-12-15 22:32:21 +00:00
|
|
|
if(((Map1Info[9+starty][10+startx]==1) || (Map1Info[9+starty][11+startx]==1)) || ((Map1Info[9+starty][10+startx]==43521) || (Map1Info[9+starty][11+startx]==43521))) {
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
dirx=0;
|
2009-12-15 21:56:25 +00:00
|
|
|
diry=-4;
|
2009-12-15 22:32:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if(dirx<0) {
|
|
|
|
if((Map1Info[7+starty][12+startx]==8) || (Map1Info[7+starty][12+startx]==2) || (Map1Info[8+starty][12+startx]==8) || (Map1Info[8+starty][12+startx]==2)) {
|
|
|
|
dirx=0;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
idperso++;
|
|
|
|
if(idperso>7)
|
|
|
|
idperso=1;
|
2009-12-15 21:56:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-12-15 22:32:21 +00:00
|
|
|
if(dirx>0) {
|
|
|
|
if((Map1Info[7+starty][9+startx]==8) || (Map1Info[7+starty][9+startx]==2) || (Map1Info[8+starty][9+startx]==8) || (Map1Info[8+starty][9+startx]==2)) {
|
|
|
|
dirx=0;
|
2009-12-15 21:56:25 +00:00
|
|
|
}
|
2009-12-15 22:32:21 +00:00
|
|
|
else {
|
|
|
|
idperso++;
|
|
|
|
if(idperso>14)
|
|
|
|
idperso=8;
|
2009-12-15 21:56:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-12-15 22:32:21 +00:00
|
|
|
if(diry<0) {
|
|
|
|
if((Map1Info[9+starty][10+startx]==1) || (Map1Info[9+starty][11+startx]==1)) {
|
2009-12-15 21:56:25 +00:00
|
|
|
diry=0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-12-15 22:32:21 +00:00
|
|
|
if(diry!=0) {
|
|
|
|
idperso++;
|
2009-12-15 21:56:25 +00:00
|
|
|
if(idperso>22)
|
|
|
|
idperso=16;
|
|
|
|
}
|
|
|
|
|
|
|
|
cptx+=dirx;
|
2009-12-15 22:32:21 +00:00
|
|
|
if(dirx>0)
|
|
|
|
bgx++;
|
|
|
|
else if(dirx<0)
|
|
|
|
bgx--;
|
|
|
|
if((bgx>-1) || (bgx<-63))
|
2009-12-15 21:56:25 +00:00
|
|
|
bgx=-32;
|
|
|
|
|
2009-12-15 22:32:21 +00:00
|
|
|
if(cptx==32) {
|
2009-12-15 21:56:25 +00:00
|
|
|
cptx=0;
|
|
|
|
dirx=0;
|
|
|
|
startx--;
|
|
|
|
}
|
2009-12-15 22:32:21 +00:00
|
|
|
else if(cptx==-32) {
|
2009-12-15 21:56:25 +00:00
|
|
|
cptx=0;
|
|
|
|
dirx=0;
|
|
|
|
startx++;
|
|
|
|
}
|
|
|
|
|
|
|
|
cpty+=diry;
|
2009-12-15 22:32:21 +00:00
|
|
|
if(diry>0)
|
|
|
|
bgy++;
|
|
|
|
else if(diry<0)
|
|
|
|
bgy--;
|
2009-12-15 21:56:25 +00:00
|
|
|
if((bgy>-1) ||(bgy<-63))
|
|
|
|
bgy=-32;
|
|
|
|
|
2009-12-15 22:32:21 +00:00
|
|
|
if(cpty==32) {
|
2009-12-15 21:56:25 +00:00
|
|
|
cpty=0;
|
|
|
|
diry=0;
|
|
|
|
starty--;
|
|
|
|
}
|
2009-12-15 22:32:21 +00:00
|
|
|
else if(cpty==-32) {
|
2009-12-15 21:56:25 +00:00
|
|
|
cpty=0;
|
2009-12-15 22:32:21 +00:00
|
|
|
if(((Map1Info[9+starty][10+startx]==1) || (Map1Info[9+starty][11+startx]==1)) || ((Map1Info[9+starty][10+startx]==43521) || (Map1Info[9+starty][11+startx]==43521))) {
|
2009-12-15 21:56:25 +00:00
|
|
|
diry=0;
|
|
|
|
}
|
|
|
|
starty++;
|
|
|
|
}
|
2009-12-15 22:32:21 +00:00
|
|
|
GRRLIB_DrawImg(bgx, bgy, tex_bg, 0, 1, 1, 0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
|
2020-01-13 18:26:08 +00:00
|
|
|
for(y=0; y<=17; y++) {
|
|
|
|
for(x=0; x<=21; x++) {
|
|
|
|
if(Map1Data[y+starty][x+startx] != 0) {
|
|
|
|
GRRLIB_DrawTile(x*TileMap1Width+cptx-TileMap1Width,y*TileMap1Height+cpty-TileMap1Height,tex_tile1,0,1,1,0xFFFFFFFF,Map1Data[y+starty][x+startx]-1);
|
|
|
|
}
|
2009-12-15 21:56:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
GRRLIB_DrawTile(TileMap1Width*9,TileMap1Height*6,tex_perso,0,1,1,0xFFFFFFFF,(int)idperso);
|
|
|
|
|
2017-06-18 18:29:12 +00:00
|
|
|
const float oldsinnonameno=sinnonameno;
|
2009-12-15 22:32:21 +00:00
|
|
|
for(i=0; i<8; i++) {
|
2009-12-15 21:56:25 +00:00
|
|
|
GRRLIB_DrawTile(TileMap1Width*(6+i),(TileMap1Height*10)+sin(sinnonameno)*64,tex_nonameno,0,1,1,0xFFFFFFFF,i);
|
|
|
|
sinnonameno+=0.4F;
|
|
|
|
}
|
|
|
|
sinnonameno=oldsinnonameno+0.08F;
|
|
|
|
|
2009-12-15 22:32:21 +00:00
|
|
|
GRRLIB_Screen2Texture(0, 0, tex_screen, GX_TRUE);
|
2009-12-15 21:56:25 +00:00
|
|
|
|
|
|
|
|
2009-12-15 22:51:39 +00:00
|
|
|
GRRLIB_Camera3dSettings(0.0f,0.0f,camZ, 0,1,0, 0,0,0);
|
2010-04-06 11:23:31 +00:00
|
|
|
GRRLIB_3dMode(0.1,3000,45,1,0);
|
2009-12-15 22:51:39 +00:00
|
|
|
GRRLIB_SetTexture(tex_screen,0);
|
2010-01-05 22:04:33 +00:00
|
|
|
GRRLIB_ObjectView(0,0,0, a,a*2,a*3,1,1,1);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_Begin(GX_QUADS, GX_VTXFMT0, 16);
|
|
|
|
GX_Position3f32(-rmode->fbWidth/2,rmode->efbHeight/2,rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(0.0f,0.0f);
|
|
|
|
GX_Position3f32(rmode->fbWidth/2,rmode->efbHeight/2,rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(1.0f,0.0f);
|
|
|
|
GX_Position3f32(rmode->fbWidth/2,-rmode->efbHeight/2,rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(1.0f,1.0f);
|
|
|
|
GX_Position3f32(-rmode->fbWidth/2,-rmode->efbHeight/2,rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(0.0f,1.0f);
|
|
|
|
|
|
|
|
GX_Position3f32(rmode->fbWidth/2,rmode->efbHeight/2,-rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(0.0f,0.0f);
|
|
|
|
GX_Position3f32(-rmode->fbWidth/2,rmode->efbHeight/2,-rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(1.0f,0.0f);
|
|
|
|
GX_Position3f32(-rmode->fbWidth/2,-rmode->efbHeight/2,-rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(1.0f,1.0f);
|
|
|
|
GX_Position3f32(rmode->fbWidth/2,-rmode->efbHeight/2,-rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(0.0f,1.0f);
|
|
|
|
|
|
|
|
GX_Position3f32(rmode->fbWidth/2,rmode->efbHeight/2,rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(0.0f,0.0f);
|
|
|
|
GX_Position3f32(rmode->fbWidth/2,rmode->efbHeight/2,-rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(1.0f,0.0f);
|
|
|
|
GX_Position3f32(rmode->fbWidth/2,-rmode->efbHeight/2,-rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(1.0f,1.0f);
|
|
|
|
GX_Position3f32(rmode->fbWidth/2,-rmode->efbHeight/2,rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(0.0f,1.0f);
|
|
|
|
|
|
|
|
GX_Position3f32(-rmode->fbWidth/2,rmode->efbHeight/2,-rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(0.0f,0.0f);
|
|
|
|
GX_Position3f32(-rmode->fbWidth/2,rmode->efbHeight/2,rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(1.0f,0.0f);
|
|
|
|
GX_Position3f32(-rmode->fbWidth/2,-rmode->efbHeight/2,rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(1.0f,1.0f);
|
|
|
|
GX_Position3f32(-rmode->fbWidth/2,-rmode->efbHeight/2,-rmode->fbWidth/2);
|
2010-10-05 02:50:44 +00:00
|
|
|
GX_Color1u32(0xFFFFFFFF);
|
2009-12-15 21:56:25 +00:00
|
|
|
GX_TexCoord2f32(0.0f,1.0f);
|
2009-12-15 22:32:21 +00:00
|
|
|
GX_End();
|
2009-12-15 21:56:25 +00:00
|
|
|
|
|
|
|
a+=0.2f;
|
|
|
|
|
|
|
|
GRRLIB_Render();
|
|
|
|
}
|
|
|
|
|
|
|
|
GRRLIB_FreeTexture(tex_tile1);
|
|
|
|
GRRLIB_FreeTexture(tex_perso);
|
|
|
|
GRRLIB_FreeTexture(tex_bg);
|
|
|
|
GRRLIB_FreeTexture(tex_nonameno);
|
|
|
|
GRRLIB_FreeTexture(tex_screen);
|
2011-03-16 01:24:01 +00:00
|
|
|
GRRLIB_Exit();
|
2009-12-15 22:32:21 +00:00
|
|
|
exit(0);
|
2009-12-15 21:56:25 +00:00
|
|
|
}
|
|
|
|
|