Computer Science Canada need serious HELP for ISU game (dance dance revolution) |
Author: | limited_skillz [ Sun Jan 25, 2004 2:11 pm ] |
Post subject: | need serious HELP for ISU game (dance dance revolution) |
i was confident i could do it, but now i realize i cant do it if you really want, you could go through my code and see whats wrong but id be appreciative if you just help me with the logic |
Author: | limited_skillz [ Sun Jan 25, 2004 2:16 pm ] |
Post subject: | |
oh forgot one thing for some reason it doesnt upload my text file if your actually going to try out my program then save a file called "trial.step" which has numbers from 1-4 ex. 1 2 1 3 4 2 1 3 |
Author: | limited_skillz [ Sun Jan 25, 2004 2:56 pm ] |
Post subject: | |
to you guys who downloaded it should i pretty much just start over, or am i just missing a few things? |
Author: | santabruzer [ Sun Jan 25, 2004 2:57 pm ] |
Post subject: | |
can you attach the other file as well, or is what you specified up ^ ? as in.. do you want us to just have that, or something else? |
Author: | limited_skillz [ Sun Jan 25, 2004 2:58 pm ] |
Post subject: | |
yeah just make a file called "trial.step" and put in numbers from 1-4 on different lines |
Author: | McKenzie [ Sun Jan 25, 2004 3:19 pm ] |
Post subject: | |
I don't know if I'll debug the whole thing, so I'll post things as I find them (I only look at it when it's not my turn in Heroes of Might and Magic ) 1. Make your filename a constant and put it at the top of your program. You probably wanted to give the use some choice, but for now make it simple (comment out the "getFileName" proc for now) 2. Your title screen lags like mad. Just make a variable to keep track of whnat state you are in (eg. "over the top arrow", "over none") then only redraw when this state changes. |
Author: | limited_skillz [ Sun Jan 25, 2004 3:26 pm ] |
Post subject: | |
thanks, ill add those things in once im done the main game i dont really care about the title screen or minor things like that without a working game first |
Author: | McKenzie [ Sun Jan 25, 2004 3:40 pm ] | ||
Post subject: | |||
I see what you are trying to do with your update process but it goes against the purpose of the "offscreenonly" - View.Update combo. What you want to do with the View.Update is to ensure that the next frame of your game is ready before you put it on the screen. Unfortunately with your reliance on processes for a good part of your program it will be a bit of a task to change it. This might sound harsh but I would drop ALL of the processes. Instead keep track of what's going on in variables. Put a main game loop inside controlGame and when you update the arrows only move them a small bit each time. To get a constant frame rate the way you had with your View.Update use something like:
|
Author: | limited_skillz [ Sun Jan 25, 2004 3:50 pm ] |
Post subject: | |
ok thanks that was really helpful, i knew i was too reliant on processes, but i got really lazy oh i just installed turing 4.0.5 and theres this new View.UpdateArea and it seems useful for my situation, ill maybe try that out first |