게임 만들기

FunnableStorage

LocalStorage helper that auto-namespaces keys per game id. Great for persisting cosmetics, tutorial progress, etc., without collisions when multiple Funnable games share the same domain.

FunnableStorage

LocalStorage helper that auto-namespaces keys per game id. Great for persisting cosmetics, tutorial progress, etc., without collisions when multiple Funnable games share the same domain.

Members

get

get<T = unknown>(key: string): T | null

Reads and deserializes a JSON value. Falls back to the raw string.

set

set(key: string, value: unknown): void

Stores a JSON-serializable value.

remove

remove(key: string): void

Removes a single key scoped to the current game.

clear

clear(): void

Clears every key created by this helper.