Shareman - Príspevky
Prehľadať tieto výsledky:

Stránka: 1 z 1 [ Vyhľadávanie našlo 2 výsledkov ]

AutorSpráva

 Fórum: Backend   Téma: Pomoc: Pong v C


Odpovede: 2
Zobrazenia: 723


Takže ak som to dobre pochopil rozdelím to na tieto 3 súbory:


#include <curses.h>
#include <signal.h>
#include "ppong.h"

struct ppball the_ball ;

/** the main loop **/

void set_up();
void wrap_up();

int main()
{
int c;

set_up();

while ( &...

 Fórum: Backend   Téma: Pomoc: Pong v C


Odpovede: 2
Zobrazenia: 723


Ahoj na internete som našiel tento script:

/* ppong.c
* bounce a character (default is 'o') around the screen
* defined by some parameters
*
* user input: s slow down x component, S: slow y component
* f speed up x component, F: speed y component
* Q quit
*
* blocks on read, but timer ti...
Stránka: 1 z 1 [ Vyhľadávanie našlo 2 výsledkov ]




© 2005 - 2026 PCforum, edited by JanoF