# Elemental Devlog and stuff

**URL:** <https://forum.makecode.com/t/elemental-devlog-and-stuff/43712>\
**Category:** Help\
**Tags:** game, demo, art\
**Created:** [April 29, 2026, 3:08am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712 "2026-04-29T03:08:38Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [May 5, 2026, 5:44pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/21 "2026-05-05T17:44:02Z")

</div>

is the code spread across multiple files? if so mobile doesn’t have a file explorer. If not then it’s just being stupid and not importing the code. Either way I’ll have to use a computer which I have limited time on, still could work on it though. I also have this tendency to forget easily. Also can’t work on it at school because of STUPID HOMEWORK. I will still try to solve it, assuming I remember.

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [May 5, 2026, 8:15pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/22 "2026-05-05T20:15:33Z")

</div>

Basically all you need to do is rename that “myImage0” image to something else and your issue will be fixed!

After looking at your code, there are a few tips I would like to mention!  
The first thing to improve are your function and variable names. Please please PLEASE for the sake of anyone trying to read your code in the future, don’t use “a, b, c, d…” as variable names, unless they are in something like a simple For loop. Please use variables that describe themselves so that anyone reading your code can understand them. It is also useful for yourself! When you’re writing code, wouldn’t this:

 ![Screenshot 2026-05-04 at 6.51.02 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/7/677994d3f228bf4f3c2a3ef71654ae0fd514580e.png)  
be better than this:  
 ![Screenshot 2026-05-04 at 6.51.16 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/3/d/3df0d5e893e061d96e5ff41bfff37faa313189bd.png)  
I sure think so. It also lets you conveniently see what each variable means when you’re writing!  
 ![Screenshot 2026-05-04 at 6.59.53 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/5/3/53e5728e2acfd450e46bb675c2f3d37c826a5b01.png)  
It works the same for functions too! That “doSomething” function with 8 single-letter inputs could be renamed to something like “generateSpriteImage” with inputs like “damage”, “defense”, etc. This would improve the readability of your code by so much, and you wouldn’t have to go all the way back to the function definition to figure out what each variable means later on!

The last thing I saw was that you used the sprite onOverlap function as if it had to be called in an update loop. You only need to call it once and it will run the function you input every time the sprites overlap after you call it once. Calling it multiple times creates more events that will run, meaning every time a sprite overlaps with another sprite that function will be run once for every time you have called the function, so basically you will be causing a ton of lag by calling it hundreds of times in an update loop.

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [May 6, 2026, 1:42am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/23 "2026-05-06T01:42:01Z")

</div>

I’m to lazy to type it all over again and the memory to remember the values is always sitting in my mind

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [May 6, 2026, 5:50pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/24 "2026-05-06T17:50:00Z")

</div>

I could have sworn I named doSmth RenderCard at one point

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [May 6, 2026, 5:50pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/25 "2026-05-06T17:50:03Z")

</div>

it is spread across multiple files

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [May 7, 2026, 1:46am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/26 "2026-05-07T01:46:33Z")

</div>

I’m just saying I used to be horrible with that sort of thing. I tried to understand an old project that I had forgotten about and it took me so much longer than it should have to figure out what was going on. It’s also useful for later if you take any programming classes because your teacher (and me when I’m trying to fix your code!!! 🥺) needs to read your code too!  
Anyways, if it works for you that’s fine, it’s just something to consider.

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [May 7, 2026, 5:26pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/27 "2026-05-07T17:26:06Z")

</div>

yeah I get that sorry I’ll fix it up when I have some downtime

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [May 12, 2026, 11:14pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/28 "2026-05-12T23:14:50Z")

</div>

when i opened it nothing was there. There was like 15 extensions added but absolutely no code, and no other files (other than normal project files like assets.json and main.ts)

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [May 18, 2026, 9:06pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/29 "2026-05-18T21:06:06Z")

</div>

yo voxel could you split this code into functions.ts classes.ts and variables.ts and code.ts  
(edit)

> **[Elemental](https://arcade.makecode.com/72746-96206-55167-09191)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [June 4, 2026, 12:36am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/30 "2026-06-04T00:36:21Z")

</div>

sorry it took so long 😭 😭

😭

> **[Elemental - Sorted](https://arcade.makecode.com/S02969-53438-37453-95039)**
>
> Files:
> main.ts
> 0-kind.ts
> Card.ts
> Enemy.ts
> Mouse.ts

there are 5 files:

1. main.ts
2. 0-kind.ts
3. Card.ts
4. Enemy.ts
5. Mouse.ts

yes i know thats not what you wanted but its more how people sort their files. also, press `ctrl+f` and type VoxelMaster64 because i put some comments in each file. There is also a chance that you’ll have to do `ctrl+f` in every file.

I should also be more active now due to summer!

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [June 4, 2026, 10:19pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/31 "2026-06-04T22:19:28Z")

</div>

yippee progress can begin first I need to make this code more readable

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [August 18, 2026, 2:33am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/32 "2026-08-18T02:33:21Z")

</div>

i Can’t code very well so progress will pick up in September

[Previous page](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712.md?page=1)
