12-20-2023, 12:19 AM (This post was last modified: 12-20-2023, 02:22 AM by madscijr.)
This is an old school Atari type game kind of like "Maze Craze" or "Adventure", where players race to finish a 2D maze.
The feedback I got last month was that the controls didn't work and it needed better instructions.
I have updated it to include full instructions, and tested it in QB64PE 3.10.0 and it works (in Windows 10 at least).
For anyone curious, download the attached code and give it a try.
A main menu is displayed with some options. You can ignore most of the options, and just press 1 for instructions, and 0 to play.
I had big plans for this game (see bottom of code for a list) but for now I just am curious if this works for anyone,
so I would appreciate any kind of feedback one way or the other - does it work? Does it suck? Is it fun? Etc.
12-20-2023, 04:18 AM (This post was last modified: 12-20-2023, 04:19 AM by JRace.)
(12-20-2023, 12:19 AM)madscijr Wrote: This is an old school Atari type game kind of like "Maze Craze" or "Adventure", where players race to finish a 2D maze.
The feedback I got last month was that the controls didn't work and it needed better instructions.
I have updated it to include full instructions, and tested it in QB64PE 3.10.0 and it works (in Windows 10 at least).
For anyone curious, download the attached code and give it a try.
A main menu is displayed with some options. You can ignore most of the options, and just press 1 for instructions, and 0 to play.
I had big plans for this game (see bottom of code for a list) but for now I just am curious if this works for anyone,
so I would appreciate any kind of feedback one way or the other - does it work? Does it suck? Is it fun? Etc.
Thanks and have fun!
Works fine on 3.10.0 (32-bit) running on Windows 7 Pro 64-bit.
Was able to figure the basics without even reading the instructions.
I can see how it could be fun with the right opponent(s), but my cats are lousy at using keyboards.
Was going to try a Linux compile, but it looks like I don't have that Linux VM set up ATM.
12-20-2023, 12:47 PM (This post was last modified: 12-20-2023, 12:48 PM by madscijr.)
(12-20-2023, 04:18 AM)JRace Wrote:
(12-20-2023, 12:19 AM)madscijr Wrote: for now I just am curious if this works for anyone,
so I would appreciate any kind of feedback one way or the other - does it work? Does it suck? Is it fun? Etc.
Works fine on 3.10.0 (32-bit) running on Windows 7 Pro 64-bit.
Was able to figure the basics without even reading the instructions.
I can see how it could be fun with the right opponent(s), but my cats are lousy at using keyboards.
Was going to try a Linux compile, but it looks like I don't have that Linux VM set up ATM.
Thanks for the feedback! Yeah, cats are all thumbs (who, ironically, lack thumbs!) LoL ;-)
The top right player didn't move until I tried to go up the first time and seemed it worked fine after that. Didn't notice an issue in the other player controls.
(12-20-2023, 02:45 PM)James D Jarvis Wrote: The top right player didn't move until I tried to go up the first time and seemed it worked fine after that. Didn't notice an issue in the other player controls.
Thanks for your feedback!
If they're flip screen (ie non-scrolling) mode and there's a wall just off-screen blocking the way, it can seem like the controls don't work. I plan on adding sounds for when they bump into a wall.
Another thing to look out for is checking whether num-lock is on/off, as the game uses the numeric keypad's cursor keys for one of the players.
(12-20-2023, 02:45 PM)Another thing to look out for is checking whether num-lock is on/off, as the game uses the numeric keypad's cursor keys for one of the players. Wrote:
Another thing to look out for is checking whether num-lock is on/off, as the game uses the numeric keypad's cursor keys for one of the players.
[/quote]
(12-20-2023, 02:45 PM)Another thing to look out for is checking whether num-lock is on/off, as the game uses the numeric keypad's cursor keys for one of the players. Wrote:
12-20-2023, 06:30 PM (This post was last modified: 12-20-2023, 06:38 PM by madscijr.)
(12-20-2023, 04:16 PM)Steffan-68 Wrote:
(12-20-2023, 03:02 PM)madscijr Wrote: Another thing to look out for is checking whether num-lock is on/off, as the game uses the numeric keypad's cursor keys for one of the players.
Or they give the program start
Code: (Select All)
_Numlock Off
and to the end of the program
Code: (Select All)
_Numlock On
BTW, the wiki says it's not available in Mac and Linux, I wonder why and if there's any plans to add it?
Also, on my PC, the numeric keypad keys work whether num lock is on or off...
(12-20-2023, 06:30 PM)madscijr Wrote: Also, on my PC, the numeric keypad keys work whether num lock is on or off...
Is that globally or is that just within QB64? I've never seen where numkeys work when numlock is disabled. They usually behave as arrow keys. Do you have some program/plugin/service that is running that might be intercepting the numlock key?
12-20-2023, 10:47 PM (This post was last modified: 12-20-2023, 10:54 PM by madscijr.)
(12-20-2023, 07:14 PM)SpriggsySpriggs Wrote:
(12-20-2023, 06:30 PM)madscijr Wrote: Also, on my PC, the numeric keypad keys work whether num lock is on or off...
Is that globally or is that just within QB64? I've never seen where numkeys work when numlock is disabled. They usually behave as arrow keys. Do you have some program/plugin/service that is running that might be intercepting the numlock key?
Just within QB64 - I just tested it in Notepad - with NumLock on, the numeric keypad outputs numbers, with NumLock off, it behaves like cursor keys, etc.
It might be worth noting that I use _BUTTON to detect keypresses, which might have something to do with it.
Apparently _BUTTON detects the numeric keypad keys completely seperately from the number row and cursor keys, so it doesn't matter whether NumLock is on or off.
Below is a little test program that just verifies the behavior with NumLock - run it, turn numlock off,
then try pressing 2, 4, 6, 8 on the number row, 2, 4, 6, 8 on the numeric keypad, and the regular cursor keys.
Then turn numlock on, and try those keys again. No difference!
Code: (Select All)
' TEST PROGRAM TO VERIFY _BUTTON DETECTS NUMERIC KEYPAD KEYS AS CURSOR KEYS
' AND NOT NUMBERS WHETHER NUMLOCK IS ON OR OFF
Const FALSE = 0
Const TRUE = Not FALSE
' ----------------------------------------------------------------------------------------------------------------------------------------------------------------
' BEGIN KEYBOARD CODE CONSTANTS FOR _BUTTON #KEYBOARD
' ----------------------------------------------------------------------------------------------------------------------------------------------------------------
Sub main
Do
While _DeviceInput(1): Wend ' clear and update the keyboard buffer
Cls
Color 0, 3: Print "CURSOR KEYS :";: Color 7, 0: Print " ";
If _Button(c_bKey_Left) Then Color 0, 7 Else Color 7, 0
Print "LEFT";
Color 7, 0: Print " ";
If _Button(c_bKey_Right) Then Color 0, 7 Else Color 7, 0
Print "RIGHT";
Color 7, 0: Print " ";
If _Button(c_bKey_Up) Then Color 0, 7 Else Color 7, 0
Print "UP";
Color 7, 0: Print " ";
If _Button(c_bKey_Down) Then Color 0, 7 Else Color 7, 0
Print "DOWN";
Color 7, 0: Print: Print
Color 0, 3: Print "NUMERIC KEYPAD:";: Color 7, 0: Print " ";
If _Button(c_bKey_Keypad4Left) Then Color 0, 7 Else Color 7, 0
Print "4/LEFT";
Color 7, 0: Print " ";
If _Button(c_bKey_Keypad6Right) Then Color 0, 7 Else Color 7, 0
Print "6/RIGHT";
Color 7, 0: Print " ";
If _Button(c_bKey_Keypad8Up) Then Color 0, 7 Else Color 7, 0
Print "8/UP";
Color 7, 0: Print " ";
If _Button(c_bKey_Keypad2Down) Then Color 0, 7 Else Color 7, 0
Print "2/DOWN";
Color 7, 0: Print: Print
Color 0, 3: Print "NUMBER KEYS :";: Color 7, 0: Print " ";
If _Button(c_bKey_4) Then Color 0, 7 Else Color 7, 0
Print "4";
Color 7, 0: Print " ";
If _Button(c_bKey_6) Then Color 0, 7 Else Color 7, 0
Print "6";
Color 7, 0: Print " ";
If _Button(c_bKey_8) Then Color 0, 7 Else Color 7, 0
Print "8";
Color 7, 0: Print " ";
If _Button(c_bKey_2) Then Color 0, 7 Else Color 7, 0
Print "2";
Color 7, 0: Print: Print
Color 0, 3: Print "LOCK KEYS :";: Color 7, 0: Print " ";
If _NumLock Then
Color 0, 7
Print "_NumLock=TRUE";
Else
Color 7, 0
Print "_NumLock=FALSE";
End If
Color 7, 0
Print: Print
Print "PRESS <ESC> TO EXIT"
If _Button(c_bKey_Esc) Then Exit Do
_Limit 100 ' keep loop at 100 frames per second
Loop Until _KeyDown(27) ' leave loop when ESC key pressed