Skip to content

Commit

Permalink
update kaboom version
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel committed Oct 29, 2023
1 parent 1d7a779 commit 64b0f12
Show file tree
Hide file tree
Showing 8 changed files with 220 additions and 438 deletions.
2 changes: 1 addition & 1 deletion docs/Basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ m.chapter("start", () => [
// ...
]);

m.chapter("car1", () => [
m.chapter("chapter1", () => [
// ...
]);
```
Expand Down
194 changes: 1 addition & 193 deletions docs/Type Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,196 +4,4 @@ title: Type Reference
nav-order: 4
---
# Mandarina Type Reference
This is an automatically generated documentation of the types used in Mandarina. See it in [GitHub](https://github.com/lajbel/mandarina/wiki/Types)

# Methods

# Types
## `LayerPlugin`:

## `VisualAlign`: left | right | center | truecenter | trueleft | trueright

## `TextboxComp`:

## `Textbox`: undefined

## `TextboxOpt`
### `sprite?`: string

### `pos?`: undefined

### `offset?`: undefined

### `width?`: number

### `height?`: number

### `textAlign?`: left | center | right

### `textSize?`: number

### `textFont?`: string

### `textColor?`: string

### `textOffset?`: undefined

### `textWidth?`: number

## `ChoiceOpt`
### `sprite?`: string

### `pos?`: undefined

### `offset?`: undefined

### `width?`: number

### `height?`: number

### `textAlign?`: left | center | right

### `textSize?`: number

### `textFont?`: string

### `textColor?`: string

### `textOffset?`: undefined

## `mandarina`: MandarinaPlugin

## `UnionToIntersection`: undefined

## `KaboomPlugins`: LayerPlugin

## `TextOptions`
### `textAlign?`: left | center | right

### `textSize?`: number

### `textFont?`: string

### `textColor?`: string

### `textOffset?`: undefined

### `textWidth?`: number

## `GameData`
### `k`: undefined

### `m`: MandarinaPlugin

### `actionStack`: undefined

### `opt`: MandarinaOpt

### `chapters`: Map

### `characters`: Map

### `currentAction`: number

### `processingAction`: boolean

### `playingAudios`: Map

### `loadedImages`: Map

### `variables`: Record

### `isProcessingAction`: boolean

## `Inputs`: pc | gamepad

## `GameActions`: next | screenshoot

## `GameInputs`
## `MandarinaPlugin`
### `k`: undefined

### `_textbox?`: Textbox

### `loadImage`: undefined

### `loadAudio`: undefined

### `getMandarinaContext`: MandarinaPlugin

### `character`: undefined

### `chapter`: undefined

### `start`: undefined

### `setVar`: undefined

### `setPronoun`: undefined

### `getVar`: T

### `jump`: NormalAction

### `say`: NormalAction
### `say`: NormalAction

### `show`: VisualAction

### `input`: NormalAction

### `hide`: NormalAction

### `showBackground`: VisualAction
### `showBackground`: VisualAction
### `showBackground`: VisualAction

### `playAudio`: AudioAction

### `showTextbox`: NormalAction

### `hideTextbox`: NormalAction

### `choice`: NormalAction

## `MandarinaOpt`
### `textbox?`: TextboxOpt

### `choice?`: ChoiceOpt

### `writeVel?`: number

### `writeCommaWait?`: number

### `language?`: english | spanish

### `inputs?`: GameInputs

## `LoadImageOpt`
### `scale?`: number

## `SpriteData`: undefined

## `ActionType`: normal | visual | audio

## `BaseAction`:

## `NormalAction`:

## `VisualAction`:

## `AudioAction`:

## `Action`: undefined

## `CharacterData`
### `id`: string

### `opt?`: CharacterDataOpt

## `CharacterDataOpt`
### `expressions?`: Record

### `color?`: string

### `voice?`: string
This is an automatically generated documentation of the types used in Mandarina. See it in [GitHub](https://github.com/lajbel/mandarina/wiki/Types)
2 changes: 2 additions & 0 deletions example/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import mandarina from "../";
const m = mandarina({
width: 960,
height: 540,
letterbox: true,
stretch: true,
textbox: {
sprite: "textbox",
offset: [ 0, 4 ],
Expand Down
Loading

0 comments on commit 64b0f12

Please sign in to comment.