Skip to content

Commit

Permalink
feat: 3d racing game (#400)
Browse files Browse the repository at this point in the history
~~I didn't have time to make levels and a main menu.... I'll do this as
volunteer hours next week if I have time!~~

Done!
  • Loading branch information
arimulligan authored Dec 13, 2024
1 parent 128a939 commit 1031f46
Show file tree
Hide file tree
Showing 61 changed files with 1,217 additions and 530 deletions.
11 changes: 4 additions & 7 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ export default defineConfig({
label: "Godot", items: [{
label: "Godot Basics",
link: "game-design/godot/basics"
},{
label: "2D Platformer",
link: "game-design/godot/2dplatformergame"
},{
label: "2D Racing Game",
link: "game-design/godot/2dracinggame"
},{
label: "Universal Features",
link: "game-design/godot/universal"
Expand All @@ -98,7 +92,10 @@ export default defineConfig({
},{
label: "Setting up C# For Godot",
link: "game-design/godot/projectsetup"
}],
},{
label: "3D Racing Game",
link: "game-design/godot/3dracinggame/0-main-scene/"
}],
collapsed: true
}],
},
Expand Down
Binary file removed src/assets/godot/2DPlatformer/screenshot1.png
Binary file not shown.
Binary file removed src/assets/godot/2DPlatformer/screenshot10.png
Binary file not shown.
Binary file removed src/assets/godot/2DPlatformer/screenshot11.png
Binary file not shown.
Binary file removed src/assets/godot/2DPlatformer/screenshot12.png
Binary file not shown.
Binary file removed src/assets/godot/2DPlatformer/screenshot2.png
Binary file not shown.
Binary file removed src/assets/godot/2DPlatformer/screenshot3.png
Binary file not shown.
Binary file removed src/assets/godot/2DPlatformer/screenshot4.png
Binary file not shown.
Binary file removed src/assets/godot/2DPlatformer/screenshot5.png
Binary file not shown.
Binary file removed src/assets/godot/2DPlatformer/screenshot6.png
Binary file not shown.
Binary file removed src/assets/godot/2DPlatformer/screenshot7.png
Binary file not shown.
Binary file removed src/assets/godot/2DPlatformer/screenshot8.png
Binary file not shown.
Binary file removed src/assets/godot/2DPlatformer/screenshot9.png
Binary file not shown.
Binary file removed src/assets/godot/2DRacing/image1.png
Binary file not shown.
Binary file removed src/assets/godot/2DRacing/image2.png
Binary file not shown.
Binary file removed src/assets/godot/2DRacing/image3.png
Binary file not shown.
Binary file removed src/assets/godot/2DRacing/image4.png
Binary file not shown.
Binary file removed src/assets/godot/2DRacing/image5.png
Binary file not shown.
Binary file removed src/assets/godot/2DRacing/image6.png
Binary file not shown.
Binary file added src/assets/godot/3DRacing/HUDFileStructure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/godot/3DRacing/Path3DControls.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/godot/3DRacing/VehicleBodySimple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/godot/3DRacing/addingPizzazzToCar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/godot/3DRacing/area3dFinishLine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/godot/3DRacing/boostGameRunning.png
Binary file added src/assets/godot/3DRacing/curvedPath3D.png
Binary file added src/assets/godot/3DRacing/endResultPreview.png
Binary file added src/assets/godot/3DRacing/finishLine.png
Binary file added src/assets/godot/3DRacing/levelsMenuScreen.png
Binary file added src/assets/godot/3DRacing/newTrack.png
Binary file added src/assets/godot/3DRacing/pathMeasurements.png
Binary file added src/assets/godot/3DRacing/pauseMenuHUD.png
Binary file added src/assets/godot/3DRacing/tiltButton.png
Binary file added src/assets/godot/3DRacing/titleScreen.png
Binary file added src/assets/godot/3DRacing/track1fileStructure.png
Binary file added src/assets/godot/3DRacing/trackPathResult.png
2 changes: 1 addition & 1 deletion src/components/starlight/MobileTableOfContents.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const { toc } = Astro.props;
</summary>
<div class="dropdown">
{isTutorial ? (
<TutorialNav id="mobile" />
<TutorialNav {...Astro.props} mobile={true} />
) : (
<TableOfContentsList toc={toc.items} isMobile />
)}
Expand Down
4 changes: 2 additions & 2 deletions src/components/tutorial/TutorialNav.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import Progress from './Progress.astro';
import UnitProgressIcon from './UnitProgressIcon.astro';
const currentUrl = Astro.url.pathname.replace(/\/$/, '');
const { id } = Astro.props;
const { id, mobile } = Astro.props;
export const allPages = await getCollection('docs');
const pages = allPages.filter((page) => isTutorialEntry(page, id));
const tutorialPages = getTutorialPages(pages);
const units = getTutorialUnits(tutorialPages);
const makeUnitId = (index: number) => `${Astro.props.id}__tutorial-unit-nav-panel-${index}`;
const makeUnitId = (index: number) => `${mobile ? "mobile" : ""}__tutorial-unit-nav-panel-${index}`;
const isCurrentUnit = (unit: (typeof units)[number]) =>
unit.lessons.some((lesson) => currentUrl.endsWith(lesson.slug));
---
Expand Down
Loading

0 comments on commit 1031f46

Please sign in to comment.