started work on a techdemo
This commit is contained in:
parent
576df5ecd7
commit
5f57f10210
3
.gitignore
vendored
3
.gitignore
vendored
@ -9,4 +9,5 @@ x86
|
|||||||
gameenv/imgui.ini
|
gameenv/imgui.ini
|
||||||
docs/game/build
|
docs/game/build
|
||||||
docs/internal/client
|
docs/internal/client
|
||||||
gameenv/data/cache
|
gameenv/data/cache
|
||||||
|
techdemo/data/textures
|
@ -262,36 +262,36 @@ int main() {
|
|||||||
ClearBackground(BLACK);
|
ClearBackground(BLACK);
|
||||||
|
|
||||||
if(IsCursorHidden() && !consoleOn){
|
if(IsCursorHidden() && !consoleOn){
|
||||||
|
if(framebuffer > 5){
|
||||||
if (chr.cvars["math_3d_floor_collision_work"] == "true") {
|
if (chr.cvars["math_3d_floor_collision_work"] == "true") {
|
||||||
float potentialNewFloor = -FLT_MAX;
|
float potentialNewFloor = -FLT_MAX;
|
||||||
for (int b = 0; b < collisionMap.collisionSets.size(); b++) {
|
for (int b = 0; b < collisionMap.collisionSets.size(); b++) {
|
||||||
BoundingBox bb;
|
BoundingBox bb;
|
||||||
bb.min = collisionMap.collisionSets[b].size.min;
|
bb.min = collisionMap.collisionSets[b].size.min;
|
||||||
bb.max = collisionMap.collisionSets[b].size.max;
|
bb.max = collisionMap.collisionSets[b].size.max;
|
||||||
if (CheckCollisionBoxSphere(bb, camera.position, 10)) {
|
if (CheckCollisionBoxSphere(bb, camera.position, 10)) {
|
||||||
MPFW::Physics::CollisionSet cs = collisionMap.collisionSets[b];
|
MPFW::Physics::CollisionSet cs = collisionMap.collisionSets[b];
|
||||||
for (int i = 0; i < cs.collisionFaces.size(); i++) {
|
for (int i = 0; i < cs.collisionFaces.size(); i++) {
|
||||||
for (int t = 2; t < cs.collisionFaces[i].polygon.size(); t++) {
|
for (int t = 2; t < cs.collisionFaces[i].polygon.size(); t++) {
|
||||||
Vector3 a = cs.collisionFaces[i].polygon[0];
|
Vector3 a = cs.collisionFaces[i].polygon[0];
|
||||||
Vector3 b = cs.collisionFaces[i].polygon[t];
|
Vector3 b = cs.collisionFaces[i].polygon[t];
|
||||||
Vector3 c = cs.collisionFaces[i].polygon[t - 1];
|
Vector3 c = cs.collisionFaces[i].polygon[t - 1];
|
||||||
Ray r;
|
Ray r;
|
||||||
r.position = camera.position;
|
r.position = camera.position;
|
||||||
r.direction = { 0,-1,0 };
|
r.direction = { 0,-1,0 };
|
||||||
RayCollision coll = GetRayCollisionTriangle(r, a, b, c);
|
RayCollision coll = GetRayCollisionTriangle(r, a, b, c);
|
||||||
if (coll.hit) {
|
if (coll.hit) {
|
||||||
if (coll.point.y > potentialNewFloor) potentialNewFloor = coll.point.y;
|
if (coll.point.y > potentialNewFloor) potentialNewFloor = coll.point.y;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
if (potentialNewFloor != -FLT_MAX) collisionFloor = potentialNewFloor + DISTANCE_FROM_FLOOR;
|
||||||
|
else collisionFloor = camera.position.y - DISTANCE_FROM_FLOOR;
|
||||||
}
|
}
|
||||||
if (potentialNewFloor != -FLT_MAX) collisionFloor = potentialNewFloor + DISTANCE_FROM_FLOOR;
|
|
||||||
else collisionFloor = camera.position.y - DISTANCE_FROM_FLOOR;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Look();
|
Look();
|
||||||
Vector3 wishVel = { 0,0,0 };
|
Vector3 wishVel = { 0,0,0 };
|
||||||
wishSpeed = 320;
|
wishSpeed = 320;
|
||||||
@ -329,7 +329,7 @@ int main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
velocity *= {GetFrameTime(), 1, GetFrameTime()};
|
velocity *= {GetFrameTime(), 1, GetFrameTime()};
|
||||||
|
|
||||||
if (chr.cvars["math_3d_collision_work"] == "true") {
|
if (chr.cvars["math_3d_collision_work"] == "true") {
|
||||||
for (int b = 0; b < collisionMap.collisionSets.size(); b++) {
|
for (int b = 0; b < collisionMap.collisionSets.size(); b++) {
|
||||||
BoundingBox bb;
|
BoundingBox bb;
|
||||||
@ -488,12 +488,12 @@ int main() {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
for (int i = 0; i < collisionMap.collisionSets.size(); i++) {
|
/*for (int i = 0; i < collisionMap.collisionSets.size(); i++) {
|
||||||
BoundingBox b; b.min = collisionMap.collisionSets[i].size.min;
|
BoundingBox b; b.min = collisionMap.collisionSets[i].size.min;
|
||||||
b.max = collisionMap.collisionSets[i].size.max;
|
b.max = collisionMap.collisionSets[i].size.max;
|
||||||
|
|
||||||
DrawBoundingBox(b, RED);
|
DrawBoundingBox(b, RED);
|
||||||
}
|
}*/
|
||||||
EndMode3D();
|
EndMode3D();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,7 +112,8 @@
|
|||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<AdditionalLibraryDirectories>$(SOLUTIONDIR)deps/lib</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>$(SOLUTIONDIR)deps/lib</AdditionalLibraryDirectories>
|
||||||
<AdditionalDependencies>raylib.lib;winmm.lib;gdi32.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>raylib.lib;winmm.lib;gdi32.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<IgnoreSpecificDefaultLibraries>MSVCRT</IgnoreSpecificDefaultLibraries>
|
<IgnoreSpecificDefaultLibraries>
|
||||||
|
</IgnoreSpecificDefaultLibraries>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
@ -133,7 +134,8 @@
|
|||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<AdditionalLibraryDirectories>$(SOLUTIONDIR)deps/lib</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>$(SOLUTIONDIR)deps/lib</AdditionalLibraryDirectories>
|
||||||
<AdditionalDependencies>raylib.lib;winmm.lib;gdi32.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>raylib.lib;winmm.lib;gdi32.lib;$(CoreLibraryDependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<IgnoreSpecificDefaultLibraries>MSVCRT</IgnoreSpecificDefaultLibraries>
|
<IgnoreSpecificDefaultLibraries>
|
||||||
|
</IgnoreSpecificDefaultLibraries>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<LocalDebuggerWorkingDirectory>$(SolutionDir)/gameenv</LocalDebuggerWorkingDirectory>
|
<LocalDebuggerWorkingDirectory>$(SolutionDir)/techdemo</LocalDebuggerWorkingDirectory>
|
||||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<LocalDebuggerWorkingDirectory>$(SolutionDir)/gameenv</LocalDebuggerWorkingDirectory>
|
<LocalDebuggerWorkingDirectory>$(SolutionDir)/techdemo</LocalDebuggerWorkingDirectory>
|
||||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
5
techdemo/data/cfg/startup.cfg
Normal file
5
techdemo/data/cfg/startup.cfg
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
echo "MPFW Quake Tech Demo"
|
||||||
|
echo "Test Startup Script"
|
||||||
|
|
||||||
|
mode 1
|
||||||
|
map "data/maps/mpfwstart.bsp"
|
91
techdemo/data/fonts/RobotoMono/LICENSE.txt
Normal file
91
techdemo/data/fonts/RobotoMono/LICENSE.txt
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
https://openfontlicense.org
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-Bold.ttf
Normal file
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-Bold.ttf
Normal file
Binary file not shown.
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-BoldItalic.ttf
Normal file
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-ExtraLight.ttf
Normal file
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-ExtraLight.ttf
Normal file
Binary file not shown.
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-ExtraLightItalic.ttf
Normal file
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-ExtraLightItalic.ttf
Normal file
Binary file not shown.
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-Italic.ttf
Normal file
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-Italic.ttf
Normal file
Binary file not shown.
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-Light.ttf
Normal file
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-Light.ttf
Normal file
Binary file not shown.
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-LightItalic.ttf
Normal file
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-LightItalic.ttf
Normal file
Binary file not shown.
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-Medium.ttf
Normal file
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-Medium.ttf
Normal file
Binary file not shown.
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-MediumItalic.ttf
Normal file
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-MediumItalic.ttf
Normal file
Binary file not shown.
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-Regular.ttf
Normal file
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-Regular.ttf
Normal file
Binary file not shown.
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-SemiBold.ttf
Normal file
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-SemiBold.ttf
Normal file
Binary file not shown.
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-SemiBoldItalic.ttf
Normal file
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-SemiBoldItalic.ttf
Normal file
Binary file not shown.
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-Thin.ttf
Normal file
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-Thin.ttf
Normal file
Binary file not shown.
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-ThinItalic.ttf
Normal file
BIN
techdemo/data/fonts/RobotoMono/RobotoMono-ThinItalic.ttf
Normal file
Binary file not shown.
BIN
techdemo/data/maps/mpfwstart.bsp
Normal file
BIN
techdemo/data/maps/mpfwstart.bsp
Normal file
Binary file not shown.
BIN
techdemo/data/maps/mpfwstart.jmf
Normal file
BIN
techdemo/data/maps/mpfwstart.jmf
Normal file
Binary file not shown.
BIN
techdemo/data/maps/mpfwstart.jmx
Normal file
BIN
techdemo/data/maps/mpfwstart.jmx
Normal file
Binary file not shown.
58
techdemo/data/maps/mpfwstart.map
Normal file
58
techdemo/data/maps/mpfwstart.map
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
{
|
||||||
|
"classname" "worldspawn"
|
||||||
|
"mapversion" "220"
|
||||||
|
"wad" "c:/program files (x86)/steam/steamapps/common/Quake/Id1/quake.wad;E:/mpfw/gameenv/data/textures/TexturesForAuthoring.wad;E:/mpfw/techdemo/data/textures/1ktextures.wad"
|
||||||
|
"_generator" "J.A.C.K. 1.1.3773 Freeware (vpQuake)"
|
||||||
|
{
|
||||||
|
( 256 -256 160 ) ( 256 -256 0 ) ( 256 256 160 ) BRICKS101 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 288 256 160 ) ( 288 256 0 ) ( 288 -256 160 ) BRICKS101 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 256 256 160 ) ( 256 256 0 ) ( 288 256 160 ) BRICKS101 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 288 -256 160 ) ( 288 -256 0 ) ( 256 -256 160 ) BRICKS101 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 256 256 0 ) ( 256 -256 0 ) ( 288 256 0 ) BRICKS101 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 0.062 0.062
|
||||||
|
( 288 -256 160 ) ( 256 -256 160 ) ( 288 256 160 ) BRICKS101 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 0.062 0.062
|
||||||
|
}
|
||||||
|
{
|
||||||
|
( -288 -256 160 ) ( -288 -256 0 ) ( -288 256 160 ) C1A0_WX [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( -256 256 160 ) ( -256 256 0 ) ( -256 -256 160 ) BRICKS101 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( -288 256 160 ) ( -288 256 0 ) ( -256 256 160 ) C1A0_WX [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( -256 -256 160 ) ( -256 -256 0 ) ( -288 -256 160 ) C1A0_WX [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( -288 256 0 ) ( -288 -256 0 ) ( -256 256 0 ) C1A0_WX [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
|
||||||
|
( -256 -256 160 ) ( -288 -256 160 ) ( -256 256 160 ) C1A0_WX [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
|
||||||
|
}
|
||||||
|
{
|
||||||
|
( -256 256 160 ) ( -256 256 0 ) ( -256 288 160 ) C1A0_WX [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( 256 288 160 ) ( 256 288 0 ) ( 256 256 160 ) C1A0_WX [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( -256 288 160 ) ( -256 288 0 ) ( 256 288 160 ) C1A0_WX [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( 256 256 160 ) ( 256 256 0 ) ( -256 256 160 ) BRICKS101 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( -256 288 0 ) ( -256 256 0 ) ( 256 288 0 ) C1A0_WX [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
|
||||||
|
( 256 256 160 ) ( -256 256 160 ) ( 256 288 160 ) C1A0_WX [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
|
||||||
|
}
|
||||||
|
{
|
||||||
|
( 256 -256 160 ) ( 256 -256 0 ) ( 256 -288 160 ) BRICKS101 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( -256 -288 160 ) ( -256 -288 0 ) ( -256 -256 160 ) BRICKS101 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 256 -288 160 ) ( 256 -288 0 ) ( -256 -288 160 ) BRICKS101 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( -256 -256 160 ) ( -256 -256 0 ) ( 256 -256 160 ) BRICKS101 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 256 -288 160 ) ( -256 -288 160 ) ( 256 -256 160 ) BRICKS101 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 0.062 0.062
|
||||||
|
( -256 -256 0 ) ( -256 -288 0 ) ( 256 -256 0 ) BRICKS101 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 0.062 0.062
|
||||||
|
}
|
||||||
|
{
|
||||||
|
( -256 -256 192 ) ( -256 -256 160 ) ( -256 256 192 ) WOOD006 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 256 256 192 ) ( 256 256 160 ) ( 256 -256 192 ) WOOD006 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( -256 256 192 ) ( -256 256 160 ) ( 256 256 192 ) WOOD006 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 256 -256 192 ) ( 256 -256 160 ) ( -256 -256 192 ) WOOD006 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( -256 256 160 ) ( -256 -256 160 ) ( 256 256 160 ) WOOD006 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 0.062 0.062
|
||||||
|
( 256 -256 192 ) ( -256 -256 192 ) ( 256 256 192 ) WOOD006 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 0.062 0.062
|
||||||
|
}
|
||||||
|
{
|
||||||
|
( -256 -256 0 ) ( -256 -256 -32 ) ( -256 256 0 ) ASPHALT025C [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( 256 256 0 ) ( 256 256 -32 ) ( 256 -256 0 ) ASPHALT025C [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( -256 256 0 ) ( -256 256 -32 ) ( 256 256 0 ) ASPHALT025C [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( 256 -256 0 ) ( 256 -256 -32 ) ( -256 -256 0 ) ASPHALT025C [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( -256 256 -32 ) ( -256 -256 -32 ) ( 256 256 -32 ) ASPHALT025C [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
|
||||||
|
( 256 -256 0 ) ( -256 -256 0 ) ( 256 256 0 ) TILES129B [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 0.062 0.062
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"classname" "info_player_start"
|
||||||
|
"origin" "-192 0 0"
|
||||||
|
}
|
58
techdemo/data/maps/mpfwstart.max
Normal file
58
techdemo/data/maps/mpfwstart.max
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
{
|
||||||
|
"classname" "worldspawn"
|
||||||
|
"mapversion" "220"
|
||||||
|
"wad" "c:/program files (x86)/steam/steamapps/common/Quake/Id1/quake.wad;E:/mpfw/gameenv/data/textures/TexturesForAuthoring.wad;E:/mpfw/techdemo/data/textures/1ktextures.wad"
|
||||||
|
"_generator" "J.A.C.K. 1.1.3773 Freeware (vpQuake)"
|
||||||
|
{
|
||||||
|
( 256 -256 160 ) ( 256 -256 0 ) ( 256 256 160 ) BRICKS101 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 288 256 160 ) ( 288 256 0 ) ( 288 -256 160 ) BRICKS101 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 256 256 160 ) ( 256 256 0 ) ( 288 256 160 ) BRICKS101 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 288 -256 160 ) ( 288 -256 0 ) ( 256 -256 160 ) BRICKS101 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 256 256 0 ) ( 256 -256 0 ) ( 288 256 0 ) BRICKS101 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 0.062 0.062
|
||||||
|
( 288 -256 160 ) ( 256 -256 160 ) ( 288 256 160 ) BRICKS101 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 0.062 0.062
|
||||||
|
}
|
||||||
|
{
|
||||||
|
( -288 -256 160 ) ( -288 -256 0 ) ( -288 256 160 ) C1A0_WX [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( -256 256 160 ) ( -256 256 0 ) ( -256 -256 160 ) BRICKS101 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( -288 256 160 ) ( -288 256 0 ) ( -256 256 160 ) C1A0_WX [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( -256 -256 160 ) ( -256 -256 0 ) ( -288 -256 160 ) C1A0_WX [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( -288 256 0 ) ( -288 -256 0 ) ( -256 256 0 ) C1A0_WX [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
|
||||||
|
( -256 -256 160 ) ( -288 -256 160 ) ( -256 256 160 ) C1A0_WX [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
|
||||||
|
}
|
||||||
|
{
|
||||||
|
( -256 256 160 ) ( -256 256 0 ) ( -256 288 160 ) C1A0_WX [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( 256 288 160 ) ( 256 288 0 ) ( 256 256 160 ) C1A0_WX [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( -256 288 160 ) ( -256 288 0 ) ( 256 288 160 ) C1A0_WX [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( 256 256 160 ) ( 256 256 0 ) ( -256 256 160 ) BRICKS101 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( -256 288 0 ) ( -256 256 0 ) ( 256 288 0 ) C1A0_WX [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
|
||||||
|
( 256 256 160 ) ( -256 256 160 ) ( 256 288 160 ) C1A0_WX [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
|
||||||
|
}
|
||||||
|
{
|
||||||
|
( 256 -256 160 ) ( 256 -256 0 ) ( 256 -288 160 ) BRICKS101 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( -256 -288 160 ) ( -256 -288 0 ) ( -256 -256 160 ) BRICKS101 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 256 -288 160 ) ( 256 -288 0 ) ( -256 -288 160 ) BRICKS101 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( -256 -256 160 ) ( -256 -256 0 ) ( 256 -256 160 ) BRICKS101 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 256 -288 160 ) ( -256 -288 160 ) ( 256 -256 160 ) BRICKS101 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 0.062 0.062
|
||||||
|
( -256 -256 0 ) ( -256 -288 0 ) ( 256 -256 0 ) BRICKS101 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 0.062 0.062
|
||||||
|
}
|
||||||
|
{
|
||||||
|
( -256 -256 192 ) ( -256 -256 160 ) ( -256 256 192 ) WOOD006 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 256 256 192 ) ( 256 256 160 ) ( 256 -256 192 ) WOOD006 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( -256 256 192 ) ( -256 256 160 ) ( 256 256 192 ) WOOD006 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( 256 -256 192 ) ( 256 -256 160 ) ( -256 -256 192 ) WOOD006 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 0.062 0.062
|
||||||
|
( -256 256 160 ) ( -256 -256 160 ) ( 256 256 160 ) WOOD006 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 0.062 0.062
|
||||||
|
( 256 -256 192 ) ( -256 -256 192 ) ( 256 256 192 ) WOOD006 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 0.062 0.062
|
||||||
|
}
|
||||||
|
{
|
||||||
|
( -256 -256 0 ) ( -256 -256 -32 ) ( -256 256 0 ) ASPHALT025C [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( 256 256 0 ) ( 256 256 -32 ) ( 256 -256 0 ) ASPHALT025C [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( -256 256 0 ) ( -256 256 -32 ) ( 256 256 0 ) ASPHALT025C [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( 256 -256 0 ) ( 256 -256 -32 ) ( -256 -256 0 ) ASPHALT025C [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
|
( -256 256 -32 ) ( -256 -256 -32 ) ( 256 256 -32 ) ASPHALT025C [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
|
||||||
|
( 256 -256 0 ) ( -256 -256 0 ) ( 256 256 0 ) TILES129B [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 0.062 0.062
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"classname" "info_player_start"
|
||||||
|
"origin" "-192 0 0"
|
||||||
|
}
|
BIN
techdemo/data/maps/start.jmf
Normal file
BIN
techdemo/data/maps/start.jmf
Normal file
Binary file not shown.
9
techdemo/data/maps/start.map
Normal file
9
techdemo/data/maps/start.map
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"classname" "worldspawn"
|
||||||
|
"sounds" "1"
|
||||||
|
"worldtype" "0"
|
||||||
|
"origin" "0 0 0"
|
||||||
|
"mapversion" "220"
|
||||||
|
"wad" "c:/program files (x86)/steam/steamapps/common/Quake/Id1/quake.wad;E:/mpfw/gameenv/data/textures/TexturesForAuthoring.wad"
|
||||||
|
"_generator" "J.A.C.K. 1.1.3773 Freeware (vpQuake)"
|
||||||
|
}
|
24
techdemo/data/menus/test.wnd
Normal file
24
techdemo/data/menus/test.wnd
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<!-- Test window for MPFW IMGUI impl -->
|
||||||
|
<window>
|
||||||
|
<title>Test Window</title>
|
||||||
|
<menubar>
|
||||||
|
<menu>
|
||||||
|
<title>File</title>
|
||||||
|
<item>
|
||||||
|
<title>Load Test Map</title>
|
||||||
|
<command mode="1">map "data/maps/testmpfw.bsp"</command>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Quit game</title>
|
||||||
|
<command mode="0">quit</command>
|
||||||
|
</item>
|
||||||
|
</menu>
|
||||||
|
<menu>
|
||||||
|
<title>E1M1</title>
|
||||||
|
<item>
|
||||||
|
<title>Play</title>
|
||||||
|
<command mode="1">map "data/maps/fullquake/e1m1.bsp"</command>
|
||||||
|
</item>
|
||||||
|
</menu>
|
||||||
|
</menubar>
|
||||||
|
</window>
|
24
techdemo/data/menus/test2.wnd
Normal file
24
techdemo/data/menus/test2.wnd
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<!-- Test window for MPFW IMGUI impl -->
|
||||||
|
<window>
|
||||||
|
<title>Test Window 2</title>
|
||||||
|
<menubar>
|
||||||
|
<menu>
|
||||||
|
<title>File</title>
|
||||||
|
<item>
|
||||||
|
<title>Load Test Map</title>
|
||||||
|
<command mode="1">map "data/maps/testmpfw.bsp"</command>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Quit game</title>
|
||||||
|
<command mode="0">quit</command>
|
||||||
|
</item>
|
||||||
|
</menu>
|
||||||
|
<menu>
|
||||||
|
<title>E1M2</title>
|
||||||
|
<item>
|
||||||
|
<title>Play</title>
|
||||||
|
<command mode="1">map "data/maps/fullquake/e1m2.bsp"</command>
|
||||||
|
</item>
|
||||||
|
</menu>
|
||||||
|
</menubar>
|
||||||
|
</window>
|
BIN
techdemo/data/palette.lmp
Normal file
BIN
techdemo/data/palette.lmp
Normal file
Binary file not shown.
0
techdemo/data/shaders/lightmap.glsl
Normal file
0
techdemo/data/shaders/lightmap.glsl
Normal file
3
techdemo/data/sys/collisionparams.xml
Normal file
3
techdemo/data/sys/collisionparams.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<collparam>
|
||||||
|
|
||||||
|
</collparam>
|
8
techdemo/data/sys/cvardefs.cvars
Normal file
8
techdemo/data/sys/cvardefs.cvars
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
math_3d_floor_collision_work true
|
||||||
|
math_3d_collision_work true
|
||||||
|
vid_2d_background false
|
||||||
|
vid_3d_renderer true
|
||||||
|
vid_3d_grid false
|
||||||
|
vid_3d_cull_sky false
|
||||||
|
vid_3d_cull_clips true
|
||||||
|
vid_3d_cull_triggers true
|
Loading…
x
Reference in New Issue
Block a user