Anasayfa Forumlar Yeni Mesajlar Bugünün Mesajları Üye Ol
Geri git   Turkish Hacking Sabotage | Türkiyenin En Büyük Hack Ve Security Sitesi > PROGRAMLAMA > Programlama > C/C++
Sayfaya güncelle C++ yılan oyunu kodu

Konu Bilgileri
Konu Başlığı
C++ yılan oyunu kodu
Konudaki Cevap Sayısı
12
Şuan Bu Konuyu Görüntüleyenler
 
Görüntülenme Sayısı
19

Cevapla
 
Seçenekler Arama Stil
C++ yılan oyunu kodu
Alt
  (#1)
Slytherin is Offline
[40]S.H.T Saldırı Team
Slytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud of
 
>Mesaj Sayısı: 2,612
>Açtığı Konu: 1169

Level: 40 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Paylaşım: 598 / 997
Güç: 870 / 3211
Tecrübe: 89%

Üyelik tarihi: Jun 2007
Nerden: Tя
Rep Puani: 1407
Rep Derecesi : Slytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud ofSlytherin has much to be proud of
   
C++ yılan oyunu kodu - 12-06-2007


Yılan oyunu..

Yılan oyunun hazır kodları

#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <dos.h>

void acilisnotlari(void);
void seviyebelirle(void);
void duvarbelirle(void);
void yilankoordinatbelirle(void);
void yembelirle(void);

void kuyruksildegeraktar(void);
void hareketkontrol(void);
void duvarcarpmakontrol(void);
void kendinecarpmakontrol(void);
void yemekontrol(void);
void yilangoruntule(void);
void ozelyembelirle(void);
void yukari(void);
void asagi(void);
void saga(void);
void sola(void);
void sonnot(void);

static int yilan[100][2],yem[2][2];
static int x,y,dson,ozelpuan,verilecekpuan,yemX,yemY,puan,kon trol,yilankuyrukX,yilankuyrukY,kuyruk=6,seviye=110 ,baraj=25;
int ch,d=77,i,j,sec;
char ad[35]="030123003 - ™ZGšR BAYRAKTARO¦LU",olmadi;


void sonnot()
{
nosound();
getch();
clrscr();
gotoxy(22,12);
textcolor(RED);cprintf("@ ...DESIGNED BY ™ZGšR BAYRAKTARO¦LU... @");
delay(1500);
textcolor(7);
exit(0);
}
void acilisnotlari(void)
{
_setcursortype(_NOCURSOR);
textcolor(7);
x=14,y=14;
clrscr();
gotoxy(20,7);printf("ntt---€anakkale 18 Mart šniversitesi");
delay(500);
gotoxy(20,8);printf ("ntt---Bilgisayar ™§retmenli§i ve ™§retim Teknolojileri B”l?m?");
delay(500);
gotoxy(20,9);printf ("ntt---Programlama Dersi");
delay(500);
gotoxy(20,10);printf ("ntt---Vize Projesi:");
delay(500);
gotoxy(33,11);printf (" Nokia Y?lan Oyunu...n");
delay(500);
gotoxy(20,6);
textcolor(2);
for (i=0; i<31;i++)
{
cprintf("%c",ad[i]);
sound(4000);
delay(50);
nosound();
delay(70);
}
delay (500);
textcolor(BLUE);
for (y=14; y>4; y -= 9)
for (x=14;x<76;x++)
{
gotoxy(x,y); cprintf("%c",2);
delay(10);
}
for (x=14; x<76; x += 61)
for (y=6; y<15; y++)
{
gotoxy(x,y); cprintf("%c",2);
delay(15);
}
gotoxy(27,17);
textcolor(4+128);
cprintf("BaŸlamak icin herhangi bir tuŸa bas?n?z");
getch();
textcolor(7);
clrscr();
}
void seviyebelirle()
{
if (puan >= 150)
seviye = 50;
else if (puan>=125)
seviye = 60;
else if (puan>=100)
seviye = 70;
else if(puan>=75)
seviye = 80;
else if (puan>=50)
seviye = 90;
else if (puan>= 25)
seviye = 100;
}
void duvarbelirle()
{
textcolor(GREEN);
for (j=1;j<25;j=j+23)
for (i=1;i<=80;i++)
{
gotoxy (i,j);
cprintf ("%c", 219);
}
for (i=1;i<=80;i=i+79)
for (j=1;j<25;j++)
{
gotoxy(i,j);
cprintf ("%c", 219);
}
textbackground(2);
textcolor(0);
gotoxy(61,24);
cprintf("™zg?r Bayraktaro§lu");
textbackground(0);
textcolor(7);
}
void yilankoordinatbelirle()
{
randomize();
yilan[0][0] = random(60)+8;
yilan[0][1] = rand()%21+2;
for (i=1; i<7; i++)
{
gotoxy(yilan[i-1][0],yilan[i-1][1]);
if (i==1)
{
printf("%c",2);
}
else
{
printf("%c",219);
}
yilan[i][0] = yilan[0][0]-i;
yilan[i][1] = yilan[0][1];
}
gotoxy(yilan[kuyruk][0],yilan[kuyruk][1]);printf("%c",219);
}
void yembelirle()
{
yem[0][0] = rand()%77 + 2;
yem[0][1] = rand()%21 + 2;
for (i=0; i<=kuyruk; ++i)
{
if (yem[0][0] == yilan[i][0] && yem[0][1] == yilan[i][1])
yembelirle();
}
gotoxy(yem[0][0],yem[0][1]);
printf("%c",2);
}

void kuyruksildegeraktar()
{
yilankuyrukX = yilan[kuyruk][0];
yilankuyrukY = yilan[kuyruk][1];
for (i=kuyruk; i>=1; i--)
{
yilan[i][0] = yilan[i-1][0];
yilan[i][1] = yilan[i-1][1];
}
}
void hareketkontrol()
{
switch (d)
{
case 72:yukari();break;//yukari
case 80:asagi();break;//asagi
case 77:saga();break;//saga
case 75:sola();break;//sol
//case 'p':break;//pause
}
}
void yukari()
{
if (dson == 80)
{
yilan[0][1]++;
d=dson;
}
else
yilan[0][1]--;
}
void asagi()
{
if (dson == 72)
{
yilan[0][1]--;
d=dson;
}
else
yilan[0][1]++;
}
void saga()
{
if (dson == 75)
{
yilan[0][0]--;
d=dson;
}
else
yilan[0][0]++;
}
void sola()
{
if (dson == 77)
{
yilan[0][0]++;
d=dson;
}
else
yilan[0][0]--;
}
void duvarcarpmakontrol()
{
if ( yilan[0][0] > 79 || yilan[0][0] < 2 || yilan[0][1] >23 || yilan[0][1] < 2 )
{
sound(850);
gotoxy(30,25);printf(".......KENARA CARPTIN........");
delay(1000);
sonnot();
}
}
void kendinecarpmakontrol()
{
for (i=2;i<kuyruk;i++)
{
if (yilan[0][0] == yilan[i][0] && yilan[0][1] == yilan[i][1])
{
sound(850);
gotoxy(35,25);printf("KENDi KENDiNE CARPTIN");
delay(1000);
sonnot();
}
}
}
void yemekontrol()
{
if (yem[0][0] == yilan[0][0] && yem[0][1] == yilan[0][1])
{
sound(400);
kuyruk++;
yilan[kuyruk][0] = yilankuyrukX;
yilan[kuyruk][1] = yilankuyrukY;
puan += 5;
gotoxy(1,25);
printf("PUAN: %d KUYRUK BOYU: %d",puan+verilecekpuan,kuyruk);
clreol();
if (puan == baraj)
{
seviyebelirle();
baraj += 25;
gotoxy(1,25);
printf("...OZEL YEM CIKTI CABUK YE...");
do
{
olmadi = 0;
yem[1][0] = rand()%77 + 2;
yem[1][1] = rand()%21 + 2;
yemX = yem[1][0];
yemY = yem[1][1];
for (i=0; i<=kuyruk; ++i)
{
if (yem[1][0] == yilan[i][0] && yem[1][1] == yilan[i][1])
olmadi = 1;
}
}
while(olmadi == 1);

gotoxy(yemX,yemY);
textcolor(RED);
cprintf("%c",3);
kontrol = 1;
verilecekpuan = 80;
textcolor(7);
}
yembelirle();
}
}

void yilangoruntule()
{
for (i=0; i<=kuyruk; ++i)
{
gotoxy(yilan[i][0],yilan[i][1]);
if (i==0)
{
textcolor(4);
cprintf("%c",2);
}
else
{
textcolor(i);
cprintf("%c",219);
}
}
gotoxy(yilankuyrukX,yilankuyrukY);
textcolor(7);
cprintf(" ");
delay(seviye);
nosound();
}
void ozelyembelirle()
{
verilecekpuan -= 1;
if (yemX == yilan[0][0] && yemY == yilan[0][1])
{
sound(4000);
kontrol = 0;
gotoxy(1,25);
printf("ALDIGIN OZEL PUAN: %d ",verilecekpuan);
clreol();
}
if (verilecekpuan == 0)
{
kontrol = 0;
gotoxy(yemX,yemY);
textcolor(7);
cprintf(" ");
gotoxy(1,25);
printf("OZEL YEMi ALAMADIN");
clreol();
}
}
void main()
{
clrscr();
acilisnotlari();
seviyebelirle();
duvarbelirle();
yilankoordinatbelirle();
yembelirle();
while (ch!=27)
{
dson = d;
while (!kbhit())
{
if (kontrol==1)
ozelyembelirle();
do
{
kuyruksildegeraktar();
hareketkontrol();
duvarcarpmakontrol();
kendinecarpmakontrol();
yemekontrol();
yilangoruntule();
}
while(1 == 2);
}
ch=getch();
if (ch==0) d=getch();
if (ch=='p')
getch();

if (kontrol==1)
ozelyembelirle();
do
{
kuyruksildegeraktar();
hareketkontrol();
duvarcarpmakontrol();
kendinecarpmakontrol();
yemekontrol();
yilangoruntule();
}
while(1 == 2);

}
sonnot();
}
  
Alıntı ile Cevapla

Cevap: C++ yılan oyunu kodu
Alt
  (#2)
enesvural is Offline
[10]Yeni Üye
enesvural will become famous soon enoughenesvural will become famous soon enough
 
>Mesaj Sayısı: 3
>Açtığı Konu: 0

Level: 1 [♥ Bé-Yêu ♥]
Paylaşım: 0 / 2
Güç: 1 / 3
Tecrübe: 10%

Üyelik tarihi: Jan 2008
Rep Puani: 100
Rep Derecesi : enesvural will become famous soon enoughenesvural will become famous soon enough
   
Standart Cevap: C++ yılan oyunu kodu - 02-12-2008


sağollllllllllllllllllllllllllllllllllllllllllllll llllllllllllllllllllllllllllllllllllllllllllllllll llllllll
  
Alıntı ile Cevapla
Cevap: C++ yılan oyunu kodu
Alt
  (#3)
c0ld-b0mb3r is Offline
[10]Yeni Üye
c0ld-b0mb3r is a jewel in the roughc0ld-b0mb3r is a jewel in the roughc0ld-b0mb3r is a jewel in the rough
 
c0ld-b0mb3r - ait Kullanıcı Resmi (Avatar)
 
>Mesaj Sayısı: 2,499
>Açtığı Konu: 128

Level: 40 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Paylaşım: 588 / 980
Güç: 833 / 3408
Tecrübe: 22%

Üyelik tarihi: May 2007
Rep Puani: 286
Rep Derecesi : c0ld-b0mb3r is a jewel in the roughc0ld-b0mb3r is a jewel in the roughc0ld-b0mb3r is a jewel in the rough
   
Standart Cevap: C++ yılan oyunu kodu - 02-19-2008


sağoll
  
Alıntı ile Cevapla
Cevap: C++ yılan oyunu kodu
Alt
  (#4)
bypass is Offline
[10]Yeni Üye
bypass will become famous soon enoughbypass will become famous soon enough
 
bypass - ait Kullanıcı Resmi (Avatar)
 
>Mesaj Sayısı: 13
>Açtığı Konu: 0

Level: 2 [♥ Bé-Yêu ♥]
Paylaşım: 0 / 34
Güç: 4 / 36
Tecrübe: 38%

Üyelik tarihi: Feb 2008
Rep Puani: 100
Rep Derecesi : bypass will become famous soon enoughbypass will become famous soon enough
   
Standart Cevap: C++ yılan oyunu kodu - 02-26-2008


bunları napacazzzzz??
  
Alıntı ile Cevapla
Cevap: C++ yılan oyunu kodu
Alt
  (#5)
sutupid is Offline
[10]Yeni Üye
sutupid will become famous soon enoughsutupid will become famous soon enough
 
sutupid - ait Kullanıcı Resmi (Avatar)
 
>Mesaj Sayısı: 35
>Açtığı Konu: 1

Level: 4 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Paylaşım: 0 / 92
Güç: 11 / 101
Tecrübe: 68%

Üyelik tarihi: Feb 2008
Nerden: StarHacks.Org'dan
Rep Puani: 100
Rep Derecesi : sutupid will become famous soon enoughsutupid will become famous soon enough
   
Standart Cevap: C++ yılan oyunu kodu - 02-26-2008


sağol


Aşk dünyadaki en güzel şeydir
  
Alıntı ile Cevapla
Cevap: C++ yılan oyunu kodu
Alt
  (#6)
sutupid is Offline
[10]Yeni Üye
sutupid will become famous soon enoughsutupid will become famous soon enough
 
sutupid - ait Kullanıcı Resmi (Avatar)
 
>Mesaj Sayısı: 35
>Açtığı Konu: 1

Level: 4 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Paylaşım: 0 / 92
Güç: 11 / 101
Tecrübe: 68%

Üyelik tarihi: Feb 2008
Nerden: StarHacks.Org'dan
Rep Puani: 100
Rep Derecesi : sutupid will become famous soon enoughsutupid will become famous soon enough
   
Standart Cevap: C++ yılan oyunu kodu - 02-26-2008


ama nası yapcaz


Aşk dünyadaki en güzel şeydir
  
Alıntı ile Cevapla
Cevap: C++ yılan oyunu kodu
Alt
  (#7)
BL@DE is Offline
[55]Süper Moderatör
BL@DE is a splendid one to beholdBL@DE is a splendid one to beholdBL@DE is a splendid one to beholdBL@DE is a splendid one to beholdBL@DE is a splendid one to beholdBL@DE is a splendid one to beholdBL@DE is a splendid one to beholdBL@DE is a splendid one to behold
 
BL@DE - ait Kullanıcı Resmi (Avatar)
 
>Mesaj Sayısı: 2,100
>Açtığı Konu: 301

Level: 37 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Paylaşım: 1375 / 1375
Güç: 700 / 1593
Tecrübe: 66%

Üyelik tarihi: Dec 2007
Nerden: C:\WINDOWS\system32
Rep Puani: 990
Rep Derecesi : BL@DE is a splendid one to beholdBL@DE is a splendid one to beholdBL@DE is a splendid one to beholdBL@DE is a splendid one to beholdBL@DE is a splendid one to beholdBL@DE is a splendid one to beholdBL@DE is a splendid one to beholdBL@DE is a splendid one to behold
   
Standart Cevap: C++ yılan oyunu kodu - 02-26-2008


sağol deniyelim bakalım çalışıyomu



  
Alıntı ile Cevapla
Cevap: C++ yılan oyunu kodu
Alt
  (#8)
sanaloptik is Offline
[10]Yeni Üye
sanaloptik will become famous soon enoughsanaloptik will become famous soon enough
 
>Mesaj Sayısı: 9
>Açtığı Konu: 0

Level: 1 [♥ Bé-Yêu ♥]
Paylaşım: 0 / 21
Güç: 3 / 48
Tecrübe: 86%

Üyelik tarihi: Oct 2007
Rep Puani: 100
Rep Derecesi : sanaloptik will become famous soon enoughsanaloptik will become famous soon enough
   
Standart Cevap: C++ yılan oyunu kodu - 03-24-2008


oyundaki hatayı bulun bakalım ben buldum
  
Alıntı ile Cevapla
Alt
  (#9)
glen is Offline
[10]Yeni Üye
glen will become famous soon enoughglen will become famous soon enough
 
>Mesaj Sayısı: 8
>Açtığı Konu: 0

Level: 1 [♥ Bé-Yêu ♥]
Paylaşım: 0 / 18
Güç: 2 / 24
Tecrübe: 73%

Üyelik tarihi: Jan 2008
Rep Puani: 100
Rep Derecesi : glen will become famous soon enoughglen will become famous soon enough
   
Standart 04-23-2008


oyunda 1 değil 1'den fazla hata var.kontrol ayrı yazılmış,onu düzelttim ama sonra 15 tane hata verdi :S bende mi öyle acaba..yada düzgün şekli varsa alabilir miyim yav :P
  
Alıntı ile Cevapla
Alt
  (#10)
nurefsan is Offline
[10]Yeni Üye
nurefsan is a jewel in the roughnurefsan is a jewel in the roughnurefsan is a jewel in the rough
 
nurefsan - ait Kullanıcı Resmi (Avatar)
 
>Mesaj Sayısı: 382
>Açtığı Konu: 16

Level: 18 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Paylaşım: 43 / 430
Güç: 127 / 1531
Tecrübe: 21%

Üyelik tarihi: Apr 2007
Nerden: Konya
Rep Puani: 284
Rep Derecesi : nurefsan is a jewel in the roughnurefsan is a jewel in the roughnurefsan is a jewel in the rough
   
Standart 05-17-2008


Evet sürülerce hata var zaten burda başlıyo hata

static int x,y,dson,ozelpuan,verilecekpuan,yemX,yemY,puan,kon trol,yilankuyrukX,yilankuyrukY,kuyruk=6,seviye=110 ,baraj=25;
  
Alıntı ile Cevapla
Cevapla


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Seçenekler Arama
Stil

Yetkileriniz
Yeni Mesaj yazma yetkiniz aktif değil dir.
Mesajlara Cevap verme yetkiniz aktif değil dir.
Eklenti ekleme yetkiniz aktif değil dir.
Kendi Mesajınızı değiştirme yetkiniz aktif değil dir.

Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Kapalı

Porno
webmaster
Powered by Jelsoft Enterprises Ltd.
Content Relevant URLs by 3.0.0