| | |
Help in "Snake" game using C programming for the AVR
![]() |
•
•
Join Date: Oct 2004
Posts: 8
Reputation:
Solved Threads: 0
Hi guys,
I'm new to this forum and this is my first post :cheesy:
I need help in modifying a "Snake game" program..
What I need to do is modify the program so that when it starts (i.e. the AVR microcontroller is reset) it displays a message giving the name of the game and your name(s). This should be displayed for several seconds before the game commences.
I know that I have to add it to the function splash_screen()
so I typed this in it:
void splash_screen(void) {
clear_terminal();
/* MY CODE HERE */
printf("Snake Game\n");
printf("Name\n");
init_timer(8000);
}
BUT it doesn't display what i want
I attached the whole program file if in need to look at the whole thing.
Regrads,
Simplicity
I'm new to this forum and this is my first post :cheesy:
I need help in modifying a "Snake game" program..
What I need to do is modify the program so that when it starts (i.e. the AVR microcontroller is reset) it displays a message giving the name of the game and your name(s). This should be displayed for several seconds before the game commences.
I know that I have to add it to the function splash_screen()
so I typed this in it:
void splash_screen(void) {
clear_terminal();
/* MY CODE HERE */
printf("Snake Game\n");
printf("Name\n");
init_timer(8000);
}
BUT it doesn't display what i want
I attached the whole program file if in need to look at the whole thing.
Regrads,
Simplicity
Everything is okay in the end...
If it's not okay, then it's not the end. :cool:
If it's not okay, then it's not the end. :cool:
•
•
Join Date: Oct 2004
Posts: 8
Reputation:
Solved Threads: 0
Hurray!
I figured out how to solve it and solved a couple of other modifications I have to do.. Now, I'm stuck with a different thing and that is make the game speed up as the score gets higher.
This is what I've done but I don't think it's right :rolleyes:
Can anyone please help me?! You can look at the rest of the code for more info. in the attachment of the previous post
Thanx guys
Simplicity
I figured out how to solve it and solved a couple of other modifications I have to do.. Now, I'm stuck with a different thing and that is make the game speed up as the score gets higher.This is what I've done but I don't think it's right :rolleyes:
C Syntax (Toggle Plain Text)
if (get_score == '30'){ move_snake() + 2; }
Thanx guys

Simplicity
Everything is okay in the end...
If it's not okay, then it's not the end. :cool:
If it's not okay, then it's not the end. :cool:
![]() |
Similar Threads
- "Craps", Game Help (C++)
- need help correcting "blackjack" c++ game (C++)
- How to get started game programming (Game Development)
- beginner needs help with game programming (Game Development)
Other Threads in the C Forum
- Previous Thread: Reading a whole text file at once.
- Next Thread: mysterious segmentation fault
| Thread Tools | Search this Thread |
adobe api array arrays binarysearch calculate char cm convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic feet fflush file floatingpointvalidation fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o inches incrementoperators intmain() iso kernel kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. match matrix microsoft motherboard mqqueue mysql oddnumber odf open opendocumentformat opensource openwebfoundation owf pattern pdf performance pointer posix power probleminc program programming pyramidusingturboccodes read recursion recv recvblocked repetition research scanf scheduling segmentationfault send shape socketprograming socketprogramming stack standard strchr string suggestions systemcall test unix urboc user variable voidmain() wab win32api windows.h





