# Elemental Devlog and stuff

**URL:** https://forum.makecode.com/t/elemental-devlog-and-stuff/43712
**Category:** Help
**Tags:** art, game, demo
**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:** 20
**Page:** 1

<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: [April 29, 2026, 3:08am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/1 "2026-04-29T03:08:38Z")

</div>

🔥  
🌍  
💧  
⚡  
This game has been in development for over 3 month and I’m finally going to make a devlog for this (and start making REAL progress).  
The game link is here  
[Elemental](https://notarealaccsorry.github.io/Elemental/)

---

<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: [April 29, 2026, 5:24pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/2 "2026-04-29T17:24:06Z")

</div>

can you explain how it works and controls and stuff?

---

<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: [April 29, 2026, 11:26pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/3 "2026-04-29T23:26:43Z")

</div>

click a card

---

<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 1, 2026, 7:44pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/4 "2026-05-01T19:44:06Z")

</div>

@WoofWoof I am wondering why the function for create enemy when called doesn’t give me an enemy sprite

---

<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 2, 2026, 3:55am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/5 "2026-05-02T03:55:09Z")

</div>

@woofWoof and @richard I have a question why is my code causing 13 errors when I seperate the code into multiple ts files like such  
heres a file to import to replicate the bugs

 ![arcade-Elemental](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/4/84c3832c1c593d243dd39738d5b97f63b9813643.png)

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [May 2, 2026, 3:56am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/6 "2026-05-02T03:56:43Z")

</div>

When a project is split into multiple files, they are loaded in alphabetical order (with the exception of `main.ts`, which is always loaded last).

Make sure that classes and variables are declared before they are used.

---

<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 2, 2026, 4:00am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/7 "2026-05-02T04:00:56Z")

</div>

I’m not seeing any create enemy function in your code. Have you committed recently? Cause all I see in the main.ts file is like 30 lines of code, most of which is an image of the cursor.  
(later…)  
Oh I see in the dif that you recently deleted a bunch of code. Did you mean to do that?

---

<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 2, 2026, 6:56pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/8 "2026-05-02T18:56:03Z")

</div>

I think your can edit pxt.json to change that, but it’s better to stick with an init function because it’s safer (if you don’t know what they are I can attempt to show you)

---

<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 2, 2026, 7:01pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/9 "2026-05-02T19:01:49Z")

</div>

yes and thanks Alexk they were put after

---

<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 3, 2026, 12:41am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/10 "2026-05-03T00:41:07Z")

</div>

ok I think I ordered them correctly but now nothing loads and the project is blank

 ![arcade-Elemental (2)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/b/1/b10c4c6c337357a4a860431c102104abfcffd810.png)

---

<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 3, 2026, 3:03am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/11 "2026-05-03T03:03:08Z")

</div>

assuming you changed pxt.json, if you edit it again do you see the original changes?

---

<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 3, 2026, 3:12am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/12 "2026-05-03T03:12:12Z")

</div>

@WoofWoof and @AlexK you guys have an idea why

---

<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 3, 2026, 5:04am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/13 "2026-05-03T05:04:41Z")

</div>

I never edited pxt.json as far as I remember in this version

---

<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 3, 2026, 5:05am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/14 "2026-05-03T05:05:21Z")

</div>

I’ll look at it in the morning when it isn’t 11:15 PM for me. Goodnight!

---

<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 3, 2026, 4:18pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/15 "2026-05-03T16:18:46Z")

</div>

ok thanks

---

<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 4, 2026, 4:42pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/16 "2026-05-04T16:42:32Z")

</div>

Yeah so I have no idea what’s happening here. How exactly are you making new files/moving code around? I would recommend for now just reverting to a previous version that works using GitHub, if such a version exists.

---

<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 4, 2026, 7:13pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/17 "2026-05-04T19:13:38Z")

</div>

Ok I imported it from the first github link you sent and it seems to be working and I see a createEnemy function, so I can finally start helping! Woohoo!

---

<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 4, 2026, 11:56pm UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/18 "2026-05-04T23:56:10Z")

</div>

Ok for some reason the image “myImage0” is just completely blank, even though it is obviously not completely blank according to the assets tab. You can see that if I fix it by making it a different style of image, being in the code instead of the assets tab, it works just fine:

 ![Screenshot 2026-05-04 at 6.12.42 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/5/a/5a72023f4149eafaac63e64ef70788f1a4b47b04.png)  
You can make this style of image by just writing "`img`.` `" and then clicking on the little image editor button that pops up to the left of the line.

@richard this is a very odd bug. I actually did fix the image by renaming it to “myImage00” and then when I tried to turn it back to “myImage0” it gave me this error:

 ![Screenshot 2026-05-04 at 6.18.02 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/2/9/29036dacc09baae6084d13769aa7ff6458d968b8.png)  
It turns out that @Sarge’s BetterArrays extension uses this image name in its code (probably a test image, I didn’t look into it) but for some reason the assets editor allowed the name to be used, which it shouldn’t do. This BetterArrays image happened to be all black, so the enemy was invisible when spawned.

---

<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 5, 2026, 2:59am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/19 "2026-05-05T02:59:30Z")

</div>

yo I’m confused but could you upload the fixed version this code stuff is weird man

---

<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 5, 2026, 2:59am UTC](https://forum.makecode.com/t/elemental-devlog-and-stuff/43712/20 "2026-05-05T02:59:39Z")

</div>

@VoxelMaster64 Could you help debug this version nothing loads even though the function drawHand is called in the zCode.ts

 ![arcade-Elemental (2)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/b/1/b10c4c6c337357a4a860431c102104abfcffd810.png)

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