Jump to content



Photo
- - - - -

how do u make pong without locate


  • Please log in to reply
18 replies to this topic

#1 miltonthemoose

miltonthemoose

    Casio Fan

  • Members
  • PipPip
  • 34 posts
  • Location:California
  • Interests:programing, music, PC games

  • Calculators:
    algebra fx2.0

Posted 15 January 2004 - 05:14 PM

since every1 in school is making pong with macromedia flash i decided to make it with casio but i dont know how to do the graph i know that it wont where with locate plz help

#2 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 15 January 2004 - 05:24 PM

the equivalent of Locate on the graph is Text, but the sentax is Text Y,X,"whatever" instead of Locate X,Y,"whatever"

#3 miltonthemoose

miltonthemoose

    Casio Fan

  • Members
  • PipPip
  • 34 posts
  • Location:California
  • Interests:programing, music, PC games

  • Calculators:
    algebra fx2.0

Posted 15 January 2004 - 05:41 PM

im confused i dont get the length. so i need to use text thats all right

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 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 15 January 2004 - 05:44 PM

try this:

Text 1,1,"hi"
Text 7,1,"hello"
For 1->T to 127 Step 2
Text 13,T," Bye!"
Next


#5 miltonthemoose

miltonthemoose

    Casio Fan

  • Members
  • PipPip
  • 34 posts
  • Location:California
  • Interests:programing, music, PC games

  • Calculators:
    algebra fx2.0

Posted 15 January 2004 - 05:54 PM

thx ill do that when i get home
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 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 15 January 2004 - 06:00 PM

it would be like this instead:

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 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking & Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool & Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 15 January 2004 - 07:25 PM

i you place the Y coordinate at 56 ish then it places the text at the bottom of the screen, about where the F buttons go.

#8 PerCasioAdAstra

PerCasioAdAstra

    Casio Addict

  • Members
  • PipPipPip
  • 83 posts
  • Location:Stavanger, Norway
  • Interests:Programming, gaming, gf, ..

  • Calculators:
    CFX 9850 GB PLUS WE;

Posted 15 January 2004 - 10:10 PM

ahh... Pong. Its been a while. Maybe i should try again :D

#9 miltonthemoose

miltonthemoose

    Casio Fan

  • Members
  • PipPip
  • 34 posts
  • Location:California
  • Interests:programing, music, PC games

  • Calculators:
    algebra fx2.0

Posted 16 January 2004 - 03:44 AM

can i get rid of the X and Y axes?

#10 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 16 January 2004 - 03:47 AM

yes, <span class=CTRL' /><span class=F3' /><span class=F4' /><span class=7' /><span class=2' />

that will improve the speed by the way.

#11 casiokingdom

casiokingdom

    UCF BASIC Programming 2nd Place

  • Members
  • PipPipPipPipPipPipPip
  • 782 posts
  • Gender:Male
  • Location:Perth, WA, Australia

  • Calculators:
    CFX-9850GB PLUS WE, fx-9860G AU

Posted 16 January 2004 - 08:14 AM

hmm, is text or graph mode faster for pong on the AFX??

#12 genesis

genesis

    UCF BASIC Programming Runner Up

  • Super Member
  • PipPipPipPip
  • 281 posts
  • Location:Perth, Australia
  • Interests:Speaking German, computers, defending CFX calculators...

  • Calculators:
    CFX 9850 GB+

Posted 16 January 2004 - 10:42 AM

ViewWindow 1,127,0,63,1,0 takes away the need to bother about grids and axes while clearing the screen but about the grids/axes/co-ords/labels, I'll test it with/without them for speed.

@ 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 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 16 January 2004 - 05:17 PM

sure, just as long as its a go one. Ive been thinking about making stratego for some time, but the AI for that would be nearly impossible, it would have to be 2 players.

#14 miltonthemoose

miltonthemoose

    Casio Fan

  • Members
  • PipPip
  • 34 posts
  • Location:California
  • Interests:programing, music, PC games

  • Calculators:
    algebra fx2.0

Posted 17 January 2004 - 01:43 AM

i dont understand view window either :huh:

#15 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 17 January 2004 - 01:59 AM

the sentax for ViewWindow is:

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 miltonthemoose

miltonthemoose

    Casio Fan

  • Members
  • PipPip
  • 34 posts
  • Location:California
  • Interests:programing, music, PC games

  • Calculators:
    algebra fx2.0

Posted 17 January 2004 - 02:06 AM

i think i need to read more before i make pong games

#17 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 17 January 2004 - 02:38 AM

lol, try making a etch-a-sketch. and make sure you have read my Casio BASIC Tutorial! also, download a few programs and look at their source code.

#18 miltonthemoose

miltonthemoose

    Casio Fan

  • Members
  • PipPip
  • 34 posts
  • Location:California
  • Interests:programing, music, PC games

  • Calculators:
    algebra fx2.0

Posted 17 January 2004 - 02:52 AM

i download ur turtorial but i cant look at it?!

#19 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 17 January 2004 - 03:19 AM

I dont know where you downloaded it from, but its on the forum, these are the links to the diffrent posts:

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




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users