You are browsing as a guest. Sign up (or log in) to start making projects!

Isotope Simulator

  • 2 Devlogs
  • 7 Total hours

This simulator lets users add protons and neutrons to a nucleus, allowing them to create isotopes for various elements.

Open comments for this post

1h 57m 16s logged

Devlog 2

And that’s the project complete!

Making the descriptions for the isotopes was definitely easier than making the atom’s nucleus. I also learned how to actually manipulate text on Godot. In previous projects, I typed out all the text on a different app and exported it as a picture, which I used in Godot. As you can imagine, that’s incredibly inefficient. In this project, though, I just manipulated labels using GDScript and created boxes with color rects. This makes it much easier to change text.

I also used a similar color palette as my atom simulator, and I think it turned out looking pretty good.

0
0
8
Open comments for this post

4h 58m 54s logged

Devlog 1

I’ve just finished the main part of this project: the interactive nucleus. It didn’t come without its headaches, though.

In essence, the way it works is that when you press the up button, it adds a proton to the nucleus at a random position. When you press the down button, it removes the proton. Same thing for neutrons, except you use the right and left buttons, respectively. I wanted the nucleus to be relatively circular while still keeping the random positions for the subatomic particles. Eventually, I figured I could do that by forcing every particle to overlap with two other particles when they were randomly generating a position. However, this led to the particles not instantly showing up after you pressed either the up or right button, so I’ll have to make the algorithm that generates the particles more efficient.

Additionally, many errors arose from pressing the add and remove buttons simultaneously for both of the particles. These were easily fixed in two ways. One was adding the await keyword before the methods in the functions that added and removed the particles. The second was adding booleans that restricted the remove function from being called while a particle was being added. These fixes took me a while to figure out, though.

Moving on, I need to make the whole simulator look a bit better, and I also need to add labels for the number of particles there are and the names of the various isotopes.

0
0
9

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…