Skip to content

Commit

Permalink
factor out under construction notice
Browse files Browse the repository at this point in the history
  • Loading branch information
luludotdev committed Jan 29, 2024
1 parent cfbd094 commit 0acf77b
Show file tree
Hide file tree
Showing 18 changed files with 39 additions and 29 deletions.
5 changes: 5 additions & 0 deletions components/under-construction.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Callout } from 'nextra/components'

export const UnderConstruction = () => (
<Callout type='info'>This page is under construction.</Callout>
)
4 changes: 2 additions & 2 deletions pages/asset-creator/characters.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Characters

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />

Dreamlab's character generator is used to create animated sprites.

Expand Down
4 changes: 2 additions & 2 deletions pages/asset-creator/platforms.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Platforms

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />

Our asset creator has a mode specifically for generating side-view 2D platforms.
4 changes: 2 additions & 2 deletions pages/asset-creator/props.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Props

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />

Props are items that characters can hold in their hand.

Expand Down
4 changes: 2 additions & 2 deletions pages/asset-creator/scenery.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Create From A Sketch

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />
4 changes: 2 additions & 2 deletions pages/concepts/animated-sprites.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Animated Sprites

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />

Animated sprites are a sequence of frames that can be displayed by entities. Sprites for players can be created using our [character asset generator](../asset-creator/characters.mdx).
3 changes: 2 additions & 1 deletion pages/concepts/entities.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Entities

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />

In Dreamlab, an entity is a distinct object that can be created, updated, or destroyed.
They can respond to events such as physics ticks or network packets and run logic in the game world.
Expand Down
3 changes: 2 additions & 1 deletion pages/concepts/graphics.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Graphics

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />

<Callout>
Dreamlab uses [Pixi.js](https://pixijs.com/) for its graphics rendering.
Expand Down
3 changes: 2 additions & 1 deletion pages/concepts/inputs.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Inputs

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />

{/* TODO: Word this better */}
Dreamlab offers a flexible system for responding to player input, providing a simple way to listen to incoming input events and
Expand Down
4 changes: 2 additions & 2 deletions pages/concepts/key-value.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Saving Data

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />

Key/value storage for your game makes it easy to persist data about players and the game world.

Expand Down
4 changes: 2 additions & 2 deletions pages/concepts/multiplayer.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Multiplayer

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />

Script the client and server in one codebase with Dreamlab. Since everything is JavaScript, our runtime can seamlessly deploys your code to browsers and simultaneously start a server to host the game.

Expand Down
3 changes: 2 additions & 1 deletion pages/concepts/physics.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Physics

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />

<Callout>
Dreamlab uses [Matter.js](https://brm.io/matter-js/docs/) under the hood for
Expand Down
3 changes: 2 additions & 1 deletion pages/concepts/scripting.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Scripting

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />

## TypeScript

Expand Down
4 changes: 2 additions & 2 deletions pages/concepts/ui.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# User Interfaces

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />

Dreamlab allows you to create a UI layer on top of the game window using web technologies. You can use familiar DOM manipulation
to create and update your UI.
Expand Down
4 changes: 2 additions & 2 deletions pages/extra/common-patterns.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Common Patterns

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />

- wait for player
- styled components
Expand Down
4 changes: 2 additions & 2 deletions pages/tutorial/01-start.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Get Started

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />
4 changes: 2 additions & 2 deletions pages/tutorial/02-modify-entity.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Modify an Entity

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />
4 changes: 2 additions & 2 deletions pages/tutorial/03-grapple-hook.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Callout } from 'nextra/components'
import { UnderConstruction } from '~/components/under-construction'

# Add a Grappling Hook!

<Callout type='info'>This page is under construction.</Callout>
<UnderConstruction />

0 comments on commit 0acf77b

Please sign in to comment.