Friday, June 19, 2009

Turbo C Games

When your professor ask you to make a project using Turbo c, let say a game, what is the first thing that come up to your mind?
Usually its either a guessing game where you will choose what number or letter will appear, or a board game like XOX.
Why not try something else..?
I have a project, a game using Turbo C when i was in my 2nd year in college. During that time the game O2 Jam was very popular, so i thought of a game like O2 Jam.

Introducing O2 James


Here you can choose of a level, the higher the level, the faster the letter will drop.

And this is the loading screen.


And here is the game, the letters will drop and you should hit from the keyboard the correct letter, you will see how many letters you hit correctly and how many miss.

Take note, the drawing of the stick figure there is not moving, hehehe. But every letter you hit corresponds to a sound. I'm just in my 2nd year here so the letters are not yet in random but I hope you like it.

You can download the EXE file here
O2 James
I assure you, there are no viruses. Click and run, sorry but the source code is only for me :P..

53 comments:

  1. how 2 play ur gamE??
    and fano moU ginAwa??
    share moU..

    ReplyDelete
  2. hmm well, first of all, what is your name..?
    uhm its like playing o2 Jam, the letters will fall down and you should hit the right letter from the keyboard...
    and if you are using hmm maybe a little old computer, you will heard a beep as you press...
    ahh wla nga mxadong mhirap n code jan eh, all are basics code, medyo paikot ikutin mo lng ung pggamit ng gotoxy, delay at clrscr... thats it, hnd koh poh pwd i post ung code koh eh hehehe..
    thank you for your comment...

    ReplyDelete
  3. im ailEEn from paMpanga..
    project xee nmIn weH!!
    pwd post mou xah
    f,s coH??
    xilentxoul@yahoo.com..
    im begging yoU!!
    need coh lang tnx..

    ReplyDelete
  4. sorry poh tlga hnd koh poh pwd ipost ang codes eh... prang gan2 yan eh, every programmer, malaki man oh maliit, magaling man oh hnd, makakagawa xa ng mga unique programs... and that is one of my unique creations...
    so prang dat is my property db... pro pra sau bgyan kita ng hint...

    ung nababa na letter prang gn2 lng yan,

    for(a=1;a<=10;a++)
    {
    gotoxy(1,a);
    printf("A");
    delay(500);
    clrscr();
    }

    explanation, nagiiba ung Y coordinate sa gotoxy kya pra xang bumababa, my clrscr() ky pg wla mg ppring ng mag ppring ng A yan... ung delay pra hnd mxado mbilis ung pagbaba...

    anyway, you can do other games, kita mo ung VB karera koh..? pwd k gumawa nun sa C, prang gnun lng un, ung code above...

    add n kita sa friendster, thanks for visiting my blog...

    ReplyDelete
  5. hi i'm jessa...pwede u ba me matulungan gumawa ng word games simple like textwist in turbo c requirement nmin 4 final. i have no idea kung pano xa gagawin..hope matulungan mo aq..
    this my email add..Ylsej_17@yahoo.com pls send me a code..hope your response..

    THANKS A LOT!
    Godbless!!!

    ReplyDelete
  6. jam jam aves kaw ba yan??

    ReplyDelete
  7. im James Angelo Aves, sorry sir/mam but I don't remember anyone calling me Jam Jam... well anyway, thnx for visiting my blog...

    ReplyDelete
  8. pls send mee the cording for this pls
    trincoguy@gmail.com

    ReplyDelete
  9. bkit gnon???. ... tinatype ko nmn ung mga letters. .. hindi nmn counted. ..


    mhba ba ung code mo jan. ..??
    send mo nmn sa ym ko ung code mo
    pag aaraln ko lng. ..
    ollalah_06@yahoo.com

    slmt

    ReplyDelete
  10. I cannot send the source code for that...
    "bkit gnon???. ... tinatype ko nmn ung mga letters. .. hindi nmn counted. .."
    as I said, I was only in my 1st year when I created O2 JAMes so I'm not expecting it to be perfect... I just post O2 JAMes for referrence purposes only... thank you...

    ReplyDelete
  11. Hey. Pa-help naman po pls. Kasi po I'm working with a game similar on yours. The only difference is hindi letters ung nagfafall but words. What I'm pointing out is, paano po ico-code yon? Parang ganito yung akin:

    A= Apple
    B= Banana

    Ang gusto ko sana is pag hinit mo ung A mahihit mo yung word na apple and magkaka-count cia sa score mo. Can you help me please? I'll wait for your response.

    ReplyDelete
  12. sorry ngaun koh lng ulit toh nbuksan... hmm if you are referring to words ang babagsak example Jeepney na dpt eh ma hit ung 1st letter ng word, you can use 2 dimensional array...

    ReplyDelete
  13. pede mo po ba aco bigyan ng example? kunware po ung sa binigiy kong example. pls po. badly needed po, yun na lang po kulang eh T_T

    ReplyDelete
  14. pls po pahelp! kailangan lang po talaga. malapit na po kasi pasahan nito eh.

    ReplyDelete
  15. please po pahelp! kailangan lang po talaga. malapit na po kasi pasahan nito.

    ReplyDelete
  16. test=array[3][10]={"james","angelo","aves"};

    for(a=0;a<3;a++)
    {
    gotoxy(1,a);
    printf("%s",&test[a]);
    delay(500);
    clrscr();
    }

    di koh sure kng gagana yan pero gnyan dpt, bababa ung james, angelo at aves... tgal koh na poh di nag TC, almost 5yrs...

    ReplyDelete
  17. baba po kuya? eh kuya ganyan din po ba yung code para ma-hit mo ung mga words na baba? tsaka po pano po maglagay ng score? tnx po sa help :)

    ReplyDelete
  18. meron kang something like this
    char ch;
    ch=getch();

    ung purpose ng ch=getch(), kung ano ung pindutin mo sa keyboard, un ang magiging value ng ch...
    so, pwd kn gumamit ng if(ch='a') db, mag iincrement ang score...

    syang yang O2 JAMes na yan sa mga lumang pc, alam koh may beat(sound) n ksma yan per pindot eh... sa bago kc wala na yung sound, cno sa inyo nkpagpagana ng beat(sound)..?

    actually i counted the lines of code nung O2 JAMes, 380 pla, ang haba,

    ReplyDelete
  19. san ko po ilalagay yung if statement na yun? after po ba sa codes ng falling letters?

    ReplyDelete
  20. normally dun nilalagay un but depende dn sa construction ng program... sa code koh, pag bagsak sa line ska susulpot ung if, (the trick is pag bumaba na ng 5 times)...

    ReplyDelete
  21. ang galing mo sana malagpasan namin ito of now nagawa din kmi ng project game in turbo c

    ReplyDelete
  22. dude may database b toh? or maiistore ba yung high score? tsaka maganda toh kung with graphics.h

    ReplyDelete
  23. sir/mam as I said, nung ginawa koh poh ito is 1st yr college p lng ako so hindi koh pa poh alam ang mga database n yan hehe... and yup, better if mkakagamit tau ng graphics.h, well, im planning to give out the source code of this, if I can find it. I will post it in my new website http://www.aeisjean.com

    ReplyDelete
  24. pede po pakipasa sa email ko fatex7@yahoo.com

    kc project ko po yan! sa cpg ko po!.. plzz nd ko po yang code na yan,, asap po!... para makapasa ako!... plzz....tnx po!... w8 ko email!..

    ReplyDelete
  25. for the O2 JAMes code, please visit my website @ http://www.aeisjean.com, under TUTORIALS tab click C/C++/VB. Thanks...

    ReplyDelete
  26. proj ko din yan ngaun ....

    ReplyDelete
  27. the source code is available at my website, www.aeisjean.com
    for all you coders out there, you can send your program (with or without source code) and we will publish it in my site (with your name of course)
    To all who wants to copy some of my codes, modified it a little, add something different, enhance it and be creative...

    ReplyDelete
  28. pwd mo ba hingin ung code nito???

    ReplyDelete
  29. if you will read my previous reply, I already said how to get the source code,

    ReplyDelete
  30. how could i see that game codes up there

    ReplyDelete
  31. pwede po mahingi yung codes nito?

    ReplyDelete
  32. ang pangit naman nito...walang kwenta

    ReplyDelete
  33. thank you poh ha, sana hindi na lang poh kayo ngcomment kung pangit,

    ReplyDelete
  34. ..Tol pa help
    ..pano ba gawa Moving Tank using TurboC

    ..ex and God Bless

    ReplyDelete
  35. simple lang boss, combination lang yan ng tanke na gawa sa ascii codes, tpos clrscr() at delay lng, tpos loop, every loop magmomove yung buong ascii code ng isang step,

    ReplyDelete
  36. hello i'm angel from calocan. ask ko lang po bakit lumalabas kapag kino-compile ko ung "o2 james" nagkakaroon ng declaration syntax error sa line 7? ung sa line ng "void credits()"...pakihelp ako salamat!!!^^

    ReplyDelete
  37. kumpleto po ba ung codes ng o2 james sa site mo? nagkakaroon kase ng error eh..sa line 7 ung may void credits() please pa-help!T-T

    ReplyDelete
  38. pwd po ba tulungan nYo kmi kung paano gumawa ng proposal ng simple games sa turbo c! plz! lng po tnX...

    ReplyDelete
  39. haaaaayyyy.business course aq pero parepareho tau ng problema..hehehe
    I need d same project.. hirap maging programmer.hahahaha!!!!!!=/

    ReplyDelete
  40. pwd me \humingi ng simpling program 4 finals kc namin eh...pwd?? u send x email ad q..mariacielobanoc@yahoo.com

    ReplyDelete
  41. please don't keep asking me to code for you kasi I created this blog/site to inspire, not to code for others.. sorry poh but I will only help, not do the coding for you,

    ReplyDelete
  42. hello po.. pwede ako maghingi ng kunting idea lang sa kung paano gawin ung do while na ung output nya ay nag biblink blik.. pls i need help.

    ReplyDelete
  43. okie ganito poh i think, hmm mgkakaroon ka ng extra variable lets say int blink.... tapos magiincrement sya every loop ng do while, kapag ang blink ay odd wla iddisplay, pg even iddisplay nya ang gs2 mo, and thus making the effect na nag bblink sya, lagyan n lng ng delay pra maganda...

    ReplyDelete
  44. hello po pwede po ba ako hingi ng idea, huhuhu sakit na talaga ulo ko eh, pano po ba ung do while ang gamit ung isang pangalan nag falling ng padahan dahan ito po kc ginawa ko,

    #include
    #include
    main()
    {
    int n;
    clrscr();

    gotoxy(1,1);
    n=1;
    do
    {
    cprintf("ANNA"); textcolor(RED);
    delay(900000);
    n++;
    }
    while(n<=1);

    getch();
    }


    yan po ung ginawa ko naman ung output ng name kaso away bumaba. help naman ninyo ako..plsss..

    ReplyDelete
  45. SALAMAT SA SITE NA TOH MARAMENG IDEAS NA PUMASOK SA AKIN...GAGAWA DIN KSI KAME NG GAME AS PROJECT.. ..TURBO C DIN ANG GAMIT...SANA BUHAYIN MU ANG BLOGSPOT MO AT ALL ABOUT IT ANG TOPIC KC THIS BLOGSITE WILL HELP OTHER IT BEGINNERS LIKE ME...

    THANKS..
    patrick robles...
    :)

    ReplyDelete
  46. thank you sir for that wonderful comment, actually I already have my own website na lalagyan koh ng kung ano2 including C++, VB, PHP at kung ano2 pang code, so far growing pa lang din ang aking website,
    www.aeisjean.com

    ReplyDelete
  47. astig paps! after several months nkagawa din ako ng katulad nyan..thanks sa hint.

    ReplyDelete
  48. bakit po ganun. gumagana naman po cia. pero ayaw magpakita nung letters na bubagsak sakin? pls help me. maraming slamat!

    ReplyDelete
  49. I can't help you, kulang kulang kasi ung details ng problem mo :)

    ReplyDelete
  50. thnx for the help bro hehe:P

    ReplyDelete
  51. Nakakahilo talaga

    ReplyDelete