Author Topic: Footrace! A simple local multiplayer video olympic e-sport game for 1-4 players.  (Read 4537 times)

0 Members and 1 Guest are viewing this topic.

Offline madscijr

  • Seasoned Forum Regular
  • Posts: 295
    • View Profile
I first had this idea back in February 2003,
and it went on to the backburner with the 10,000 other "bright ideas"
to be toyed with or maybe finished or forgotten.

Well, thanks in no small part to QB64, it has finally been realized.
Only took 19 years!
You kids - let that be a lesson to you - sometimes perseverance pays off!!

All you need to run this is the one "footrace3-00.bas" file, the rest of the attachments are just screen shots.

I'm sure this could be done better, I am not what you would call a talented programmer.
Also I am not really a gamer and am not too up on things, so maybe this concept has been done.

I just wanted to make something that would be fun for the family on a rainy day,
that can be tinkered with, without having to be a rocket scientist.

I still want to build some crazy game controllers to make for a unique user experience.
That could be part of the experience - each player brings their own customized contraption to control their player.

Anyway I hope someone gets a laugh out of this.

I haven't tested it beyond my own PC, keyboard, mouse, and a couple of different game controllers, but it seems to work.
Let me know how it goes.
* footrace3-00.bas (Filesize: 858.35 KB, Downloads: 221)
footrace1.png
* footrace1.png (Filesize: 7.55 KB, Dimensions: 255x318, Views: 145)
footrace2.png
* footrace2.png (Filesize: 31.06 KB, Dimensions: 1026x795, Views: 156)
footrace3.png
* footrace3.png (Filesize: 35.44 KB, Dimensions: 1026x795, Views: 148)
footrace4.png
* footrace4.png (Filesize: 32 KB, Dimensions: 1026x795, Views: 140)
footrace5.png
* footrace5.png (Filesize: 43.98 KB, Dimensions: 1026x795, Views: 145)
footrace6.png
* footrace6.png (Filesize: 12.62 KB, Dimensions: 650x432, Views: 147)
footrace7.png
* footrace7.png (Filesize: 43.79 KB, Dimensions: 1026x795, Views: 148)
footrace8.png
* footrace8.png (Filesize: 51.63 KB, Dimensions: 1026x795, Views: 149)
footrace9.png
* footrace9.png (Filesize: 63.79 KB, Dimensions: 1026x795, Views: 148)
footrace10.png
* footrace10.png (Filesize: 70.98 KB, Dimensions: 1026x795, Views: 154)
footrace11.png
* footrace11.png (Filesize: 71.4 KB, Dimensions: 1024x1340, Views: 148)
« Last Edit: February 09, 2022, 11:45:31 pm by madscijr »

Offline MasterGy

  • Seasoned Forum Regular
  • Posts: 327
  • people lie, math never lies
    • View Profile
First, a parenthesis is missing, if I put it there, it writes this error down

qb64forum.jpg
* qb64forum.jpg (Filesize: 129.76 KB, Dimensions: 1140x314, Views: 151)

Offline madscijr

  • Seasoned Forum Regular
  • Posts: 295
    • View Profile
First, a parenthesis is missing, if I put it there, it writes this error down

Hmm, that's odd because I've been running this version, and uploaded the file without changes. I'll give it a look - thanks!

UPDATE: I found no parenthesis missing, the file compiles and runs fine. Just a bunch of warnings for unused variables...
Anyone else seeing the issue MasterGy is talking about?
« Last Edit: February 11, 2022, 10:40:39 am by madscijr »

Offline madscijr

  • Seasoned Forum Regular
  • Posts: 295
    • View Profile
First, a parenthesis is missing, if I put it there, it writes this error down

I'm not sure what you did, but there is no parenthesis missing (see screen shot).

Also, I loaded it into both QB64 2.0.2 and 1.5 and neither complained, and it runs fine under both.
(Are you maybe using a beta version of QB64?)

Maybe it got corrupted? Try downloading the file again.

Hope this helps.

Thanks again, and Good Luck.
footrace3-00.bas.no-paren-missing-line-12230.png
* footrace3-00.bas.no-paren-missing-line-12230.png (Filesize: 57.13 KB, Dimensions: 1282x992, Views: 150)
« Last Edit: February 11, 2022, 10:45:38 am by madscijr »

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
It works OK for me, but I never got past the first level, or tried any other levels. I guess this game would be good for young people to get used to the keyboard. It was very hard for me to figure out and use, but I guess it takes some practice. Pretty original though and I like the mazes!

Offline madscijr

  • Seasoned Forum Regular
  • Posts: 295
    • View Profile
Thanks for your feedback!

It's much easier playing with joystick / gamepad controllers, where one joystick controlls each foot (see picture below).
You can find a wired USB one for around $15 - 20.

Like this Logitech Wired Gamepad Controller for PC
https://www.amazon.com/Logitech-940-000110-Gamepad-F310/dp/B003VAHYQY

Get 1 of those per player and you're good to go.

For player 1-2, I use a couple Logitech RumblePad 2 controllers which are cheap on ebay
https://www.ebay.com/itm/284565059529

and for player 3-4, I have 4 Atari 2600 joysticks connected to one of these
iCode Atari Joystick, Paddle, Driving to USB Adapter 4 ports 2600 7800 XE/XL/ST
https://www.ebay.com/itm/284211046607

Later I'll post instructions on building a pair of joysticks cheap!
footrace-game-controller-1.png
* footrace-game-controller-1.png (Filesize: 791.3 KB, Dimensions: 1040x1040, Views: 138)
« Last Edit: February 11, 2022, 01:42:47 pm by madscijr »