QB64 Phoenix Edition
First Person Shooter Game - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Games (https://qb64phoenix.com/forum/forumdisplay.php?fid=57)
+---- Thread: First Person Shooter Game (/showthread.php?tid=3633)

Pages: 1 2


First Person Shooter Game - aadityap0901 - 04-24-2025

Something made out of boredom:  AadityaParashar0901/FPS-Game: A simple 3D, multiplayer, First Person Shooter Game, in openGL
It can be played on localhost, and even on the web, if you allow its server to build the host publicly...


RE: First Person Shooter Game - NakedApe - 04-24-2025

I'd love to try this out, Aaditya, but I'm on a Mac and get loads of issues when I try to compile this program: INCLUDE statements that have to be reformatted to ''' '$INCLUDE''' 'xxx.xx' and TYPES that are unfound, etc. 

Is this Windows only?


RE: First Person Shooter Game - a740g - 04-24-2025

@aadityap0901 Boredom can make you do cool things. I am sure this is a cool project. The issue is that some custom library files like vector.*, inrange.* etc are missing.

@NakedApe This does not look like a Windows-only project. There are some missing files in the repo. You can find the missing files here: https://github.com/AadityaParashar0901/Breakout


RE: First Person Shooter Game - NakedApe - 04-25-2025

@a740g  Thanks, Sam.


RE: First Person Shooter Game - NakedApe - 04-25-2025

Well, I got the missing files, put em in the game directory in a new folder inside called 'include' to match the program, turned the backslashes into forward slashes and fixed the INCLUDE commands. I still get "Unknown type on Line 28." 

Line 28: Dim Shared Vertices(1 To 16384) As Vec3, TexCoords(1 To 16384) As Vec2, TotalPointsToDraw As _Unsigned Long

Where are the types defined? Is there a missing .bi file maybe? Oh well...  Confused


RE: First Person Shooter Game - bplus - 04-25-2025

Vector.bi from AP's Breakout
Code: (Select All)
Type Vec2
    As Single X, Y
End Type
Type Vec3
    As Single X, Y, Z
End Type



RE: First Person Shooter Game - NakedApe - 04-25-2025

Thanks, @bplus. I'll try adding those in, but aren't those TYPES part of the INCLUDEd files anyway? Did you get this to run?


RE: First Person Shooter Game - Steffan-68 - 04-25-2025

And the following file is missing from me

Code: (Select All)
'$Include:'include\gl_generate_texture.bm'

In Zeile 284


RE: First Person Shooter Game - aadityap0901 - 04-26-2025

Sorry everyone, I forgot to attach the libraries...
Here they are on github: QB64 Libraries

although, it was possible to find all the scattered library files Big Grin
(the gl_generate_texture sub was in qb-blocks)

anyways, I updated this game's repo, with the libraries used...


RE: First Person Shooter Game - madscijr - 04-26-2025

I'm sure it's a great game and I'll get around to checking it out, but this is why I like to put all the code in a single .BAS file - no dependency hell  Tongue !