./1
- Posted On the 2009-12-03 at 07:30 pm Member since 2009-09-12, 38 posts
Salut, j'ai dans mon programme une boucle while qui s'effectue tant qu'une variable (nommée bool_enter) ne vaut pas 1.

Dans cette boucle je fais un ngetchx que je test. Si on appuie sur esc ou enter, la variable bool_enter est mise à 1, puis la boucle continue et revient au début.
Donc là, logiquement, la boucle ne devrait pas être exécutée puisque la variable testée vaut bien 1.
Mais la boucle est toujours faite une fois (là si je réappuie sur entrer ou esc, la boucle est stoppée).

Donc je voudrais savoir pourquoi la boucle continue d'être exécutée une fois de trop.

Je mets mes codes sources pour que vous puissiez voir (elle ne marche pas la balise hide? là ça fait gonfler la page, désolé...):

Le fichier main:
// C Source File - Main
// Created 28/10/2009; 11:37:49

#include <tigcclib.h>

#include "pics.h"

#define FULLSCREEN (&(SCR_RECT){{0,0,159,99}})

short menu_principal(short selection);


// Main Function
void _main(void)
{

LCD_BUFFER sauvegarde_ecran;
LCD_save(sauvegarde_ecran);

clrscr();

BitmapPut(0, 0, &bitmap, FULLSCREEN, A_NORMAL);

DrawStr (50, 65, "Version 0.1", A_NORMAL);
DrawStr (20, 80, "appuyez sur une touche", A_NORMAL);
ngetchx();
clrscr();
menu_principal(0);
printf("%d", menu_principal(0));
ngetchx();

LCD_restore(sauvegarde_ecran);
}

//Main menu fonction
short menu_principal(short selection)
{

char select_actuel = 1;
char bool_enter = 0;
short action = 0;
short select_x = 15, select_y = 25, select_x2 = 135;

clrscr();
BitmapPut(25, 9, &crate, FULLSCREEN, A_NORMAL);
DrawStr (40, 10, "MENU PRINCIPAL", A_NORMAL);
BitmapPut(130, 9, &crate, FULLSCREEN, A_NORMAL);
DrawStr (35, 25, "Nouvelle partie", A_NORMAL);
DrawStr (50, 40, "Continuer", A_NORMAL);
DrawStr (55, 55, "Credits", A_NORMAL);
DrawStr (55, 70, "Quitter", A_NORMAL);
BitmapPut(select_x, select_y, &player, FULLSCREEN, A_NORMAL); //drawing the first stickmans
BitmapPut(select_x2, select_y, &player, FULLSCREEN, A_NORMAL);

while (bool_enter != 1)
{
action = ngetchx();
if (action == 337)
select_actuel--;
if (action == 340)
select_actuel++;
if (action == 264 || action == 13)
bool_enter = 1;


DrawStr (select_x, select_y, " ", A_REPLACE); //Clearing the stickmans
DrawStr (select_x2, select_y, " ", A_REPLACE);

switch (select_actuel)
{
case 1:
select_x = 15;
select_y = 25;
select_x2 = 135;
selection = 1;
break;
case 2:
select_x = 30;
select_y = 40;
select_x2 = 120;
selection = 2;
break;
case 3:
select_x = 35;
select_y = 55;
select_x2 = 110;
selection = 3;
break;
case 4:
select_x = 35;
select_y = 70;
select_x2 = 110;
selection = 4;
default:
break;
}
BitmapPut(select_x, select_y, &player, FULLSCREEN, A_NORMAL); //drawing the stickmans
BitmapPut(select_x2, select_y, &player, FULLSCREEN, A_NORMAL);
}
clrscr();
return selection;
}


Le fichier des images:

// Header File - Pics & Sprites
// Created 01/11/2009; 17:56:09

//Player sprite

static BITMAP player = {
8,8,
{ 0x18,
0x3C,
0x3C,
0x18,
0x7E,
0x18,
0x24,
0x24
}};

//Brick sprite

static BITMAP brick = {
8,8,
{ 0x22,
0xFF,
0x88,
0xFF,
0x22,
0xFF,
0x88,
0xFF
}};


//Crate sprite

static BITMAP crate =
{
8,8,
{ 0xFF,
0xC3,
0xA5,
0x99,
0x99,
0xA5,
0xC3,
0xFF
}};



//Title screen picture

