Skip to content

Commit

Permalink
Merge pull request #49 from usburu/feat/thermite
Browse files Browse the repository at this point in the history
Thermite hack
  • Loading branch information
MaximilianAdF committed May 8, 2024
2 parents 811f282 + fa43103 commit dbd8757
Show file tree
Hide file tree
Showing 17 changed files with 2,874 additions and 65 deletions.
22 changes: 18 additions & 4 deletions app/components/NPHackContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ interface NPHackContainerProps {
setStatus: (status: number) => void,
statusMessage: string,
settings?: NPHackContainerSettings,
score?: number,
targetScore?: number,

// props: {[key: string]: any},
className?: string,
Expand All @@ -51,6 +53,8 @@ const NPHackContainer: FC<NPHackContainerProps> = ({
setStatus,
statusMessage,
settings,
score,
targetScore,
...props
}) => {
// This can be decreased if you need to call a func every frame
Expand Down Expand Up @@ -125,9 +129,9 @@ const NPHackContainer: FC<NPHackContainerProps> = ({
">
{/* Header */}
<div className="
mb-5
h-10
flex justify-between items-center
grid
grid-cols-[auto_min-content]
mb-4
">
<div className="
flex items-center
Expand All @@ -149,7 +153,7 @@ const NPHackContainer: FC<NPHackContainerProps> = ({
{description}
</p>
</div>
{settings && <div className="h-full aspect-square justify-center items-center flex p-1">
{settings && <div className="h-full flex aspect-square justify-center items-center p-1 mr-7">
<FontAwesomeIcon
icon={faGear}
className="
Expand All @@ -162,6 +166,16 @@ const NPHackContainer: FC<NPHackContainerProps> = ({
title={"Open Settings"}
/>
</div>}
{targetScore && (
<div className="
col-span-full
text-center
text-white
text-lg
">
{score}/{targetScore}
</div>
)}
</div>
{status !== undefined && <div className={classNames(
`
Expand Down
9 changes: 9 additions & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import Image from "next/image";
import Link from "next/link";

import { thermiteImg } from "@/public/images/puzzles";

const puzzles = [
{
href: "/puzzles/thermite",
img: thermiteImg,
title: "Thermite",
description:
"Replica of the Thermite hack that is triggered when disabling lasers inside the Maze Bank on NoPixel 4.0",
},
{
href: "/puzzles/roof-running",
img: "https://github.com/MaximilianAdF/NoPixel-MiniGames-4.0/assets/63980031/7d94e398-ae40-45d2-ae25-d20fa5a62301",
Expand Down
Loading

0 comments on commit dbd8757

Please sign in to comment.