# Simple code not working

**URL:** <https://forum.makecode.com/t/simple-code-not-working/44793>\
**Category:** Help\
**Created:** [July 6, 2026, 5:12pm UTC](https://forum.makecode.com/t/simple-code-not-working/44793 "2026-07-06T17:12:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhthaloM](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@PhthaloM](https://forum.makecode.com/u/PhthaloM)\
**Post date:** [July 6, 2026, 5:12pm UTC](https://forum.makecode.com/t/simple-code-not-working/44793/1 "2026-07-06T17:12:40Z")

</div>

* * *

I’m trying to make a single player game similar to the plane mode in War Thunder. So i basically i added simple working code to start my new project but it worked for a little bit displaying like normal but the i added the controller functions, browser events, and the raycasting extensions but then when i added some more blocks it didnt work how i wanted it to so i deleted those new blocks and went back to my original code but then the display screen just went black i also tried reseting it but it just stayed as a black screen

here’s the link

> **[WAR THUNDER](https://arcade.makecode.com/S40712-87703-61881-42544)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![kirbob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kirbob/32/34880_2.png) [@kirbob](https://forum.makecode.com/u/kirbob)\
**Post date:** [July 7, 2026, 2:00am UTC](https://forum.makecode.com/t/simple-code-not-working/44793/2 "2026-07-07T02:00:08Z")

</div>

raycasting doesnt work like that. i fixed it tho [https://arcade.makecode.com/S70125-51517-62925-55073](https://arcade.makecode.com/S70125-51517-62925-55073)