static BITMAP bitmap =
{
100,160,
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x07,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x0F,0xFF,0x00,0x7F,0xF0,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x1F,0xBF,0x01,0xFF,0xF8,0x0F,0x80,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3C,0x0F,0x03,0xFF,0xFC,0x0F,0x81,0xF8,0x0F,0xFE,0x00,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x7C,0x0F,0x07,0xE0,0x7C,0x1F,0x03,0xF0,0x3F,0xFF,0x01,0xFF,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x7C,0x0E,0x0F,0xC0,0x7E,0x1F,0x0F,0xC0,0x7F,0xFF,0x81,0xFF,0xFC,0x00,0x3E,0x00,0x00,0x00,0x00,
0x00,0x7E,0x00,0x1F,0x80,0x7E,0x3E,0x1F,0x80,0xFC,0x0F,0x83,0xE3,0xFC,0x00,0x7E,0x00,0x70,0x00,0x00,
0x00,0x7F,0xC0,0x1F,0x00,0x3E,0x3E,0x3E,0x01,0xF8,0x0F,0xC3,0xE0,0x7C,0x00,0xFF,0x00,0xF8,0x03,0x80,
0x00,0x3F,0xF0,0x3E,0x00,0x7C,0x3E,0xFC,0x03,0xF0,0x0F,0xC7,0xE0,0x7C,0x01,0xFF,0x00,0xF8,0x07,0x80,
0x00,0x0F,0xF8,0x3E,0x00,0x7C,0x7D,0xF8,0x03,0xE0,0x07,0xC7,0xC0,0xF8,0x03,0xFF,0x01,0xFC,0x0F,0x80,
0x00,0x01,0xFC,0x7E,0x00,0x7C,0x7F,0xF8,0x07,0xC0,0x0F,0x87,0xC0,0xF8,0x03,0xDF,0x01,0xFC,0x0F,0x00,
0x01,0xC0,0x7C,0x7C,0x00,0xF8,0xFF,0xF8,0x07,0xC0,0x0F,0x8F,0xF7,0xF0,0x07,0x9F,0x03,0xFC,0x0F,0x00,
0x03,0xC0,0x7C,0x7C,0x00,0xF8,0xFE,0xFC,0x0F,0xC0,0x0F,0x8F,0xFF,0xC0,0x0F,0x9F,0x03,0xFC,0x1E,0x00,
0x03,0xC0,0x78,0x7C,0x01,0xF0,0xF8,0x7C,0x0F,0x80,0x1F,0x1F,0xFF,0xC0,0x1F,0x1F,0x03,0xFE,0x1E,0x00,
0x07,0xC0,0xF8,0x7C,0x03,0xF1,0xF0,0x7C,0x0F,0x80,0x1F,0x1F,0x1F,0xE0,0x3E,0x1F,0x07,0x9E,0x1E,0x00,
0x03,0xFF,0xF0,0x7E,0x07,0xE1,0xF0,0x7E,0x0F,0x80,0x3E,0x1F,0x03,0xE0,0x7C,0x1F,0x07,0x9E,0x3C,0x00,
0x03,0xFF,0xE0,0x7F,0xBF,0xC3,0xF0,0x7E,0x0F,0x80,0x7E,0x3E,0x03,0xE0,0xFE,0x1F,0x0F,0x1E,0x3C,0x00,
0x01,0xFF,0x80,0x3F,0xFF,0x03,0xE0,0x7E,0x0F,0xC0,0xFC,0x3E,0x03,0xE0,0xFF,0xFF,0x0F,0x1F,0x78,0x00,
0x00,0x00,0x00,0x1F,0xFE,0x03,0xE0,0x3E,0x0F,0xF7,0xF8,0x7E,0x07,0xE1,0xFF,0xFF,0x0F,0x0F,0x78,0x00,
0x00,0x00,0x00,0x01,0xE0,0x03,0xC0,0x3E,0x07,0xFF,0xE0,0x7F,0x9F,0xC3,0xE3,0xFF,0x1E,0x0F,0x78,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x03,0xFF,0xC0,0x7F,0xFF,0x87,0xE0,0x1F,0x1E,0x0F,0xF0,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x00,0x7F,0xFF,0x07,0xC0,0x1F,0x3E,0x07,0xF0,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x07,0x80,0x1F,0x3C,0x07,0xE0,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1E,0x3C,0x07,0xE0,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x07,0xC0,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x00,
0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0xFC,0x00,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x0F,0xFE,0x07,0xFE,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x1F,0xBE,0x0F,0xFF,0x07,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x3E,0x1E,0x1F,0xBF,0x07,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x7C,0x1E,0x3E,0x0F,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xF8,0x00,0x3C,0x0F,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xF9,0x00,0x3C,0x0F,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0xFF,0xF0,0x3C,0x1E,0x1E,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0xFF,0xF0,0x3F,0xFC,0x1E,0x7E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xFD,0xF8,0x1F,0xF8,0x3C,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xF0,0xF8,0x7F,0xF8,0x3D,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xE0,0x78,0xF9,0xF8,0x7B,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xC0,0xF9,0xE0,0x7C,0x7F,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xC0,0xF3,0xC0,0x78,0x7F,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x07,0xE1,0xE3,0xC0,0x78,0xFB,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xFF,0xE3,0xC0,0xF8,0xF3,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xFF,0xC3,0xFF,0xF1,0xF3,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0xFF,0x03,0xFF,0xE1,0xE3,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xFF,0x81,0xE1,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0xC1,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE6,0x33,0x80,0x22,0x54,0x00,0xCC,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x29,0x4C,0xC0,0x2C,0x14,0x00,0xCC,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x4A,0x54,0x80,0x38,0x55,0xDE,0xD7,0xCE,0x38,0xEF,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xD2,0x9C,0x80,0x78,0xAA,0x51,0x5E,0x52,0x49,0x28,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x12,0x97,0x8C,0x58,0xAB,0xD1,0x69,0xD2,0x49,0xE8,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x14,0xA9,0x00,0x48,0xAA,0x51,0xEE,0xD4,0x51,0x28,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x98,0xCE,0x00,0x89,0x53,0xA2,0xDF,0xBC,0xF1,0xD0,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x80,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x00,0x00
}
};


