QUOTE |
In some menus and things, when the program is waiting for a key press, 2ND won't work (this is often due to using ngetchx() which doesn't support the 2ND key alone), so you should just press ENTER (or another key). |
QUOTE |
when the interrupts are redirected, ngetchx() can't be used...? |
QUOTE |
Also, in Catch That Ship, I kind of blindly redirected the interrupt handlers because before, I remembered somebody saying I had to for some reason. Just out of curiousity, does anybody (Lachprog) know the details of why this needs to be done? |
CODE | ||||||
ec1 if((dp = malloc(LCD_SIZE)) == NULL || (lp = malloc(LCD_SIZE)) == NULL || (lp2 = malloc(LCD_SIZE)) == NULL){ Post by: Halifax on February 19, 2007, 02:26:00 pm Post by: bfr on February 19, 2007, 02:31:00 pm ![]() I entered in a fake birthday. :P ![]() Anyway, to celebrate my fake birthday I guess, I finally get it to work! http://bfr.tifreakware.net Post by: Halifax on February 19, 2007, 02:53:00 pm Post by: graywolf on February 19, 2007, 03:28:00 pm ![]() Did you get the bug fixed? Post by: bfr on February 19, 2007, 03:56:00 pm ![]() Post by: lachprog on February 20, 2007, 05:20:00 am I think the problem is that you initialize grayscale ( GrayOn() ) BEFORE you redirect the interrupts. You should redirect the interrupts first, then call GrayOn(); The reason is that the grayscale routines "attach" itself to interrupt 1 and/or 5, so when you redirect the interrupts AFTER calling GrayOn() you actually redirect the grayscale. (i just did a quick experiment on this in Super Mario 68K, and it crashed the game...)
I'm not exactly sure, i've never used any of those funcs actually, but i believe so... The tigcc doc says that it uses a keyboard queue, so i'm pretty sure it does... Also, i just saw in the documentation that it might interfere with grayscale :( ![]() BTW, GKeyFlush() shouldn't be neccessarry if you use keytest only... Hope this is useful for you :) ![]() Ant BTW, happy birthday, bfr! I'm just curious, but what are you using lp2 for? EDIT: By some reason my browser didn't show any of the posts from 19 Feb, 2007, 20:31 yesterday until now. Didn't know you had fixed the bug already... Post by: Liazon on February 20, 2007, 05:55:00 am ![]() *Liazon Post by: bfr on February 20, 2007, 11:53:00 am
Thanks, that was the problem - well, kind of (but Kevin Kofler already helped me solve it anyway). I was already initializing grayscale before redirecting the interrupts, but Kevin Kofler told me yesterday that it is supposed to be the other way around; the interrupts are supposed to be redirected before grayscale is initialized, which seems odd, but it worked. And yeah, GKeyFlush() didn't seem to be doing anything...I'll eliminate it. I also still think that Galactic is too easy at the moment, so I'm probably going to release another version this weekend that has maybe a few more levels, but the new ones, if they are added, will be hard, and many of the old ones will become harder, and the amount of money the the player starts with will be decreased by half. I have yet to defeat the boss, but I can get to it pretty quickly. Part of why I haven't been able to defeat the boss might be because of s mistake in my coding, so I'll try to double-check that. <_< ![]() Also, remember everybody - there is already a working (but overly easy, in my opinions) version released at http://bfr.tifreakware.net/galactic.zip . Oh, and one more thing - that isn't my real birthday; I entered in a fake birthday. . :angel: ![]() Post by: bfr on February 23, 2007, 11:41:00 am ![]() Post by: graywolf on February 23, 2007, 12:19:00 pm ![]() Post by: bfr on February 23, 2007, 12:26:00 pm ![]() Post by: graywolf on February 23, 2007, 02:34:00 pm ![]() Post by: bfr on February 24, 2007, 05:53:00 am Anyway, I added a few more levels, added scrolling backgrounds to a few more levels, and made the game slightly harder. It can be downloaded http://bfr.tifreakware.net/galactic.zip. Here are some screenshots: ![]() ![]() Post by: graywolf on February 24, 2007, 08:18:00 am Post by: bfr on February 24, 2007, 09:24:00 am Yes, some level(s) have a black background with scrolling white stars. Post by: graywolf on February 24, 2007, 12:59:00 pm |