Allegro

Allegro
C++

Pong-Pong C++ / Allegro

#include <allegro.h> #define MAX_X 600 #define MAX_Y 300 #define VMODE GFX_AUTODETECT #define SOUND_CARD DIGI_AUTODETECT #define MIDI_CARD MIDI_AUTODETECT #define BOLA_W 10 #define BOLA_H 10 #define BOLA_COLOR 255,255,255 #define JOGADOR_W 5 #define JOGADOR_H 80 #define JOGADOR_COLOR 255,255,255 #define RISCO_W 2 #define RISCO_H MAX_Y #define RISCO_COLOR 255,255,255 #define DIS_Y 130 #define DIS_X (MAX_X/2)-30 int BOLA_VELOCIDADE = 1; int […]

Read More