Voilà merci smile
Programmeur sur TI82, et bientôt sur 89!
./2
- Posted On the 2009-12-03 at 07:36 pm Member since 2001-06-30, 35437 posts
Je ne suis pas sûr d'avoir compris, quelle est cette fois de trop dont tu parles ?
avatar Que cache le pays des Dieux ? - Ximoon's Box - Forum Ghibli - Forum Littéraire

La fin d'un monde souillé est venue. L'oiseau blanc plane dans le ciel annonçant le début d'une longue ère de purification. Détachons-nous à jamais de notre vie dans ce monde de souffrance. Ô toi l'oiseau blanc, l'être vêtu de bleu, guide nous vers ce monde de pureté. - Sutra originel dork.
./3
- Posted On the 2009-12-03 at 07:44 pm - Edited by Yoshi Noir On the 2009-12-03 at 07:47 pm Member since 2003-10-29, 24132 posts
mets le ngetchx() et les ifs correspondants en fin de boucle while.

Comme ça, lorsqu'on appuiera sur une touche, on sera donc en fin de boucle, et le programme pourra retourner au début de la boucle et tout de suite après, vérifier la condition sans qu'il ne se passe rien entre-temps.

ps : la façon dont tu changes la variable "select_y" est un peu horrible :

select_y = select_y * 15 +10;

hors des switches est un poil meilleur
avatar Tel un automate, le dinosaure noir s'avance vers le chef des Chomps et dit : « Une balle pour chaque recruteur et chaque baby-boomer. Alors s'il est les deux en même temps… ».

« Very est aux choses intellectuelles ce que le jacky est aux voitures de sport. » - The_CUrE
./4
- Posted On the 2009-12-03 at 07:46 pm Member since 2003-06-15, 8018 posts
Ouais pareil je vois pas trop...

