level-editor thumbnails
Fracas 3 » Devlog
In the level editor, I added add thumbnail previews for every level. Each thumbnail is generated by rendering a level on a tiny canvas, and then calling getDataURL(). That data can be used as an <img> src attribute, and presto, thumbnails! They're a little slow to generate, so to make sure the level editor loads quickly, I cache the thumbnails in localstorage (about 4KB each). Thumbnails are re-snapshotted when the thumbnail timestamp doesn't match the last level-edit timestamp - both timestamps are also in localstorage.
Files
fracas3.zip Play in browser
Mar 09, 2021
Fracas 3
Dash and shoot, in a cave. Haunt your friends.
Status | Released |
Author | aaryte |
Genre | Action |
Tags | 2D, gamepad, Level Editor, Local Co-Op, Local multiplayer, Multiplayer, Short, Singleplayer, Top-Down, Touch-Friendly |
Languages | English |
More posts
- How it startedJan 19, 2024
- Supporting all display frame ratesFeb 23, 2023
- Smart arrows: a bug fix & a design noteFeb 17, 2023
- Fracas 3.1.3Jan 03, 2023
- More new levelsJul 08, 2022
- Blast-radius previews in the editorJul 01, 2022
- Levels & Lasers!Jun 27, 2022
- Fracas 3.1: Caverns & ConflictsJun 11, 2022
- Slight changes to mushrooms and enemiesJul 29, 2021
- Blaster work & level tweaksJul 05, 2021
Leave a comment
Log in with itch.io to leave a comment.