From: visage AT yourmom DOT com (Visage) Newsgroups: comp.os.msdos.djgpp Subject: More help with Allegro Date: Mon, 23 Nov 1998 21:50:54 GMT Organization: Your Mom.Com Lines: 22 Message-ID: <3659d77b.6628220@news.flash.net> NNTP-Posting-Host: ip218.toledo2.oh.pub-ip.psi.net X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanks to the people who helped me out with my last handful of probs, but I have a new one... I'm using DJGPP & Allegro and am currently trying to code a puzzle game. The main screen is comprised of a 9x9 sprite grid. I have a way to access all of the coordinates, but I'm still wondering how to get the program to check when the cursor is at a border of the screen. I guess I could write 81 seperate functions (pos_x1_pos_y1()), but that wouldn't be very practical would it? :) How can I write such a function that would check to see if a cursor is at a border of the screen? (I'm debating as to whether or not the cursor will wrap back to the other side of the screen yet or not, but that's unimportant now.) Try not to make any replies too complicated, as I'm still far from ever coding anything that resembles a game. :) - Steve - visge AT yourmom DOT flash DOT net (simply remove the part you think doesn't belong, and you'll get the real e-mail address.