Tu as vérifié que ta boucle fonctionnait bien et que les variables avaient bien la bonne valeur au bon moment ? (En affichant à l'écran par exemple...)
Car si t'as un problème le seul truc que je vois c ngetchx...

Sinon oué la balise hide ne marche plus (ça fait super longtemps d'ailleurs, étrange qu'elle traine encore ici...), mais tu peux utiliser [box][pre] [/pre][/box] pour le code, ou même [source].
avatar Le scénario de notre univers a été rédigée par un bataillon de singes savants. Tout s'explique enfin.
T'as un problème ? Tu veux un bonbon ?
[CrystalMPQ] C# MPQ Library/Tools - [CrystalBoy] C# GB Emulator - [Monoxide] C# OSX library - M68k Opcodes
./5
- Posted On the 2009-12-03 at 07:48 pm Member since 2009-09-12, 38 posts
C'est dans la fonction menu_principal.

Après l'affichage des éléments du menus (de bêtes strings: nouvelle partie, continuer, credits, quitter...), je fais une boucle while:


//debut de la fonction
...

while (bool_enter != 1)
{
action = ngetchx();
if (action == 337)
select_actuel--;
if (action == 340)
select_actuel++;
if (action == 264 || action == 13)
bool_enter = 1;
//je teste ici la valeur de la touche appuyée, si on appuie sur entrée ou escape, le booléen passe à 1
//mais après la boucle se répète encore une fois, alors que bool_enter vaut maintenant 1



DrawStr (select_x, select_y, " ", A_REPLACE); //Clearing the stickmans
DrawStr (select_x2, select_y, " ", A_REPLACE);

switch (select_actuel)
{
case 1:
select_x = 15;
select_y = 25;
select_x2 = 135;
selection = 1;
break;
case 2:
select_x = 30;
select_y = 40;
select_x2 = 120;
selection = 2;
break;
case 3:
select_x = 35;
select_y = 55;
select_x2 = 110;
selection = 3;
break;
case 4:
select_x = 35;
select_y = 70;
select_x2 = 110;
selection = 4;
default:
break;
}
BitmapPut(select_x, select_y, &player, FULLSCREEN, A_NORMAL); //drawing the stickmans
BitmapPut(select_x2, select_y, &player, FULLSCREEN, A_NORMAL);
}
clrscr();
return selection;
}


Edit: @ Yoshi_noir: oui j'y avais pensé aussi, je comptais essayer.
Ok pour la variable select_y.

MErci de vos réponses.
Programmeur sur TI82, et bientôt sur 89!
./6
- Posted On the 2009-12-03 at 08:09 pm Member since 2001-06-18, 30690 posts
Sinon, tu utilises 337, 340 etc pour les codes de touches. Visiblement, ça ne fonctionnera bien que sur 89/89ti. Utilises KEY_LEFT/KEY_RIGHT etc... si tu veux que ça fonctionne aussi sur 92+/v200
avatar <<< Kernel Extremist©®™ >>>
Saint Qt, priez pour nous.
./7
- Posted On the 2009-12-03 at 08:39 pm Member since 2009-09-12, 38 posts
En parlant de ça, il doit surement exister une liste des touches et de leurs valeurs non? Je n'arrive pas à en trouver.

Programmeur sur TI82, et bientôt sur 89!
./8
- Posted On the 2009-12-03 at 08:50 pm Member since 2001-10-28, 7581 posts
Il y a l'enum CommonKeys de kbd.h, et les KEY_* de compat.h.
avatar Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Co-admin de TI-Planet.
./9
- Posted On the 2009-12-03 at 08:57 pm Member since 2005-12-09, 6539 posts
C'est comme ça qu'on fait des hide ici.

hide
// C Source File - Main
// Created 28/10/2009; 11:37:49

#include <tigcclib.h>

#include "pics.h"

#define FULLSCREEN (&(SCR_RECT){{0,0,159,99}})

short menu_principal(short selection);


// Main Function
void _main(void)
{

LCD_BUFFER sauvegarde_ecran;
LCD_save(sauvegarde_ecran);

clrscr();

BitmapPut(0, 0, &bitmap, FULLSCREEN, A_NORMAL);

DrawStr (50, 65, "Version 0.1", A_NORMAL);
DrawStr (20, 80, "appuyez sur une touche", A_NORMAL);
ngetchx();
clrscr();
menu_principal(0);
printf("%d", menu_principal(0));
ngetchx();

LCD_restore(sauvegarde_ecran);
}

//Main menu fonction
short menu_principal(short selection)
{

char select_actuel = 1;
char bool_enter = 0;
short action = 0;
short select_x = 15, select_y = 25, select_x2 = 135;

clrscr();
BitmapPut(25, 9, &crate, FULLSCREEN, A_NORMAL);
DrawStr (40, 10, "MENU PRINCIPAL", A_NORMAL);
BitmapPut(130, 9, &crate, FULLSCREEN, A_NORMAL);
DrawStr (35, 25, "Nouvelle partie", A_NORMAL);
DrawStr (50, 40, "Continuer", A_NORMAL);
DrawStr (55, 55, "Credits", A_NORMAL);
DrawStr (55, 70, "Quitter", A_NORMAL);
BitmapPut(select_x, select_y, &player, FULLSCREEN, A_NORMAL); //drawing the first stickmans
BitmapPut(select_x2, select_y, &player, FULLSCREEN, A_NORMAL);

while (bool_enter != 1)
{
action = ngetchx();
if (action == 337)
select_actuel--;
if (action == 340)
select_actuel++;
if (action == 264 || action == 13)
bool_enter = 1;


DrawStr (select_x, select_y, " ", A_REPLACE); //Clearing the stickmans
DrawStr (select_x2, select_y, " ", A_REPLACE);

switch (select_actuel)
{
case 1:
select_x = 15;
select_y = 25;
select_x2 = 135;
selection = 1;
break;
case 2:
select_x = 30;
select_y = 40;
select_x2 = 120;
selection = 2;
break;
case 3:
select_x = 35;
select_y = 55;
select_x2 = 110;
selection = 3;
break;
case 4:
select_x = 35;
select_y = 70;
select_x2 = 110;
selection = 4;
default:
break;
}
BitmapPut(select_x, select_y, &player, FULLSCREEN, A_NORMAL); //drawing the stickmans
BitmapPut(select_x2, select_y, &player, FULLSCREEN, A_NORMAL);
}
clrscr();
return selection;
}


Le fichier des images:

// Header File - Pics & Sprites
// Created 01/11/2009; 17:56:09

//Player sprite

static BITMAP player = {
8,8,
{ 0x18,
0x3C,
0x3C,
0x18,
0x7E,
0x18,
0x24,
0x24
}};

//Brick sprite

static BITMAP brick = {
8,8,
{ 0x22,
0xFF,
0x88,
0xFF,
0x22,
0xFF,
0x88,
0xFF
}};


//Crate sprite

static BITMAP crate =
{
8,8,
{ 0xFF,
0xC3,
0xA5,
0x99,
0x99,
0xA5,
0xC3,
0xFF
}};



//Title screen picture

