Search found 36 matches
- Fri Feb 21, 2025 8:57 pm
- Forum: Support
- Topic: adopting Usborne games/programs to ugBASIC
- Replies: 1
- Views: 25110
adopting Usborne games/programs to ugBASIC
A few years back, Usborne publishing released PDF versions of their books from the 80's about BASIC programming. https://usborne.com/us/books/computer-and-coding-books If I, or anyone else, were to adopt these to ugBASIC, could we post them in the snippets or completed programs area following the pu...
- Fri Feb 21, 2025 5:45 pm
- Forum: Support
- Topic: AT$ sytax appears to be incorrect
- Replies: 4
- Views: 27297
Re: AT$ sytax appears to be incorrect
After looking back at my code, it looks like I was the one that had my x's and y's turned around.
But if I accidentally helped you make an improvement, I guess it's all is good!
Everything appears to work as intended.
But if I accidentally helped you make an improvement, I guess it's all is good!
Everything appears to work as intended.
- Tue Feb 18, 2025 4:10 pm
- Forum: Support
- Topic: AT$ sytax appears to be incorrect
- Replies: 4
- Views: 27297
Re: AT$ sytax appears to be incorrect
Thanks for taking a look. Not to worry. I have plenty of patience.
I'll have to update my code snippet I posted after the fix since I posted it with AT$(Y,X) syntax.
I'll have to update my code snippet I posted after the fix since I posted it with AT$(Y,X) syntax.
- Mon Feb 17, 2025 9:13 pm
- Forum: Support
- Topic: AT$ sytax appears to be incorrect
- Replies: 4
- Views: 27297
AT$ sytax appears to be incorrect
This might be a coco 3 thing but it appears AT$(y,x) works correctly instead of AT$(x,y).
- Mon Feb 17, 2025 8:48 pm
- Forum: Code snippets
- Topic: Roll stats for a character and let the player keep one set
- Replies: 0
- Views: 17038
Roll stats for a character and let the player keep one set
REM ******************************************************* REM A PROGRAM TO ROLL 12 SETS OF STATS AND LET YOU PICK ONE REM BY JJARRELL REM ******************************************************* REM SET THE ATTRIBUTE ARRAY DIM a(7,13) CLS RANDOMIZE TIMER REM LOOP TO ROLL EACH OF 6 ATTRIBUTES 12 TI...
- Mon Feb 10, 2025 8:57 pm
- Forum: Code snippets
- Topic: Program to graph data
- Replies: 0
- Views: 20726
Program to graph data
REM **************************** REM A PROGRAM TO GRAPH INVENTORY REM BY JJARRELL REM **************************** CLS PRINT "INVENTORY GRAPH" PRINT "---------------" REM LOOP TO READ IN DATA UNTIL THE END IS REACHED WHILE NOT READ END READ item$,qty PRINT item$,qty, REM LOOP TO...
- Mon Feb 10, 2025 8:56 pm
- Forum: Support
- Topic: help reading a string/int pair
- Replies: 5
- Views: 62883
Re: help reading a string/int pair
Thanks for your help. It works as intended.
Also, thanks Ervin your suggestions.
I've cleaned up the example and posting it in the snippet area.
Also, thanks Ervin your suggestions.
I've cleaned up the example and posting it in the snippet area.
- Mon Feb 10, 2025 4:39 pm
- Forum: Support
- Topic: help reading a string/int pair
- Replies: 5
- Views: 62883
Re: help reading a string/int pair
Good news. It compiles with no errors and prints the QTY value. However, there seems to be some odd behavior in the way it treats the QTY variable. With the example below if you use the freshly read qty in a for/next, QTY appears to be treated as a 0. When it is part of a calculation, total=total+qt...
- Thu Feb 06, 2025 10:42 pm
- Forum: Support
- Topic: help reading a string/int pair
- Replies: 5
- Views: 62883
help reading a string/int pair
I get an error when compiling this because of the string variable in the READ statement and I assume it has to defining the DATA as a type.
How should I correct this to read in the data string/integer pair?
How should I correct this to read in the data string/integer pair?
Code: Select all
READ item$, qty
PRINT item$,qty
DATA "BLUE WIDGET",10
- Wed Feb 05, 2025 11:07 pm
- Forum: Code snippets
- Topic: A program to generate a random dungeon level and populate it
- Replies: 0
- Views: 19301
A program to generate a random dungeon level and populate it
REM ******************************************** REM A PROGRAM TO GENERATE A RANDOM DUNGEON LEVEL REM AND POPULATE THE ROOMS. REM BY JJARRELL REM ******************************************** REM SET MAP BOUNDS DIM map(11,11) CLS REM GENERATE RANDOM SEED RANDOMIZE TIMER REM SET PLAYER X,Y POSITION p...