# Local storage

**URL:** <https://forum.makecode.com/t/local-storage/29539>\
**Category:** Help\
**Created:** [July 2, 2024, 4:54pm UTC](https://forum.makecode.com/t/local-storage/29539 "2024-07-02T16:54:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ploop](https://avatars.discourse-cdn.com/v4/letter/p/6bbea6/32.png) [@ploop](https://forum.makecode.com/u/ploop)\
**Post date:** [July 2, 2024, 4:54pm UTC](https://forum.makecode.com/t/local-storage/29539/1 "2024-07-02T16:54:44Z")

</div>

Hi there! I’m wondering how others go about saving their game in the background- my character has health/hunger and will hold things in inventory/purchase things…etc - would it be realistic to save every change in the game as it goes on? I’m a web dev so typically we would just save every state change to local storage that you want to have saved on a device but unfamiliar with games saving logic- ideally there wouldn’t only be a “save game” option to keep progress- incase the device dies or what have you- there’s a way to still have progress saved.

---

<div class="post-metadata">

**Author:** ![BloonsFan3](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bloonsfan3/32/16226_2.png) [@BloonsFan3](https://forum.makecode.com/u/BloonsFan3)\
**Post date:** [July 2, 2024, 6:35pm UTC](https://forum.makecode.com/t/local-storage/29539/2 "2024-07-02T18:35:41Z")

</div>

I mean there IS an extension that allows you to make save CODES. Not auto save though. I actually think that would depend on the device, since it would need some sort of clock battery to keep memory, and maybe for devices with a SD slot, maybe just maybe you might be able to write to that. Other than those things, I think its impossible.

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [July 2, 2024, 9:10pm UTC](https://forum.makecode.com/t/local-storage/29539/3 "2024-07-02T21:10:01Z")

</div>

Import the `settings` extension, it’s featured on makecode so just open the Extensions drawer and select it from there!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/2/9/29156dabaf5211971a298c10f4c763e15be9d006.jpeg)

---

<div class="post-metadata">

**Author:** ![BloonsFan3](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bloonsfan3/32/16226_2.png) [@BloonsFan3](https://forum.makecode.com/u/BloonsFan3)\
**Post date:** [July 3, 2024, 5:33pm UTC](https://forum.makecode.com/t/local-storage/29539/4 "2024-07-03T17:33:31Z")

</div>

issue is if its a piece of hardware then it most likely wouldn’t save if it ran out of battery / was shut off since I dont think any makecode hardware has a clock battery. That does work on the website tho

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [July 3, 2024, 8:14pm UTC](https://forum.makecode.com/t/local-storage/29539/5 "2024-07-03T20:14:07Z")

</div>

Hardware has flash storage, which retains storage… you don’t need a clock battery to save data

---

<div class="post-metadata">

**Author:** ![BloonsFan3](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bloonsfan3/32/16226_2.png) [@BloonsFan3](https://forum.makecode.com/u/BloonsFan3)\
**Post date:** [July 3, 2024, 8:17pm UTC](https://forum.makecode.com/t/local-storage/29539/6 "2024-07-03T20:17:01Z")

</div>

Oh, I guess I was thinking too much about the gb pokemon games which use a clock battery to store data.
