Computer Science Canada

Snow help

Author:  jamescyrus [ Tue Nov 30, 2004 10:32 pm ]
Post subject:  Snow help

hey im in grade 10. I need help with my program.so far we only learnt drawfill...etc. and basic stuff like var, 3 types of loop, case construsct.
My problem is that im trying to put snow in the background without making the whole thing flicker. Can someone help me.

Author:  Delos [ Tue Nov 30, 2004 10:48 pm ]
Post subject: 

View.Update is your friend.

No more screen flickers! by tony

Author:  jamescyrus [ Tue Nov 30, 2004 11:12 pm ]
Post subject: 

that doesnt really help

Author:  Delos [ Wed Dec 01, 2004 11:59 am ]
Post subject: 

code:

setscreen ("offscreenonly")


Draw what you need, bg first, followed by foreground.

code:

View.Update


Updates screen. Time.Delay() for a bit. Redraw, View.Update again.

Author:  SuperGenius [ Wed Dec 01, 2004 5:46 pm ]
Post subject: 

If you're trying to simulate a lot of snowflakes at once you'll be asking the computer to do a lot of calculatons. You are probably used to nice, speedy computers at home, but it is possible your computers at school are not so quick. Also, this is something you should keep in mind when your summative project rolls around, because it you haven't tested it at school it might look really crummy when the teacher tries to run it.


: