Space Game
Author |
Message |
upthescale
|
Posted: Mon Apr 17, 2006 8:11 pm Post subject: Space Game |
|
|
Give me feedback |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
[Gandalf]
![](http://compsci.ca/v3/uploads/user_avatars/189297994e4c716fec7f1.png)
|
Posted: Mon Apr 17, 2006 11:05 pm Post subject: (No subject) |
|
|
Not bad. Fairly original idea, works well.
Some critisism:
The size of the screen is slightly too large for 1024x768, so that makes the game a bit unfair for those with smaller monitors. For pictures, you should have probably used .bmps to avoid those small white areas around the picture, but I guess the .jpgs work fine in this case.
About your code...
You should look into for loops, arrays, and how to better proceduralize your code. Pic.ScreenLoad isn't the best way to be working with pictures, since it slows the game down when on slower computers (the picture has to load each time). You would be better off using Pic.FileNew() and Pic.Draw(). Functions are preferrable to procedures, and you seem to be using randint() quite often. Try using the Rand.Int() function instead. Why are you using both setscreen() and View.Set()? They both do the same thing, and the function of both could be done in one line:
code: | setscreen ("graphics:1000;800;position:center;center,offscreenonly") |
You should only have one View.Update in your entire program, or else you are doing things wrong. Where there is a lot of text being shown, just change it to "nooffscreenonly" so that you don't have multiple View.Updates. Oh, and you shouldn't be using quit, since that only causes an error to exit your program. Just exit your main loop when the game is over, and let the user take the rest into their own hands. One last thing to note: you should look into maxx and maxy, they will make working with the screen limits much easier.
Decent program overall, though you should look into reading a larger part of the Turing Walkthrough. |
|
|
|
|
![](images/spacer.gif) |
upthescale
|
Posted: Tue Apr 18, 2006 9:30 am Post subject: (No subject) |
|
|
thanks for thaqt.....the reason why i used quit is because if i exit, exirt is for losing only, but if they won and i exited the loop, it wud still say u lose...so n eed to add true n false somewher but i dont get those..and arrays i dont egt either i have reads every tutorial and i still dont'g get how to use them so yah |
|
|
|
|
![](images/spacer.gif) |
Clayton
![](http://compsci.ca/v3/uploads/user_avatars/1718239683472e5c8d7e617.jpg)
|
Posted: Tue Apr 18, 2006 6:53 pm Post subject: (No subject) |
|
|
i dont know if anyone else experienced this but, i couldnt see anything falling, all i saw was the counter going down, as stated above learn about arrays and fcns to compartmentalize your code and start you with OOP, not bad but could use some major improvements
p.s. dont use delays as much as you do, get the user to be able to choose when they are done reading, and give a prompt to start the game, i had to read ur code to figure out what to do to start |
|
|
|
|
![](images/spacer.gif) |
upthescale
|
Posted: Tue Apr 18, 2006 7:54 pm Post subject: (No subject) |
|
|
[mod:fdc2c72b00="Cervantes"]
Flaming is bad. You've broken enough of [Rules] already. Watch what you say.
[/mod:fdc2c72b00]
it says at the beginning the instrucitons, and u hit a key on the keyboard to start! |
|
|
|
|
![](images/spacer.gif) |
|
|