• Welcome
Top images in our screenshot gallery:
Become a Beta-Tester
Most recent version is

TheoTown is a city simulation game for Android, iOS and PC. Give it a try...

We have an awesome discord server at discord.gg/theotown. Let's chat together!

• Lua Sandbox
Here you can play around with Lua code. See the Lua API or chatbox for information about what you can do using Lua in TheoTown. For general interest in making plugins, have a look into our getting started guide.

Code: Select all    Reset

local n = 10
local sieve = {}
local primes = Array()

for i = 2, n do
if not sieve[i] then
primes:add(i)
end
for j = i * i, n, i do
sieve[j] = true
end
end

Debug.toast('Hello world! There are '..#primes..' primes in 2 to '..n)
primes:forEach(function(p) Debug.toast(p) end)

Interactive Lua editor

• News

#### Plugin Store Activity in April 2022

Hello everyone, it's time for some Plugin Store statistics!

New Plugins
In total 63 new plugins have been submitted in April 2022. Most of them were contributed by:
1. Naufhal
12 plugins

3 plugins

2 plugins

Top Creators
An incomplete list of our most diligent plugin creators:
By downloads
By published plugins

Top Plugins

1. Tesla Factory
by CERRERA
Downloads: 318,252
Rating: 84% by 1399 ratings
Published: 2021-01-22
Last update: 2021-12-12

2. Diagonal road
by Kartofun
Downloads: 653,533
Rating: 69% by 3587 ratings
Published: 2018-12-15
Last update: 2018-12-15

3. One World Trade Center
by Kevin hung
Downloads: 641,254
Rating: 77% by 2536 ratings
Published: 2018-12-17
Last update: 2018-12-17

4. Big hospital
by anhkatori2
Downloads: 143,039
Rating: 84% by 586 ratings
Published: 2021-07-29
Last update: 2022-04-02

5. Piccadilly Circus
by MONTEMARINO
Downloads: 532,810
Rating: 80% by 1910 ratings
Published: 2019-01-20
Last update: 2020-03-19

6. Waste To Energy Plant
by anhkatori2
Downloads: 127,972
Rating: 84% by 649 ratings
Published: 2021-07-14
Last update: 2022-03-09

7. Allianz Parque Stadium
by Carlão da massa
Downloads: 329,834
Rating: 87% by 897 ratings
Published: 2020-01-15
Last update: 2020-04-19

8. Ferris Wheel
by A dutch Guy
Downloads: 453,211
Rating: 82% by 1441 ratings
Published: 2019-02-13
Last update: 2020-03-02

9. Medical School
by anhkatori2
Downloads: 95,023
Rating: 82% by 382 ratings
Published: 2021-09-01
Last update: 2022-04-09

Views: 582  •  Comments: 0  •  Post a reply

• Recent
•  Recent announcements Recent popular topics Recent topics

• Newest Plugins

#### Texas flag

Finally the Texas flag is in theotown y'all!
TEXAS
est. 1836
Texas.png (615 Bytes) Viewed 69 times
Texas.2.zip
(1.11 KiB) Downloaded 1 time
#JB Team
Attachments
Texas.json
(150 Bytes) Downloaded 1 time
Texas.png (615 Bytes) Viewed 69 times

Views: 69  •  Comments: 1  •  Write comments

#### Small Football Field

Hey, how's it going? Here shown is a football (or soccar) field that can be made from combining 3x3 frames. It can be colored by adding terrains under it. These attributes make the plugin very moduble, arguably more so than the ingame football field. It can be put anywhere, in schools, neighborhoods, parks. So everyone in your community can have a friendly football bout!
Football.zip
(4.75 KiB) Downloaded 9 times

Views: 97  •  Comments: 0  •  Write comments

• Latest news
Replies
Views
Last post

• Who is online?
• In total there are 93 users online :: 6 registered, 0 hidden and 87 guests (based on users active over the past 5 minutes)
Most users ever online was 1548 on 11 Aug 2021, 18:45

•  Menu

•  Top Posters

•  Statistics
• Totals
Total posts 155549
Total topics 11886
Total Announcements: 21
Total Stickies: 50
Total Attachments: 27956

Topics per day: 2
Posts per day: 30
Users per day: 38
Topics per user: 0
Posts per user: 1
Posts per topic: 13

Total members 201334
Our newest member Octavio_ofxd

•  Friends
• Online
No friends online

Offline
No friends offline