Boyana 2 years ago
commit ff23b1b147

@ -1,40 +1,191 @@
<DOCTYPE html>
<html> <html>
<head> <head>
<title></title>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="../static/game-style.css"> <title>peace</title>
<link rel="stylesheet" type="text/css" href="style.css"> <style>
<meta http-equiv="Cross-Origin-Embedder-Policy" content="require-corp"> body{
<meta http-equiv="Cross-Origin-Opener-Policy" content="same-origin"> font-family:monospace;
<script type="text/javascript" src="../static/brython.min.js"> }
</script>
<script type="text/javascript" src="../static/brython_stdlib.js"> </style>
</script>
<script>
if (!crossOriginIsolated) SharedArrayBuffer = ArrayBuffer;
</script>
</head> </head>
<body onload="brython()"> <body>
<script type="text/python"> <pre>
from browser import self as _self, bind, console from time import sleep
# implementation of blocking time.sleep() import sys
def delayPrint(s):
for c in s:
sys.stdout.write(c)
sys.stdout.flush()
sleep(0.08)
print("\n")
sys.stdout.write(">")
return " "
def delayPrintless(s):
for c in s:
sys.stdout.write(c)
sys.stdout.flush()
sleep(0.001)
print("\n")
sys.stdout.write(">")
return " "
welcome_message = """
Dear friend,
Welcome to Cardboard Lamb's Game..."""
welcome_message2 = """
((
\\``.
\_`.``-.
( `.`.` `._
`._`-. `._
\`--. ,' `.
`--._ `. .`. aaaa
`--.--- `. ` `. squaaaaa
`.-- `; .`._
:- : ;. `.__,.,__ __
`\ : ,-( ';o`>.
`-.`: ,' `._ .: (,-`,
\ ; ;. ,:
,"`-._>-: ;,' `---.,---.
`>'" "-` ,' "":::::".. `-.
`;"'_, (\`\ _ `:::::::::::'" `---.
`-(_,' -'),)\`. _ .::::"' `----._,-"")
\_,': `.-' `-----' `--;-. `. ``.`--.____/
`-^--' \(-. `.``-.`-=:-.__)
squaaaa ` `.`.`._`.-._`--.)
aaa `-^---^--.`-- """
welcome_message3 = """
Do you feel peaceful? If not, then grab a cup of tea.
Are you prepared to escape into your imagination?
This game works by slowing down your pace and reconnecting you to your senses.
I will give you prompts little written daydreams to imagine yourself in.
Please only move forward when you are ready.
If you are ready now, tell me "yes."
"""
#----------------------------------------------------------#
### start of the game. this is a mindfulness game. ###
print(delayPrint(welcome_message))
print(delayPrintless(welcome_message2))
print(delayPrint(welcome_message3))
#step one#
reply = input()
if "yes" in reply:
print(delayPrint("""
I am so happy to hear that you are at peace.
Let's start imagining landscapes."""))
elif "ready" in reply:
print(delayPrint("""
I am so happy to hear that you are at peace.
Let's start imagining landscapes."""))
else:
print(delayPrint("""
You are not ready to play my game.
Please close your eyes and take a deep breath.
If you need some help, try searching for this URL.
https://www.youtube.com/watch?v=TTHF2Dfw1Dg.
Please listen until you are ready..."""))
#Questions - how would i go back a step#
#can you hyperlink inside of a python code?#
#is there a way to always make it go back to step 1, like a return to homebase scenario#
#could not figure out how to add a break after else. where does it go.#
def sleep(secs): #step two#
sab = _self.SharedArrayBuffer.new(128 * _self.Int32Array.BYTES_PER_ELEMENT)
buffer = _self.Int32Array.new(sab)
_self.Atomics.store(buffer, 0, -1)
_self.send({'status': 'sleep', 'seconds': secs, 'buffer': sab})
# block until main program resets buffer[0] to 1
_self.Atomics.wait(buffer, 0, -1)
print(delayPrint("""
We are going to imagine our first daydream.
If at any point, you feel like you are ready to return back to whatever you were doing,
just type in
I am now at peace...
sleep(1) If you are not ready to return, type in
print("hello world") Let's go...
sleep(3) """))
print("hello world") #how do i actually make it so that if someone types peace at any point, it stops#
</script> #message = "What do you want to do?"#
#print(message)#
#reply = input()#
while True:
reply = input()
if "go" in reply:
print(delayPrint("""
You are lying down in a lavender field."""))
print(delayPrintless("""
,,, ,,,
{{{}} ,,, {{{}} ,,,
,,, ~Y~ {{{}},,, ,,, ~Y~ {{{}},,,
{{}}} |/,,, ~Y~{{}}} {{}}} |/,,, ~Y~{{}}}
~Y~ \|{{}}}/\|/ ~Y~ ,,, ~Y~ \|{{}}}/\|/ ~Y~ ,,,
\|/ \|/~Y~ \|,,,|/ {{}}}\|/ \|/~Y~ \|,,,|/ {{}}}
\|/ \|/\|/ \{{{}}/ ~Y~ \|/ \|/\|/ \{{{}}/ ~Y~
\|/\\|/\|/ \\|~Y~// \|/ \|/\\|/\|/ \\|~Y~// \|/
\|//\|/\|/,\\|/|/|// \|/ \|//\|/\|/,\\|/|/|// \|/
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"""))
print(delayPrint("""
The field has not been harvested yet.
The ground is soft and warm. It has been baked by the sun."""))
print(delayPrintless("""
; : ;
. \_,!,_/ ,
`.,' `.,'
/ \
~ -- : : -- ~
\ /
,'`._ _.'`.
' / `!` \ `
: ;
"""))
print(delayPrint("""
You are wearing thin cotton. Can you feel the warm ground through the layer?
Can you feel the warmth of the sun on your face?
The smell of lavender and warm soil is thick in the air.
The flowers are so full.
When you just touch them,
it feels like they burst with beads of lavender oil.
Their nectar is sweet.
The air is clear.
The sky is blue.
There are no clouds.
There is only sun and peace and lavender.
Would you like to explore another daydream?"""
))
elif "now" in reply:
break
elif "peace" in reply:
break
</pre>
</body> </body>
</html> </html>

@ -271,3 +271,38 @@ Was there a time in your life when you had a lack of freedom?
What would it be like to live where there is little freedom of choice? What would it be like to live where there is little freedom of choice?
Can freedom damage a country? Can freedom damage a country?
What does freedom feel like to you? What does freedom feel like to you?
Where do you go to be calm?
Isnt there someone you need to call?
What would you say to yourself as a child?
What would you say to yourself five years ago?
Are you still having fun?
What kind of person took this picture?
What do you think will happen next?
Have you been here before?
Can you picture yourself in this photo?
Remember that time when we?
Is it time to let it go?
Is it time to change?
Can you go back? Do you even want to?
What?
Who are you now that the dust had settled?
What would you do for yourself as a child to change what happened?
How low can you go?
What the?
When will you learn? When will you learn that your actions have consequences?
What new thing have you learnt today?
Does this picture teach you anything new?
When was the last time you did something for yourself?
What can you do today to show you value yourself?
What can you do today to show you value a friend?
What colour is your underwear today?
Is there someone you need to text?
What is the best present you have ever been given?
What is the best present you've ever given someone?
When was the last time you said thank you and really meant it?
When's the last time you were proud of yourself?
When's the last time you didn't give a shit and just went for it?
When was the last time you played with yourself?
How long has it been?
Who will you be next?
Where are you going?

@ -0,0 +1,168 @@
<html>
<head>
<meta charset="utf-8">
<title>peace</title>
<style>
body{
font-family:monospace;
}
</style>
</head>
<body>
<pre>
import os , time , random
# Setting up the current (saved) state
currentRoom = "base-ment"
start = True
graduation = False
study = 0
items = {
"base-ment": ["unpaidlabor", "consiousness", "lackoftime", "dipression", "commodities", "collectivememory", "laborforce", "survivalmode"],
"apparatus": ["game", "work", "symbols", "family", "church", "institutionalmemory", "army", "ideology"],
"megaroom": ["hegemony", "control", "power", "violence", "accumulationofwealth", "property", "mostlywhiterichmen"]
}
inventory = []
# Seperating the text and printing in delay so the content on the screen is readable and easy to comprehend
def printer (text):
for t in text:
print(t, end = "", flush= True)
time.sleep(random.choice([0.0001, 0.005, 0.007]))
print()
# Defining the "taker" function and setting it up in each of the three rooms below
def taker(room):
if any(x in spliti for x in ["get", "grab", "take", "carry", "steal", "expropriate"]):
for item in items[room]:
if item in spliti:
printer("You took " + item)
inventory.append(item)
items[room].remove(item)
# Creating the while-loop
while True:
if (start == True):
printer("""
Super(de)construction: The game
__ __ __
/\ \ /\ \__ /\ \__ __
____ __ __ _____ __ _ __ \_\ \ __ ___ ___ ___ ____\ \ ,_\ _ __ __ __ ___\ \ ,_\/\_\ ___ ___
/',__\/\ \/\ \/\ '__`\ /'__`\/\`'__\/'_` \ /'__`\ /'___\ / __`\ /' _ `\ /',__\\ \ \/ /\`'__\/\ \/\ \ /'___\ \ \/\/\ \ / __`\ /' _ `\
/\__, `\ \ \_\ \ \ \L\ \/\ __/\ \ \//\ \L\ \/\ __//\ \__//\ \L\ \/\ \/\ \/\__, `\\ \ \_\ \ \/ \ \ \_\ \/\ \__/\ \ \_\ \ \/\ \L\ \/\ \/\ \
\/\____/\ \____/\ \ ,__/\ \____\\ \_\\ \___,_\ \____\ \____\ \____/\ \_\ \_\/\____/ \ \__\\ \_\ \ \____/\ \____\\ \__\\ \_\ \____/\ \_\ \_\
\/___/ \/___/ \ \ \/ \/____/ \/_/ \/__,_ /\/____/\/____/\/___/ \/_/\/_/\/___/ \/__/ \/_/ \/___/ \/____/ \/__/ \/_/\/___/ \/_/\/_/
\ \_\
\/_/
""")
printer("""
Welcome to the super(de)costruction game or How to destroy the ideological apparatus and capitalism in small steps.
You are a witch in the body of a cultural worker leaving in the poor south. However, you cannot make a living only by selling your labor power so you have to use your magic powers to maintain yourself. You can become invisible in order to expropriate goods from chain supermarkets and share them with your comrades and girlfriends. Thats okay! Inflation ...
You will have an extraordinary chance to walk a lead bit through an enormous architectural miracle and why not dismantle the master's house!
Are you readyyy???
""")
start = False
if (graduation == True):
printer("You Win!")
exit()
# Clearing the screen: "cls" for Windows; "clear" for macOS
i = input()
#os.system("cls")
spliti = i.split(" ")
# Creating an inventory
if "inventory" in i:
printer("The truth is that you don't own anything. You are proletarian. You don't really have private property. However, in you current inventory you can find " + ", ".join(inventory))
if i in ["talk","discuss","debate","ask","say"]:
printer("Hiiiiiii witch, how can I help you, now that nobody is watching us?")
i = input()
if i in ["revolution","finish","free", "freedom"]:
if study >= 119:
printer("You did so many things! You struggle a lot, you care, you respect! You are a true witch fighter! Revolution is in the corner.")
graduation = True
else:
printer("We should keep the hard work. Do not give up though. Things do change and your contribution is valuable! You have gained " + str(study) + " points. Shall we go again to the base-ment? We have to organise stuff! Please don't give up. Here is something small for you!")
printer("""
For it is not the anger of Black Women which is dripping down over this globe like a diseased liquid. It is not my anger that launches rockets, spent more than 60,000 dolars second on missiles and other agents of war and death, slaughters children in cities, stockpiles nerve gas and chemical bombs, sodomizes our daughters and the earth. This is not the anger of Black Women which corrodes into blind, dehumanising power, bent upon the annihilation of us all unless we meet it with what we have, our power to examine and to redefine the terms upon which we will live and work; our power to envision and to reconstruct, anger by painful anger, stone upon heavy stone, a future of pollinating difference and the earth to support our choices.
We welcome all women who can meet us, face to face, beyond objectification and beyond guilt.
by Audre Lorde
""")
# Choices in the base-ment
if currentRoom == "base-ment":
if i in ["look","see","view","explore"]:
printer("Oh I'm in an base-ment, cool. There is little light here. Soooo many people. TheY do work hard. The seem unhappy and dipressed")
printer("You can find here: " + ", ".join(items["base-ment"]))
elif i in ["exit","walk","run","door","leave"]:
printer("You can use this tiny door to exit the base-ment. To be completely honest, you cannot escape that easily the base-ment. You wish you could. It can be really suffocating. However you are a witch, you have class consiousness and you have your caring comrades. So now let's move. ")
currentRoom = "apparatus"
# The ECTS condition, or the point-gaining system. Every "study" adds 30 points to the player's score. The goal is to reach 120 points or credits.
elif i in ["disconstruct", "dismantle", "poetry", "street", "public", "library", "counter-culture","read", "struggle", "collective", "solidarity", "fight", "feminism", "queer", "act", "expropriate", "parasite", "organise", "care", "reclaim", "speak", "counterhegemony", "escape", "burn", "collective", "demonstrate", "zine", "create", "enjoy", "disobedience", "occupy", "protest", "manifest", "shout", "sing", "anarchy", "radical", "barricade", "putaspell", "witchcraft", "unlearn"]:
printer("You have struggled soo much!")
study = study + 30
printer("The revolution seems to be closer. Cracks still happen and are completely important and vital and powerful. You have gained " + str(study) + " points")
else:
taker("base-ment")
# Choices in the neutral zone
elif currentRoom == "apparatus":
if i in ["look","see","view","explore", "open"]:
printer("Vrooom, vroom, vroom. You are now in the apparatus room! What a contradictory place to be. A wise-structured organised chaos ... Monumental huge buildings, computers, archives, cameras, people in uniforms, banks campus and other big buildings, and borders. Where is the public, though? If you see a little bit closer, it is not that solid.")
printer("Oh look in the apparatus you can find: " + ", ".join(items["apparatus"]))
elif i in ["exit","walk","run","door","leave"]:
printer("You may use this door to exit the apparatus.")
i = input("which door? (1 or 2)")
if i == "1":
printer("You use the door to the base-ment")
currentRoom = "base-ment"
elif i == "2":
printer("You use the door to the megaroom")
currentRoom = "megaroom"
else:
taker("apparatus")
# Choices in the megaroom
elif currentRoom == "megaroom":
if i in ["look","see","view","explore", "open"]:
printer("Oh You are in the megaroom! You can tell that it is luxurious, monumental structure classical and contemporary in the same time. You havent seen something similar before! Wowww. But why are so little people? Why the are mostly white men? Dont be stressed - they will not notice you! You enter the mansion as a cleaning lady. You are invisible to them. However, YOU know how radical our marginal identities are! ")
printer("Oh look in the megaroom! There is : " + ", ".join(items["megaroom"]))
elif i in ["exit","walk","run","door","leave"]:
printer("You use the door to exit the megaroom.")
currentRoom = "apparatus"
else:
taker("megaroom")
</pre>
</body>
</html>
Loading…
Cancel
Save