Computer Science Canada

Screen Dimension Decrease

Author:  Mr. T [ Sat Mar 19, 2005 7:25 pm ]
Post subject:  Screen Dimension Decrease

In my game I want the screen size to decrease every level..

code:
if score=50
    then View.Set ("graphics:300;200,title:Uncle Worm           Score: " + intstr (score))
end if


Is it possible to use instr or some other way of decreasing the screen dimensions?

Author:  Cervantes [ Sat Mar 19, 2005 7:58 pm ]
Post subject: 

Right on.
code:

View.Set ("graphics:" + intstr (newMaxX) + ";" + intstr (newMaxY) + "title:....")

Author:  Mr. T [ Sat Mar 19, 2005 8:46 pm ]
Post subject: 

for some reason when i make the screen dimensions a variable, my scoring system doesnt work?!?!

code:

score += 10 %when food collision detected points are added to score
View.Set ("graphics:" + intstr (newMaxX) + ";" + intstr (newMaxY) + "title:Uncle Worm           Score: " + intstr (score))

Author:  Cervantes [ Sat Mar 19, 2005 9:18 pm ]
Post subject: 

This is one of those pesky problems that could take hours to figure out what's wrong. Unless you know what to look for. Here, I'll post the correct code, and see how long it takes you to find the error.
code:

score += 10 %when food collision detected points are added to score
View.Set ("graphics:" + intstr (newMaxX) + ";" + intstr (newMaxY) + ",title:Uncle Worm           Score: " + intstr (score))

Author:  Mr. T [ Sat Mar 19, 2005 9:29 pm ]
Post subject: 

you forgot the comma in the original post... but I forgive you Razz

Author:  Cervantes [ Sat Mar 19, 2005 9:33 pm ]
Post subject: 

Ah bloody hell! My apolagies. Embarassed


: