Weekly Qbasic and Qb64 Lesson Topics
October 22, 2018, 10:50:23 pm
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Want to see a specific Tutorial? ASK!
   Home   Help Search Arcade Links Staff List Login Register  

Pages: 1 [2] 3 4 ... 10
 on: February 26, 2017, 04:02:43 am 
Started by bugmagnet - Last post by bugmagnet
The Linux release has CRLF line endings in the setup_lnx.sh file and, presumably in the rest as the install fails.

Just thought you should know.


PS. I think I fixed the issue adequately with
$ find . -name "*.sh" -exec dos2unix {} \;

 on: February 26, 2017, 03:59:34 am 
Started by GarrisonRicketson - Last post by bugmagnet

Appears to be broken.

 on: May 30, 2016, 12:20:38 pm 
Started by rynsp8 - Last post by rynsp8
I'm having difficulty with a concept I'm trying to learn: character movement.  I've gotten my 'character' to display on screen; it's just a green dot with a white perimeter, and I can make it move using the arrow keys, but for some reason, it moves the 'character' but leaves a copy in the previous location.  The code is below:

_TITLE "character movement"
DIM SHARED scrn&, character&
DIM SHARED white&, green&, black&
scrn& = _NEWIMAGE(800, 600, 32)

SCREEN scrn&
CALL MakeColors

CALL MakeCharacter
character_x = 20
character_y = 20
gameover$ = "false"


    CALL MakeCharacter
    _PUTIMAGE (character_x, character_y), character&, scrn&

    k$ = INKEY$
    IF k$ <> "" THEN
        code = ASC(k$)
        IF code = 0 THEN
            code = ASC(k$, 2)
            IF code = 72 THEN 'move up
                character_y = character_y - 5
            ELSEIF code = 80 THEN 'move down
                character_y = character_y + 5
            ELSEIF code = 75 THEN 'move left
                character_x = character_x - 5
            ELSEIF code = 77 THEN 'move right
                character_x = character_x + 5
            END IF
            IF k$ = CHR$(27) THEN gameover$ = "true"
        END IF
    END IF
LOOP UNTIL gameover$ = "true"

SUB MakeCharacter ()
character& = _NEWIMAGE(30, 30)
_DEST character&
CIRCLE (20, 17), 6, white&
PAINT (20, 17), green&, white&

SUB MakeColors ()
white& = _RGB(255, 255, 255)
green& = _RGB(0, 255, 0)
black& = _RGB(0, 0, 0)

I've been going over it for a few days but I'm not making any headway.

 on: February 19, 2016, 01:44:32 am 
Started by rickinnip - Last post by rickinnip
I cannot get my programs or the sample programs to run.  I get the message I put in the subject line. 
Can anyone help?

email address = simonsen@charter.net

 on: February 14, 2016, 07:57:34 pm 
Started by kanga85 - Last post by kanga85
I have a QB64 file complied as an .EXE file.   It ends with the closing command 'System".   When I run this .EXE file and expect to close it I get the 'Unhandled Error #53.   Line 35.   File not found. Continue?'

The .EXE file is obviously looking for a file called 'System'.   How do I close a complied QB64 file elegantly?   'Exit' gives me an error within QB64.

Thanks for any help.

 on: December 07, 2015, 05:09:20 am 
Started by Raze Hallor - Last post by Raze Hallor
So this is my code:
INPUT "What is your name"; A$
PRINT "Hello "; A$
PRINT "Hello "; A$
PRINT "Hello "; A$
PRINT "Hello "; A$
PRINT "Hello "; A$
INPUT "Had Enough"; B$
IF input "yes" then print "One more thing"

It says Name already in use on line 8. Help?

 on: October 10, 2015, 12:25:53 pm 
Started by QB513 - Last post by yash
This will help you to understand QB64 Smiley
(? -Print , ' - comment )
? "my name"
locate 10 , 10

'this will print your name in column 10 and raw 10.
 Cool Cool Roll Eyes

 on: September 15, 2015, 09:42:07 am 
Started by TJE - Last post by TJE
Hello all.  I went through the FAQ and other posts and I do not see this posted anywhere.  I installed QB64 on my home computer.  The program appears to work, but when I RUN, all I get is a very quick black screen which disappears in a millisecond.  Any idea as to what is happening?  Thanks for any help at all. 

 on: September 15, 2015, 09:39:04 am 
Started by TJE - Last post by TJE
Howdy All,

Completely new to this.  Taking QB64 for my ET courses.  Electronics Technology, to be specific. 

 on: August 03, 2015, 03:22:28 pm 
Started by iblamevictoria - Last post by iblamevictoria
How to I avoid the words of a PRINT function from cutting off. I understand that going in, and manually changing every line would work, but that's too tedious. Is there a line of code I could put at the beginning of my program to avoid this?

Pages: 1 [2] 3 4 ... 10
Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Buy traffic for your forum/website
Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy