Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Window command
From: "Jeff Knope" <jknope@xxxxxxxx>
Date: Tue, 13 Dec 2005 10:09:46 -0800

On Dec. 13 Jim asked:
... is there a way to create a WINDOW command
Any suggestions?

Hi Jim,

Besides the strategy of using trig functions to compute where the turtle would be (like Daniel's VirtualWindow does) there is one other approach that is useful in some circumstances.

If, when the project is first begun, you issue the command NEWPROJECTSIZE [2000 2000] you will have a working graphics field much larger than the screen display. With the parameters [2000 2000] the active field will be from -1000 to 1000 in both x and y dimensions. You can specify other (smaller) sizes as well.

Note, however, if you use this approach, HOME ([0 0]) will not be in the center of the screen. The display defaults to the upper left corner of the field, and you have to use the scroll bars to view other portions.

Jeff

----- Original Message ----- From: "Jim Weiberg" <jweiberg@xxxxxxxxxx>
To: <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, December 13, 2005 8:23 AM
Subject: Window command



I am a relatively new user of MicroworldsEX, I used to use PC Logo and there
was a WINDOW command that treated the screen as if you were looking out a
window ... when the turtle went off of the screen, it kept going without
wrapping.


My class is in the process of programming a version of the old Q Basic
Gorrillas game and the WINDOW command would be very helpful ... is there a
way to create a WINDOW command or are we going to be forced into a bunch of
error checking for detecting when the turtle leaves the screen and wraps and
comes back ... it's a mess if that's what we have to do.


Any suggestions?









  • Previous by thread: Re: Window command
  • Next by thread: RE: Window command

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2008