mirror of
https://github.com/bspeice/speice.io
synced 2025-07-05 07:44:54 -04:00
Code for 2D camera system
This commit is contained in:
20
blog/2024-11-15-playing-with-fire/4-camera/index.mdx
Normal file
20
blog/2024-11-15-playing-with-fire/4-camera/index.mdx
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
slug: 2025/03/playing-with-fire-camera
|
||||
title: "Playing with fire: The camera"
|
||||
date: 2025-03-07 12:00:00
|
||||
authors: [bspeice]
|
||||
tags: []
|
||||
---
|
||||
|
||||
<!-- truncate -->
|
||||
|
||||
import CodeBlock from "@theme/CodeBlock";
|
||||
|
||||
import cameraSource from "!!raw-loader!./camera"
|
||||
|
||||
<CodeBlock language="typescript">{cameraSource}</CodeBlock>
|
||||
|
||||
import {SquareCanvas} from "../src/Canvas";
|
||||
import FlameCamera from "./FlameCamera";
|
||||
|
||||
<SquareCanvas name={"flame_camera"} width={'95%'} aspectRatio={'4/3'}><FlameCamera /></SquareCanvas>
|
Reference in New Issue
Block a user