how do u make pong without locate
#1
Posted 15 January 2004 - 05:14 PM
#2
Posted 15 January 2004 - 05:24 PM
#3
Posted 15 January 2004 - 05:41 PM
like for locate its
1,1, 21,1,
1,7, 21,7,
thats the limit for locate right(i think)
whats the limit for text and how do i use getkey to move the paddle?
#4
Posted 15 January 2004 - 05:44 PM
Text 1,1,"hi" Text 7,1,"hello" For 1->T to 127 Step 2 Text 13,T," Bye!" Next
#5
Posted 15 January 2004 - 05:54 PM
i still dont get how long u can make the
TEXT X,Y,
like is there a limit how long u can make it?
and is it the same way as locate with get key do u
1->X 5->Y Text X,Y,"=" Lbl 0 If Getkey=52 Then Clrtext X+1->X Text X,Y,"=" Ifend goto 0
and how is the text aranged just like locate?
7 by 21?
#6
Posted 15 January 2004 - 06:00 PM
Lbl 0 If Getkey=52 Then Cls //or ClrGraph, Cls is faster i think but clear graph is good to use once at the begining of the program X+1->X Text Y,X,"=" Ifend goto 0
the X max is 127 and the Y max is 63. the positioning is done by pixels so moving X+1->X will move it very little, you can move it by 6 (X+6->X) to make it seem more like Locate.
IMPORTANT: Note that it is Text Y,X,"="
#7
Posted 15 January 2004 - 07:25 PM
#8
Posted 15 January 2004 - 10:10 PM
#9
Posted 16 January 2004 - 03:44 AM
#10
Posted 16 January 2004 - 03:47 AM
that will improve the speed by the way.
#11
Posted 16 January 2004 - 08:14 AM
#12
Posted 16 January 2004 - 10:42 AM
@ casiokingdom, apparently graph mode is faster, Secret of Aan is slow on an AFX and Sprite is slow on a CFX.
Text goes up to 58 vertically but it depends how wide the letters are horizontally. X+1->X can be Isz X. Just a small question: do you think a board game on CFX would be any good?
#13
Posted 16 January 2004 - 05:17 PM
#14
Posted 17 January 2004 - 01:43 AM
#15
Posted 17 January 2004 - 01:59 AM
ViewWindow Xmin,Xmax,Xscale,Ymin,Ymax,Yscale
the default (ClrGraph sets it to this) ViewWindow -6.3,6.3,1,-3.1,3.1,1
so basically if you do:
Horizontal -3.1
Horizontal 3.1
Vertical -6.3
Vertical 6.3
you will make a box arround the screen.
#16
Posted 17 January 2004 - 02:06 AM
#17
Posted 17 January 2004 - 02:38 AM
#18
Posted 17 January 2004 - 02:52 AM
#19
Posted 17 January 2004 - 03:19 AM
http://www.casiocalc... basic tutorial
http://www.casiocalc... basic tutorial
http://www.casiocalc... basic tutorial
http://www.casiocalc... basic tutorial
http://www.casiocalc... basic tutorial
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users