QB64.org Forum

Active Forums => Programs => Topic started by: PMACKAY on April 13, 2019, 09:13:20 am

Title: PUZZLE GAME / FREE - WRITTEN BY ME.. ORIGINAL CODE
Post by: PMACKAY on April 13, 2019, 09:13:20 am
linux *** just copy to a folder (eg.gamesquare) and unzip the data directory as data.. change to make executable

other just compile the bas file and put data in a data directory

Input to move the characters is by

 * keyboard (num pad 4 8 6 1
 * mouse / hold button if you dont want to keep clicking and drag

simple puzzle.... code is probably a bit long but work good. have fun
Title: Re: PUZZLE GAME / FREE - WRITTEN BY ME.. ORIGINAL CODE
Post by: Pete on April 13, 2019, 11:19:04 am
Hi PMACKAY,

I see your login name is all caps, but as a point of forum etiquette, could you please not use all caps for message titles? Thank you.

I am also curious why you chose to use keypad buttons 4,8,6, and 1. There is no symmetry there, unless you meant 4-left, 8-up, 6-rigt, and 2-down, instead of 1.

Great idea to add a mouse drag effect, btw.

Pete 
Title: Re: PUZZLE GAME / FREE - WRITTEN BY ME.. ORIGINAL CODE
Post by: TempodiBasic on April 14, 2019, 05:08:37 pm
Hi Pmackay
it doesn't run, please tell me where my procedure to install it is wrong and how can I fix it.

I download the file SQUARE.BAS and SQUARE.
I put Square.bas in QB64 folder and I create into QB64 folder another folder called data.
Then I put SQUARE into data folder and I open SQUARE by 7.zip and I extract all the files into this data folder.
I get 8 files without extension named from 0 to 7.
Now I load Square.bas into QB64 and press F5.... and when you application runs I get this error Unhandeld Error #258
Line 16: invalid handle continue?


I get this same error also if I add the extension .jpg to the files extracted in data folder.

Thanks
Title: Re: PUZZLE GAME / FREE - WRITTEN BY ME.. ORIGINAL CODE
Post by: bplus on April 14, 2019, 06:50:36 pm
Hi TempodiBasic,

I think Square (no extension) is the Linux exe file.

Try this:
Title: Re: PUZZLE GAME / FREE - WRITTEN BY ME.. ORIGINAL CODE
Post by: TempodiBasic on April 15, 2019, 01:27:00 pm
@Thank you very much Bplus
now I have downloaded the archive .tar.gz that I have avoided before because I think of this extension for Linux.
:-)

@PMACKAY
fine music, images and this old game that in my country is made with numbers from 1 to 15 in a 16 square frame.
Title: Re: PUZZLE GAME / FREE - WRITTEN BY ME.. ORIGINAL CODE
Post by: PMACKAY on April 15, 2019, 09:27:36 pm
number pad keys or mouse

 8 up
 4 left
 6 right
 2 down

the gz file contains the data for game which needs to be in a data directory
the source code needs compiling for windows (and Linux) but have included a compiled version (bin) for Linux (mint-Debian)

directories needed are

 c:\game            (put compiled here)
 c:\game\data    (data here) needed unzipping

*I only run Linux, there may be changes in the source code needed for windows or mac.. (not sure)