Fish Engine

Projeto e backup

Project and backup

Um projeto é uma pasta comum dentro de /storage/emulated/0/Fish. Você pode copiá-la para outro aparelho ou para o computador com qualquer gerenciador de arquivos.

A project is a plain folder inside /storage/emulated/0/Fish. You can copy it to another device or to your computer with any file manager.

Estrutura

Structure

/storage/emulated/0/Fish/meujogo/
├── project.lua        # cena, objetos, tamanho do mundo
├── scripts/
│   └── heroi.lua      # script de cada objeto
├── images/
│   └── heroi.png
├── sounds/
│   └── moeda.wav
└── save.json          # progresso gravado por salvar_jogo()

Salvar x Backup

Save vs Backup

AçãoActionO que fazWhat it does
SalvarGrava o projeto na pasta Fish (sobrescreve).Writes the project into the Fish folder (overwrites).
BackupGera o arquivo <nome>.fish (um texto com toda a cena, scripts e lista de arquivos) para guardar ou enviar.Creates the <name>.fish file (a text bundle with the whole scene, scripts and file list) to keep or send.
O .fish guarda a estrutura do projeto, não as imagens e sons em si. Ao restaurar em outro aparelho, tenha as mesmas imagens/sons na pasta do projeto.
The .fish stores the project structure, not the images and sounds themselves. When restoring on another device, keep the same images/sounds in the project folder.

Restaurar

Restore

  1. Na tela de Projetos, toque em Restaurar.
  2. Escolha um arquivo .fish.
  3. O projeto é recriado na pasta Fish. Abra e ajuste os caminhos de imagem/som se necessário.
  1. On the Projects screen, tap Restore.
  2. Pick a .fish file.
  3. The project is recreated in the Fish folder. Open it and fix image/sound paths if needed.

Progresso do jogador

Player progress

As funções salvar_jogo() e carregar_jogo() (bloco Jogo) gravam e leem save.json com as variáveis e posições. É diferente do "Salvar" do editor, que grava a cena.

The salvar_jogo() and carregar_jogo() functions (Game block) write and read save.json with variables and positions. That is different from the editor's "Save", which writes the scene.

Tirado do navegador

Removed from the browser

Versões antigas guardavam o projeto no navegador (localStorage). Isso foi removido: agora só existe a pasta Fish, no APK. Assim seus arquivos ficam visíveis e copiáveis, em vez de presos dentro do app.

Older versions kept the project in the browser (localStorage). That has been removed: now only the Fish folder exists, in the APK. This way your files are visible and copyable instead of trapped inside the app.