Skip to content

Commit

Permalink
more line highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
luludotdev committed Feb 1, 2024
1 parent ae52dce commit 4ae1b1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/concepts/inputs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ As with Spawnable Entities, we recommend namespacing input identifiers using a s
define input identifiers in a type-safe way.
</Callout>

```ts filename="TypeScript"
```ts filename="TypeScript" {1-5,13-19}
// Define inputs with a string enum
enum ExampleInput {
MyInput = '@example/my-input',
Expand Down Expand Up @@ -70,7 +70,7 @@ Usually you should use event listeners, unless you want to run code that deals w
Input events are fired when the input `pressed` state changes, and this state is passed in to event handlers as a boolean argument.
Make sure you only respond to the event for one state or your code will execute twice, once when the input is pressed and once when gets released.

```ts filename="TypeScript"
```ts filename="TypeScript" {6,8-14,16-20}
// ... clipped

init({ game }) {
Expand Down Expand Up @@ -101,7 +101,7 @@ init({ game }) {

### Tick Based

```ts filename="TypeScript"
```ts filename="TypeScript" {6-7,9-10}
// ... clipped

function onPhysicsStep({ time, delta }, { game }) {
Expand Down

0 comments on commit 4ae1b1f

Please sign in to comment.