it seems to me that the KeyboardInkey() command used to get input on the console in the Russian roulette code does not work :/ what do you propose for me to do?
Procedure.s inputs()
Define.s userInput$, userInputChar$
Repeat
ExamineKeyboard()
If KeyboardReleased(#PB_Key_Back)
userInput ...
Search found 26 matches
- Tue Sep 14, 2021 4:20 pm
- Forum: Linux
- Topic: running code from PB win10 on PB on linux (ubuntu)
- Replies: 5
- Views: 4598
- Tue Sep 14, 2021 1:46 pm
- Forum: Linux
- Topic: running code from PB win10 on PB on linux (ubuntu)
- Replies: 5
- Views: 4598
Re: running code from PB win10 on PB on linux (ubuntu)
I would like to ask another question - where in purebasic under Ubuntu Linux are the executables? I compile/run and when I do to the project folder I don't see any executable :O
anyone has any idea how and where can I find the executables of my programs?
PS. found the answer - I need to click ...
anyone has any idea how and where can I find the executables of my programs?
PS. found the answer - I need to click ...
- Tue Sep 14, 2021 12:59 pm
- Forum: Linux
- Topic: running code from PB win10 on PB on linux (ubuntu)
- Replies: 5
- Views: 4598
running code from PB win10 on PB on linux (ubuntu)
hello...
I've switched my OS from win 10 to ubuntu 20.04 and I installed purebasic on it just like I had on win 10... during instillation i installed all dependencies except for libgnome2.dev which is obsolete and you cannot install it anymore with apt-get command...
so I started to test my ...
I've switched my OS from win 10 to ubuntu 20.04 and I installed purebasic on it just like I had on win 10... during instillation i installed all dependencies except for libgnome2.dev which is obsolete and you cannot install it anymore with apt-get command...
so I started to test my ...
- Tue Mar 02, 2021 2:25 pm
- Forum: Game Programming
- Topic: a small demo to a base of a game
- Replies: 0
- Views: 5649
a small demo to a base of a game
hello...
i coded today some simple game first version... it's called "homeless - surviving the streets"
here is the code:
; EnableExplicit
#Window_Main = 0
#Screen_Width = 800
#Screen_Height = 600
Dim food.s(0)
Dim work.s(0)
Dim phone.s(0)
Dim shelter.s(0)
Dim drugs.s(0)
Define r.s, i.i, health ...
i coded today some simple game first version... it's called "homeless - surviving the streets"
here is the code:
; EnableExplicit
#Window_Main = 0
#Screen_Width = 800
#Screen_Height = 600
Dim food.s(0)
Dim work.s(0)
Dim phone.s(0)
Dim shelter.s(0)
Dim drugs.s(0)
Define r.s, i.i, health ...
- Mon Mar 01, 2021 9:02 pm
- Forum: Coding Questions
- Topic: question about encoding/decoding a text file
- Replies: 13
- Views: 2245
Re: question about encoding/decoding a text file
hello...
i would really like to code a small program that will be able to encrypt/decrypt text files with a password the code above works yet still i do not know how to read separately the vector of encrypted file at the bottom from the rest of the encrypted text - maybe i should save the vector in ...
i would really like to code a small program that will be able to encrypt/decrypt text files with a password the code above works yet still i do not know how to read separately the vector of encrypted file at the bottom from the rest of the encrypted text - maybe i should save the vector in ...
- Mon Mar 01, 2021 6:55 pm
- Forum: Coding Questions
- Topic: question about encoding/decoding a text file
- Replies: 13
- Views: 2245
Re: question about encoding/decoding a text file
thank you @Saki for your replay :)
now the code works however it does not decrypt the file only encrypt :-/
p.s. - oh my mistake it does decrypt the file :) my mistake - i thank you all :)
here is the code:
EnableExplicit
Define Filename$, InFile, *InFile, *OutFile, OutFile, pass.s, text.s ...
now the code works however it does not decrypt the file only encrypt :-/
p.s. - oh my mistake it does decrypt the file :) my mistake - i thank you all :)
here is the code:
EnableExplicit
Define Filename$, InFile, *InFile, *OutFile, OutFile, pass.s, text.s ...
- Mon Mar 01, 2021 4:44 pm
- Forum: Coding Questions
- Topic: question about encoding/decoding a text file
- Replies: 13
- Views: 2245
Re: question about encoding/decoding a text file
hello i tried to create a password with a key generated and to generate a vector and to write the key in the encrypted file but the code is not working as i'm confused with var *var @var sizeof memorysize etc...
anyway here is the code:
EnableExplicit
Define Filename$, InFile, *InFile, *OutFile ...
anyway here is the code:
EnableExplicit
Define Filename$, InFile, *InFile, *OutFile ...
- Mon Mar 01, 2021 1:47 pm
- Forum: Coding Questions
- Topic: question about encoding/decoding a text file
- Replies: 13
- Views: 2245
Re: question about encoding/decoding a text file
thank you very much 
- Mon Mar 01, 2021 1:08 pm
- Forum: Coding Questions
- Topic: question about encoding/decoding a text file
- Replies: 13
- Views: 2245
Re: question about encoding/decoding a text file
well i did my best...
i wrote a code that reads a text file into a string variable and encode it then write it to another text file as encrypted and it worked i think i got an encrypted text in the file
then i decided to write another code to read the encoded text file and decode it and write the ...
i wrote a code that reads a text file into a string variable and encode it then write it to another text file as encrypted and it worked i think i got an encrypted text in the file
then i decided to write another code to read the encoded text file and decode it and write the ...
- Mon Mar 01, 2021 12:31 pm
- Forum: Coding Questions
- Topic: question about encoding/decoding a text file
- Replies: 13
- Views: 2245
question about encoding/decoding a text file
hello.
today i didn't find something interesting to code... then i looked into PB help docs and found out about "ciphers" lib in PB so i used the example in AES-ENCODER to write this simple code that runs on console... you enter a sentence and the code encrypt and decrypt it with AES - i was ...
today i didn't find something interesting to code... then i looked into PB help docs and found out about "ciphers" lib in PB so i used the example in AES-ENCODER to write this simple code that runs on console... you enter a sentence and the code encrypt and decrypt it with AES - i was ...
- Sun Feb 28, 2021 5:29 pm
- Forum: Game Programming
- Topic: a small demo of a game base to an adventure game
- Replies: 5
- Views: 6379
Re: a small demo of a game base to an adventure game
hello @#NULL
do you mean something like that?
EnableExplicit
#Window_Main = 0
#Screen_Width = 800
#Screen_Height = 600
Structure location
Array compass.s(3)
location.s
Array directions.s(3)
Array way_map.i(3)
EndStructure
Dim places.location(6)
Define.s r
Define.i i, ii
places(0)\way ...
do you mean something like that?
EnableExplicit
#Window_Main = 0
#Screen_Width = 800
#Screen_Height = 600
Structure location
Array compass.s(3)
location.s
Array directions.s(3)
Array way_map.i(3)
EndStructure
Dim places.location(6)
Define.s r
Define.i i, ii
places(0)\way ...
- Sun Feb 28, 2021 4:33 pm
- Forum: Game Programming
- Topic: a small demo of a game base to an adventure game
- Replies: 5
- Views: 6379
Re: a small demo of a game base to an adventure game
hello :D
well i added a direction map to the engine so now if a direction is closed or blocked you cannot pass if it's open you can pass on
no need of down arrow key anymore just arrow key up/right/left will do
EnableExplicit
#Window_Main = 0
#Screen_Width = 800
#Screen_Height = 600 ...
well i added a direction map to the engine so now if a direction is closed or blocked you cannot pass if it's open you can pass on
no need of down arrow key anymore just arrow key up/right/left will do
EnableExplicit
#Window_Main = 0
#Screen_Width = 800
#Screen_Height = 600 ...
- Sun Feb 28, 2021 4:11 pm
- Forum: Game Programming
- Topic: a small demo of a game base to an adventure game
- Replies: 5
- Views: 6379
a small demo of a game base to an adventure game
hello :)
i've been working today on a small demo of a game base or game engine for an adventure game - i don't use graphics or sound just text...
you move around with the key arrows and exit with escape key...
code criticism and code review are welcomed
p.s. - i hope to add some sort of a open ...
i've been working today on a small demo of a game base or game engine for an adventure game - i don't use graphics or sound just text...
you move around with the key arrows and exit with escape key...
code criticism and code review are welcomed
p.s. - i hope to add some sort of a open ...
- Fri Feb 26, 2021 3:18 pm
- Forum: Coding Questions
- Topic: how to read and draw on screen a whole text file?
- Replies: 6
- Views: 1424
Re: how to read and draw on screen a whole text file?
thank you all very much!
yes - stay safe and protected
- Fri Feb 26, 2021 2:03 pm
- Forum: Coding Questions
- Topic: how to read and draw on screen a whole text file?
- Replies: 6
- Views: 1424
how to read and draw on screen a whole text file?
hello.
i'm trying to figure is there a way to read a whole text file and just print it "drawtext()" it on the screen so it will be displayed exactly as it is in the text file...
here is a text file for a test:
hello this is a test....
how are you doing?
hello this is a test
this is a teast To ...
i'm trying to figure is there a way to read a whole text file and just print it "drawtext()" it on the screen so it will be displayed exactly as it is in the text file...
here is a text file for a test:
hello this is a test....
how are you doing?
hello this is a test
this is a teast To ...