Compare commits
No commits in common. "f73355365211eee69dbd0c0f511a5e0900f2c89d" and "a6aba677aafc53a9d1fde158fca9f8750a963938" have entirely different histories.
f733553652
...
a6aba677aa
@ -1,26 +1,5 @@
|
|||||||
currentPage = 1
|
currentPage = 1
|
||||||
|
|
||||||
function game_over()
|
|
||||||
minetest.show_formspec("poop:game_over", "size[8,8]label[0,0;Game Over!]")
|
|
||||||
end
|
|
||||||
|
|
||||||
function you_win(player)
|
|
||||||
-- teleport player to 0,0,0
|
|
||||||
player:setpos({x=0, y=0, z=0})
|
|
||||||
thanks = "Thanks for playing Shitting Simulator! We had a lot of fun making this game, and we hope you enjoyed it too! Thanks again!"
|
|
||||||
storyFormspec =
|
|
||||||
{
|
|
||||||
"formspec_version[4]",
|
|
||||||
"size[18, 16]",
|
|
||||||
"bgcolor[brown]",
|
|
||||||
"position[0.5, 0.5]",
|
|
||||||
"style_type[button;bgcolor=yellow;textcolor=green]",
|
|
||||||
"hypertext[1, 12.5; 12, 5;;<global halign=center color=black size=20 font=Regular>" .. thanks .. "]\n",
|
|
||||||
"button[13, 14.9; 4, 1;exit;Quit]"
|
|
||||||
}
|
|
||||||
minetest.show_formspec(player:get_player_name(), "poop:story", table.concat(storyFormspec, ""))
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_item(":", { -- Hand
|
minetest.register_item(":", { -- Hand
|
||||||
type = "none",
|
type = "none",
|
||||||
wield_image = "Poop.png",
|
wield_image = "Poop.png",
|
||||||
@ -379,7 +358,7 @@ minetest.register_craftitem("poop:plumba", {
|
|||||||
end
|
end
|
||||||
if pooped_things >= 100 then
|
if pooped_things >= 100 then
|
||||||
is_game_finished = true
|
is_game_finished = true
|
||||||
you_win(user)
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
-- get node at pointed thing position
|
-- get node at pointed thing position
|
||||||
|
Loading…
x
Reference in New Issue
Block a user