static BITMAP bitmap =
{
100,160,
{
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x07,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x0F,0xFF,0x00,0x7F,0xF0,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x1F,0xBF,0x01,0xFF,0xF8,0x0F,0x80,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x3C,0x0F,0x03,0xFF,0xFC,0x0F,0x81,0xF8,0x0F,0xFE,0x00,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x7C,0x0F,0x07,0xE0,0x7C,0x1F,0x03,0xF0,0x3F,0xFF,0x01,0xFF,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x7C,0x0E,0x0F,0xC0,0x7E,0x1F,0x0F,0xC0,0x7F,0xFF,0x81,0xFF,0xFC,0x00,0x3E,0x00,0x00,0x00,0x00,
0x00,0x7E,0x00,0x1F,0x80,0x7E,0x3E,0x1F,0x80,0xFC,0x0F,0x83,0xE3,0xFC,0x00,0x7E,0x00,0x70,0x00,0x00,
0x00,0x7F,0xC0,0x1F,0x00,0x3E,0x3E,0x3E,0x01,0xF8,0x0F,0xC3,0xE0,0x7C,0x00,0xFF,0x00,0xF8,0x03,0x80,
0x00,0x3F,0xF0,0x3E,0x00,0x7C,0x3E,0xFC,0x03,0xF0,0x0F,0xC7,0xE0,0x7C,0x01,0xFF,0x00,0xF8,0x07,0x80,
0x00,0x0F,0xF8,0x3E,0x00,0x7C,0x7D,0xF8,0x03,0xE0,0x07,0xC7,0xC0,0xF8,0x03,0xFF,0x01,0xFC,0x0F,0x80,
0x00,0x01,0xFC,0x7E,0x00,0x7C,0x7F,0xF8,0x07,0xC0,0x0F,0x87,0xC0,0xF8,0x03,0xDF,0x01,0xFC,0x0F,0x00,
0x01,0xC0,0x7C,0x7C,0x00,0xF8,0xFF,0xF8,0x07,0xC0,0x0F,0x8F,0xF7,0xF0,0x07,0x9F,0x03,0xFC,0x0F,0x00,
0x03,0xC0,0x7C,0x7C,0x00,0xF8,0xFE,0xFC,0x0F,0xC0,0x0F,0x8F,0xFF,0xC0,0x0F,0x9F,0x03,0xFC,0x1E,0x00,
0x03,0xC0,0x78,0x7C,0x01,0xF0,0xF8,0x7C,0x0F,0x80,0x1F,0x1F,0xFF,0xC0,0x1F,0x1F,0x03,0xFE,0x1E,0x00,
0x07,0xC0,0xF8,0x7C,0x03,0xF1,0xF0,0x7C,0x0F,0x80,0x1F,0x1F,0x1F,0xE0,0x3E,0x1F,0x07,0x9E,0x1E,0x00,
0x03,0xFF,0xF0,0x7E,0x07,0xE1,0xF0,0x7E,0x0F,0x80,0x3E,0x1F,0x03,0xE0,0x7C,0x1F,0x07,0x9E,0x3C,0x00,
0x03,0xFF,0xE0,0x7F,0xBF,0xC3,0xF0,0x7E,0x0F,0x80,0x7E,0x3E,0x03,0xE0,0xFE,0x1F,0x0F,0x1E,0x3C,0x00,
0x01,0xFF,0x80,0x3F,0xFF,0x03,0xE0,0x7E,0x0F,0xC0,0xFC,0x3E,0x03,0xE0,0xFF,0xFF,0x0F,0x1F,0x78,0x00,
0x00,0x00,0x00,0x1F,0xFE,0x03,0xE0,0x3E,0x0F,0xF7,0xF8,0x7E,0x07,0xE1,0xFF,0xFF,0x0F,0x0F,0x78,0x00,
0x00,0x00,0x00,0x01,0xE0,0x03,0xC0,0x3E,0x07,0xFF,0xE0,0x7F,0x9F,0xC3,0xE3,0xFF,0x1E,0x0F,0x78,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0x03,0xFF,0xC0,0x7F,0xFF,0x87,0xE0,0x1F,0x1E,0x0F,0xF0,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x00,0x7F,0xFF,0x07,0xC0,0x1F,0x3E,0x07,0xF0,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x07,0x80,0x1F,0x3C,0x07,0xE0,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1E,0x3C,0x07,0xE0,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x38,0x07,0xC0,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x00,
0x00,0x00,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x07,0xFC,0x00,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x0F,0xFE,0x07,0xFE,0x03,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x1F,0xBE,0x0F,0xFF,0x07,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x3E,0x1E,0x1F,0xBF,0x07,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x7C,0x1E,0x3E,0x0F,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xF8,0x00,0x3C,0x0F,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xF9,0x00,0x3C,0x0F,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0xFF,0xF0,0x3C,0x1E,0x1E,0x1E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0xFF,0xF0,0x3F,0xFC,0x1E,0x7E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xFD,0xF8,0x1F,0xF8,0x3C,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xF0,0xF8,0x7F,0xF8,0x3D,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xE0,0x78,0xF9,0xF8,0x7B,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xC0,0xF9,0xE0,0x7C,0x7F,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xC0,0xF3,0xC0,0x78,0x7F,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x07,0xE1,0xE3,0xC0,0x78,0xFB,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xFF,0xE3,0xC0,0xF8,0xF3,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x03,0xFF,0xC3,0xFF,0xF1,0xF3,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0xFF,0x03,0xFF,0xE1,0xE3,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0xFF,0x81,0xE1,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0xC1,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xE6,0x33,0x80,0x22,0x54,0x00,0xCC,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x29,0x4C,0xC0,0x2C,0x14,0x00,0xCC,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x4A,0x54,0x80,0x38,0x55,0xDE,0xD7,0xCE,0x38,0xEF,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xD2,0x9C,0x80,0x78,0xAA,0x51,0x5E,0x52,0x49,0x28,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x12,0x97,0x8C,0x58,0xAB,0xD1,0x69,0xD2,0x49,0xE8,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x14,0xA9,0x00,0x48,0xAA,0x51,0xEE,0xD4,0x51,0x28,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x98,0xCE,0x00,0x89,0x53,0xA2,0xDF,0xBC,0xF1,0xD0,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x80,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x00,0x00
}
};

- Posted On the 2009-12-04 at 09:35 am Member since 2002-06-13, 39658 posts
tant qu'on y est, 2eme astuce : coller des énormes tableaux de sprites ça n'apporte pas des informations très utiles, donc autant en faire l'économie et préserver la mise en page ^^
avatar I invited your best friend the companion cube. Of course, he couldn't come because you murdered him.
------------------------------------------
Mirari² :: It offers what you want, not what you need
3l33t :: Relax, we understand j00 ^^
- Posted On the 2009-12-04 at 05:36 pm Member since 2009-09-12, 38 posts
Zephyr (./10) :
tant qu'on y est, 2eme astuce : coller des énormes tableaux de sprites ça n'apporte pas des informations très utiles, donc autant en faire l'économie et préserver la mise en page ^^


C'était au cas ou vous vouliez compiler pour voir wink
Programmeur sur TI82, et bientôt sur 89!