Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Turing run mode resolution
Index -> Programming, Turing -> Turing Help
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
storm2713687




PostPosted: Fri Mar 01, 2013 7:55 pm   Post subject: Turing run mode resolution

Hey members of CompSci, I was just wondering, is there a way to adjust the run mode resolution for Turing? I'm using version 4.1.1; do I need to use a certain code if it's possible?
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Fri Mar 01, 2013 8:45 pm   Post subject: RE:Turing run mode resolution

See View.Set().
Zren




PostPosted: Fri Mar 01, 2013 9:10 pm   Post subject: RE:Turing run mode resolution

View.Set

Here's an example using Window.Open .

Turing:

var windowWidth := 640
var windowHeight := 480

var windowSetUpString := "graphics:" + intstr (windowWidth) + ";" + intstr (windowHeight)
windowSetUpString += ",nobuttonbar"
windowSetUpString += ",offscreenonly"
var windowId := Window.Open (windowSetUpString)


Edit: Okay, that was weird. Must have pulled from my cache when I Right Clicked the tab > Duplicate when seeing if anyone already replied (I opened the tab and forgot about it).
Raknarg




PostPosted: Sat Mar 02, 2013 1:08 pm   Post subject: RE:Turing run mode resolution

or more simply: setscreen ("graphics:500;500")

the first number being the x size and the second being y size
storm2713687




PostPosted: Sat Mar 02, 2013 7:40 pm   Post subject: Re: RE:Turing run mode resolution

Thanks for the help guys Smile
Raknarg @ Sat Mar 02, 2013 1:08 pm wrote:
or more simply: setscreen ("graphics:500;500")

the first number being the x size and the second being y size

I'll go try this one out since it does seem a lot more simple Very Happy
Raknarg




PostPosted: Sat Mar 02, 2013 8:02 pm   Post subject: RE:Turing run mode resolution

Also, for future reference:

setscreen ("graphics:max;max") sets the screen to maximum resolution size.
storm2713687




PostPosted: Sat Mar 02, 2013 9:26 pm   Post subject: Re: RE:Turing run mode resolution

Raknarg @ Sat Mar 02, 2013 8:02 pm wrote:
Also, for future reference:

setscreen ("graphics:max;max") sets the screen to maximum resolution size.


YES!!!! THAT'S WHAT I WANTED THE MOST, the other one is good, but this was what I was mainly looking for Razz
I'm so stupid for not mentioning I was looking for that lol, but TY!
Raknarg




PostPosted: Sat Mar 02, 2013 10:04 pm   Post subject: RE:Turing run mode resolution

Just note that if you're trying to make a program to use on multiple computers, the best thing to do is scale your images so they are positioned correctly on any monitor size.

Or not. Do whatever.
Sponsor
Sponsor
Sponsor
sponsor
storm2713687




PostPosted: Sat Mar 02, 2013 10:05 pm   Post subject: Re: RE:Turing run mode resolution

Raknarg @ Sat Mar 02, 2013 10:04 pm wrote:
Just note that if you're trying to make a program to use on multiple computers, the best thing to do is scale your images so they are positioned correctly on any monitor size.

Or not. Do whatever.


My programs are so far just simple calculators Razz
Raknarg




PostPosted: Sat Mar 02, 2013 10:07 pm   Post subject: RE:Turing run mode resolution

Exactly, so you can spend time learning a simple concept then Razz Thats how you get better, try stuff you havent tried
storm2713687




PostPosted: Sun Mar 03, 2013 8:41 pm   Post subject: Re: RE:Turing run mode resolution

Raknarg @ Sat Mar 02, 2013 10:07 pm wrote:
Exactly, so you can spend time learning a simple concept then Razz Thats how you get better, try stuff you havent tried


I've only made one or two different "simple" calculators, but I only add new things I learn from tuts Razz
I wish I'm in grade 10 already though, then I can take compsci and have a teacher to help Mr. Green
Insectoid




PostPosted: Sun Mar 03, 2013 9:19 pm   Post subject: RE:Turing run mode resolution

Once you learn keyboard input, simple graphics, loops, for statements and procedures/functions, you can build almost any old arcade game. There aren't any tutorials for most of those, but you can create them with a little thought and time. It seems daunting now, but once you understand the most basic tools you will have no trouble.
storm2713687




PostPosted: Mon Mar 04, 2013 8:09 pm   Post subject: Re: RE:Turing run mode resolution

Insectoid @ Sun Mar 03, 2013 9:19 pm wrote:
Once you learn keyboard input, simple graphics, loops, for statements and procedures/functions, you can build almost any old arcade game. There aren't any tutorials for most of those, but you can create them with a little thought and time. It seems daunting now, but once you understand the most basic tools you will have no trouble.


Actually, Cervante's walkthrough covered all of those (but maybe not graphics, I'm not sure). I guess I can ALMOST make an old arcade game Razz
Would pac-man be one?
Insectoid




PostPosted: Mon Mar 04, 2013 8:26 pm   Post subject: RE:Turing run mode resolution

Pac-man is one of the harder ones, but you can certainly do Pong or Breakout or Asteroids.
Raknarg




PostPosted: Mon Mar 04, 2013 8:38 pm   Post subject: RE:Turing run mode resolution

or you can do what I did, I spent a bunch of time making a typical sidescrolling spaceship shooting game, which was a lot of fun to make (considering you get to do whatever you want, and put in what you like). Learning how graphics work was even better, though very time consuming. I'd spend hours hardcoding enemy ship drawings into turing.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 21 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: