Author Topic: PUZZLE GAME / FREE - WRITTEN BY ME.. ORIGINAL CODE  (Read 4952 times)

0 Members and 1 Guest are viewing this topic.

Offline PMACKAY

  • Forum Regular
  • Posts: 188
  • LIFE is Temporary
    • View Profile
PUZZLE GAME / FREE - WRITTEN BY ME.. ORIGINAL CODE
« 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
* SQUARE (Filesize: 2.31 MB, Downloads: 304)
* SQUARE.bas (Filesize: 10.73 KB, Downloads: 274)
* data.tar.gz (Filesize: 8.86 MB, Downloads: 303)
MackyWhite

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: PUZZLE GAME / FREE - WRITTEN BY ME.. ORIGINAL CODE
« Reply #1 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 
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: PUZZLE GAME / FREE - WRITTEN BY ME.. ORIGINAL CODE
« Reply #2 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
Programming isn't difficult, only it's  consuming time and coffee

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: PUZZLE GAME / FREE - WRITTEN BY ME.. ORIGINAL CODE
« Reply #3 on: April 14, 2019, 06:50:36 pm »
Hi TempodiBasic,

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

Try this:
* Alphabet PMACKAY.zip (Filesize: 8.87 MB, Downloads: 256)
« Last Edit: April 14, 2019, 07:08:32 pm by bplus »

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: PUZZLE GAME / FREE - WRITTEN BY ME.. ORIGINAL CODE
« Reply #4 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.
Programming isn't difficult, only it's  consuming time and coffee

Offline PMACKAY

  • Forum Regular
  • Posts: 188
  • LIFE is Temporary
    • View Profile
Re: PUZZLE GAME / FREE - WRITTEN BY ME.. ORIGINAL CODE
« Reply #5 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)
MackyWhite