Author Topic: Getting started in Casio-Basic? You can ask here.  (Read 79047 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Getting started in Casio-Basic? You can ask here.
« Reply #75 on: May 17, 2011, 02:49:51 pm »
Oh wait nvm I had like 1e28 in B. No wonder why it never loaded. :P

Btw that looks cool, too bad it wouldn't be practical in games due to the speed.

Offline m1ac4

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 106
  • Rating: +8/-0
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #76 on: May 18, 2011, 07:40:58 am »
That doesn't look like dyna graph.  This looks like its the regular graph mode with several inequality equations.  The shading for these graphs overlap causing a dithering pattern that results in those extra colors.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Getting started in Casio-Basic? You can ask here.
« Reply #77 on: May 23, 2011, 12:15:19 am »
Ah maybe. I wonder, then, if that could be used in games... I can imagine the creation of some dungeon graphics using a bunch of graphs on top of each others, although if the maps are complicated that might slow map loading down.

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #78 on: May 23, 2011, 12:23:54 am »
I've been working on making a program to demonstrate the abilities of graphs and how they can be used used in programs, but I still can't get the syntax right for changing the color of graphs. Otherwise I have every other function that I wanted to demonstrate in place. One way to draw graphs smoothly in a game is to use the command SimulOn which causes every graph to be drawn at the same time instead of separately.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Getting started in Casio-Basic? You can ask here.
« Reply #79 on: May 23, 2011, 12:32:37 am »
I see. I hope there are no bugs. That said I checked the syntax of certain programs and it seems kinda hard to dechiper at first O.o

Offline m1ac4

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 106
  • Rating: +8/-0
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #80 on: May 23, 2011, 07:40:06 am »
I've been working on making a program to demonstrate the abilities of graphs and how they can be used used in programs, but I still can't get the syntax right for changing the color of graphs. Otherwise I have every other function that I wanted to demonstrate in place. One way to draw graphs smoothly in a game is to use the command SimulOn which causes every graph to be drawn at the same time instead of separately.
Would this help? http://ourl.ca/9185/174354

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #81 on: May 24, 2011, 01:12:42 am »
Ah thanks that works. I'll see if I can demonstrate now the possibility of using graphs and plot functions to make games.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Getting started in Casio-Basic? You can ask here.
« Reply #82 on: May 25, 2011, 03:13:00 pm »
Yeah I remember that. Anyway one idea I had for example would be if the Prizm supports X=, we could use 4 lines to form dungeon walls or something, although in some cases it might not be super practical, plus it would be slow.

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #83 on: May 25, 2011, 11:56:52 pm »
Yeah I remember that. Anyway one idea I had for example would be if the Prizm supports X=, we could use 4 lines to form dungeon walls or something, although in some cases it might not be super practical, plus it would be slow.
There is x= but I need to check if you can draw y= and x= at the same time. For something like that though I would recommend using the plot functions as though are probably faster. Graphs seem to be best for inequalities as they can do special color combinations. Dynamic graphs don't support inequalities but can quickly draw complicated animated effects one the the pre-rendering has finished. Also note that you can load a background image on all graph operations. I do have a pretty cool program already that uses dynamic graphs in which the camera quickly runs down a 3D tunnel. I'll post that soon once I clean it up a little.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #84 on: May 26, 2011, 01:12:31 am »
Yeah I remember that. Anyway one idea I had for example would be if the Prizm supports X=, we could use 4 lines to form dungeon walls or something, although in some cases it might not be super practical, plus it would be slow.
There is x= but I need to check if you can draw y= and x= at the same time.
It's possible. I tried drawing one line at every edge of the screen... It worked, but the colors made it look all rainbow-y :P

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Getting started in Casio-Basic? You can ask here.
« Reply #85 on: June 12, 2011, 02:56:22 am »
Hmm I wonder how you do that...

THat said I tried drawing many graphs and it wouldn't be very reliable for drawing dungeons, as the pattern is different for every line and I couldn,t figure out how to change it.

Offline sjasogun1

  • LV3 Member (Next: 100)
  • ***
  • Posts: 88
  • Rating: +8/-1
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #86 on: September 23, 2011, 06:26:49 am »
EDIT: Somehow the entire problem vanishes once I replace PlotOn with PxlChg. I don't know how, but it works.

I have a problem with the PxlTest command in an IF statement. I basically want a dot to move around the screen without running into any pixels that are on. But for some reason the dot will move regardless of whether or not there is a dot in the way. I used a different program to check it by breaking the program when the dot is next to a pixel in the on state, and it says it is on, no matter how i formulate it (PxlTest(B,A), PxlTest(B,A)=0, PxlTest(B,A)=/=1, etc) it will definitely say the pixel is on. But the IF-statement will simply ignore whatever state the pixel is in. I'll post the code for the IF-statement when the down button is pressed.

Code: [Select]
If Getkey=28 And PxlTest(64-B+1)=0
(the 64 is because I use PlotOn to place the pixel, making the Y-coordinate (the B variable in this case) inverted. Because the graph screen is 64 high this makes sure the coordinates are correct)
Then A->D:B->E:B+1->B
(D and E just remove the old dot image when it has moved)
IfEnd

If you think it's the inversion making it go wrong it isn't; as I said before I tested it by continuously using PxlChg on the pixel that should be tested to make sure the right pixel is tested. Can anybody help me?
« Last Edit: September 23, 2011, 06:45:35 am by sjasogun1 »
Veni, vidi, cecidi
(I came, I saw, I fell down dead)
MSPAFORUMS: http://www.mspaforums.com/
HOMESTUCK: http://www.mspaintadventures.com/?s=6&p=001901

Offline pokemonrules9

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 16
  • Rating: +2/-0
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #87 on: September 24, 2011, 04:02:37 pm »
I just started in Casio-Basic and I seem to be having some problems.  I'm starting on some simple text-based games, and I'm trying to clear the screen when the F1 key is pressed.  The text appears, but a 0 shows up in the upper right hand corner, and it won't do anything.  I feel like I've tried everything, but nothing is working!  :'( Can someone tell me what I'm doing wrong?
Spoiler For Spoiler:
Locate 4,4,"some text"
0->K
Getkey->K
If K=79
Then
ClrText

Offline glrenden

  • LV0 Newcomer (Next: 5)
  • Posts: 1
  • Rating: +0/-0
    • View Profile
    • Addicting Games
Re: Getting started in Casio-Basic? You can ask here.
« Reply #88 on: September 24, 2011, 04:48:48 pm »
great guys.. got some idea.. really big help.. wait i will fix mine..  :w00t:

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Getting started in Casio-Basic? You can ask here.
« Reply #89 on: September 24, 2011, 04:48:59 pm »
try:

Locate 4,4,"some text"
0->K
While K=0
Getkey -> K
If K=79
Then ClrText
WhileEnd



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0