matrix_movie_pt_1.py

Created by wperez274

Created on April 27, 2023

13.3 KB


from math import *
from kandinsky import *
from ion import *
from random import *
from time import *

mapx=0
mapy=0

      
functions_guide ="""
(Cellular)
Cypher: Yeah.
Trinity: Is everything in place?
Cypher: You weren't supposed to 
relieve me.
Trinity: I know, but I want to 
take your shift.
Cypher: You like watching him, 
don't you? 
You like watching him.
Trinity: Don't be ridiculous.
Cypher: We're going to kill him, 
do you understand that?
Trinity: Morpheus believes he is 
the one.
Cypher: Do you?
Trinity: It doesn't matter what I 
believe.
Cypher: You don't, do you?
Trinity: Did you hear that?
Cypher: Hear what?
Trinity: Are you sure this line 
is clean?
Cypher: Yeah, of course I'm sure.
Trinity: I better go.

(Hotel room)
Cop: Freeze, Police. Hands on 
your head. Do it. Do it now.

(Street)
Agent Smith: Lieutenant...
Lieutenant: Oh shit.
Agent Smith: Lieutenant, you 
were 
given specific orders.
Lieutenant: Hey, I'm just doing 
my job. You give me juris- my 
diction crap, you can cram it 
up your ass.
Agent Smith: Your orders were 
for your protection.
Lieutenant: I think we can 
handle one little girl.... 
I sent two units. They're 
bringing her down now.
Agent Smith: No Lieutenant, 
your men are already dead.

(Hotel room)
Trinity: Morpheus, the line 
was traced, I don't know how.
Morpheus: I know, they cut the 
hard line. There's no time, 
you're going to have to get 
to another exit.Trinity: Are 
there any agents?
Morpheus: Yes.
Trinity: God-dammit.
Morpheus: You have to focus, 
Trinity. There's a phone at 
Wells and Lake. You can make it.
Trinity: All right.
Morpheus: Go.

(Rooftop)
Cop: That's impossible.

(Building)
Trinity: Get up Trinity. Just 
get up. Get up.

(Street)
Agent Brown: She got out.
Agent Smith: It doesn't matter.
Agent Jones: The informant is 
real.
Agent Smith: Yes.
Agent Jones: We have the name of 
their next target.
Agent Brown: The name is Neo.
Agent Smith: We'll need a 
search running.
Agent Jones: It has already 
begun.

(Neo's apartment)
Neo: What? What the hell?... 
Follow the white rabbit?... 
Who is it?
Choi: It's Choi.
Neo: Yeah. Yeah. You're two 
hours late.
Choi: I know, it's her fault.
Neo: Got the money?
Choi: Two grand.
Neo: Hold on.
Choi: Hallelujah. You're my 
savior, man. My own personal 
Jesus Christ.
Neo: You get caught using that...
Choi: Yeah, I know. This never 
happened. You don't exist.
Neo: Right.
Choi: Something wrong, man? 
You look a little whiter than 
usual.
Neo: My computer, it... You 
ever have that feeling where 
you're not sure if you're 
awake or still dreaming?
Choi: Mm, all the time. It's 
called Mescaline. It's the 
only way to fly. 
Hey, it just sounds to me 
like you need to unplug, man. 
You know, get some R and R. 
What do you think, 
DuJour? Shall we take him 
with us?
DuJour: Definitely.
Neo: I can't, I have work 
tomorrow.
DuJour: Come on, It'll be fun. 
I promise.
(Neo notices a tattoo of a 
White Rabbit on the woman
and he remembers "follow
the  white rabbit"..and 
he realized that maybe it's
a clue.)

Neo: Yeah, sure, I'll go.

(Club)
Trinity: Hello Neo.
Neo: How do you know that 
name?
Trinity: I know a lot about 
you.
Neo: Who are you?
Trinity: My name is Trinity.
Neo: Trinity. The Trinity? 
That cracked the IRS d-base?
Trinity: That was a long 
time ago.
Neo: Jesus.
Trinity: What?
Neo: I just thought, um...you 
were a guy.
Trinity: Most guys do.
Neo: It you on my computer. 
How did you do that?
Trinity: Right now all I can 
tell you is that you're in 
danger. I brought you here 
to warn you.
Neo: Of what?
Trinity: They're watching you, 
Neo.
Neo: Who is?
Trinity: Please just listen. 
I know why you're here, Neo. 
I know what you've been doing. 
I know why you hardly sleep, 
why you live alone, and why 
night after night you sit at 
your computer. You're looking 
for him. I know, because I was 
once looking for the same thing.
And when he found me, he told 
me I wasn't really looking for 
him. I was looking for an 
answer. It's the question that 
drives us mad. It's the question
that brought you here. You 
know the question just as I 
did.
Neo: What is the Matrix.
Trinity: The answer is out 
there, Neo. 
It's looking for you. And it 
will find you, if you want it 
to.
(Neo's apartment)
Neo: Oh shit. Oh shit shit.

(Office)
Mr. Rhineheart: You have a 
problem with authority, Mr. 
Anderson. You believe that 
you are special, that somehow 
the rules do not apply to you. 
Obviously you are mistaken. 
This company is one of the top 
software companies in the world 
because every single employee 
understands that they are part 
of a whole. Thus if an employee 
has a problem, the company has 
a problem. The time has come 
to make a choice, Mr. Anderson. 
Either you choose to be at your 
desk on time from this day forward 
or you choose to find yourself 
another job. Do I make myself clear?
Neo: Yes, Mr. Rhineheart, perfectly 
clear.

FedEx man: Thomas Anderson?
Neo: Yeah, that's me.
FedEx man: Ok, great. Have a nice day.
Neo: Hello.
Morpheus: Hello Neo. Do you know who 
this is?
Neo: Morpheus.
Morpheus: Yes. I've been looking for 
you, Neo. I don't know if you're 
ready to see what I want to show 
you, but unfortunately you and I 
have run out of time. They're 
coming for you, Neo, and I don't 
know what they're going to do.
Neo: Who's coming for me?
Morpheus: Stand up and see for 
yourself.
Neo: What, right now.
Morpheus: Yes, now. Do it slowly. 
The elevator.
Neo: Oh shit.
Morpheus: Yes.
Neo: What the hell do they want 
from me?
Morpheus: I don't know, but if 
you don't want to find out I 
suggest you get out of there.
Neo: How?
Morpheus: I can guide you but 
you must do exactly as I say.
Neo: Ok.
Morpheus: The cubicle across 
from you is empty.
Neo: What if they...
Morpheus: Go, now...Stay here 
for just a moment. When I tell 
you, go to the end of the row, 
to the office at the end of the 
hall. Stay as low as you can.... 
Go, now.... Good. Now, outside 
there is a scaffold.
Neo: How do you know all this?
Morpheus: We don't have time, Neo. 
To your left there's a window. 
Go to it.... Open it. You can 
use the scaffold to get to the roof.
Neo: No way. No way. This is crazy.
Morpheus: There are two ways out 
of this building. One is that 
scaffold, the other is in their 
custody. You take a chance either 
way. I leave it to you.
Neo: This is insane. Why is this 
happening to me? What did I do? 
I'm nobody.... Shit.... I can't 
do this.

(Street)
Trinity: Shit.

(Interrogation)
Agent Smith: As you can see, we've 
had our eye on you for some time 
now, Mr. Anderson. It seems that 
you've been living two lives. In 
one life, you're Thomas A. 
Anderson, program writer for 
a respectable software company, 
you have a social security number, 
you pay your taxes, and you help 
your landlady carry out her 
garbage. The other life is lived 
in computers, where you go by 
the hacker alias Neo and are 
guilty of virtually every computer 
crime we have a law for. One of 
these lives has a future, and 
one of them does not. I'm going 
to be as forthcoming as I can be, 
Mr. Anderson. You're here because 
we need your help. We know that 
you've been contacted by a certain 
individual, a man who calls himself 
Morpheus. Now whatever you think 
you know about this man is irrelevant. 
He is considered by many authorities 
to be the most dangerous man alive. 
My colleagues believe that I am 
wasting my time with you but I 
believe that you wish to do the 
right thing. We're willing to wipe 
the slate clean, give you a fresh 
start and all that we're asking 
in return is your cooperation in 
bringing a known terrorist to justice.
Neo: Yeah. Wow, that sound like a 
really good deal. But I think I 
got a better one. How about I give 
you the finger... and you give 
me my phone call.
Agent Smith: Um, Mr. Anderson. 
You disappoint me.
Neo: You can't scare me with 
this Gestapo crap. I know my 
rights. I want my phone call.
Agent Smith: Tell me, Mr. Anderson, 
what good is a phone call if 
you're unable to speak.... 
You're going to help us, Mr. 
Anderson whether you want to 
or not.

(Neo's apartment)
Morpheus: This line is tapped, 
so I must be brief. They got 
to you first, but they've 
underestimated how important 
you are. If they knew what I 
know, you'd probably be dead.
Neo: What are you talking about. 
What...what is happening to me?
Morpheus: You are the one, Neo. 
You see you may have spent the 
last few years looking for me, 
but I've spent my entire life 
looking for you. Now do you 
still want to meet?
Neo: Yes.
Morpheus: Then go to the Adam 
Street Bridge.

(Car)
Trinity: Get in.

Neo: What the hell is this?
Trinity: It's necessary, Neo. 
For our protection.
Neo: From what.
Trinity: From you. Take off your 
shirt.
Neo: What?
Switch: Stop the car. Listen to 
me, Copper-top. We don't have 
time for twenty questions. 
Right now there's only one rule, 
our way or the highway.
Neo: Fine.

(Neo begins to reach for the door,
when Trinity gently grabs his arm)..

Trinity: Please, Neo. You have 
to trust me
Neo: Why?
Trinity: Because you have been 
down there, Neo. You know that 
road. You know exactly where it 
ends. And I know that's not where 
you want to be.... Apoc, lights. 
Lie back, lift up your shirt.
Neo: What is that thing?
Trinity: We think you're bugged...
Try and relax...Come on. Come on.
Switch: It's on the move.
Trinity: Shit.
Switch: You're going to loose it.
Trinity: No I'm not. Clear.
Neo: Jesus Christ, that thing's 
real?

(Lafayette Hotel)
Trinity: This is it. Let me give you 
one piece of advice. Be honest. 
He knows more than you can imagine.
(Thunder strikes in the sky, as
Morpheus slow turns to face
Neo, compassionate and excited 
look on his face).
Morpheus: At last. Welcome, Neo. 
As you no doubt have guessed, 
I am Morpheus.
Neo: It's an honor to meet you.
Morpheus: No, the honor is mine. 
Please, come. Sit down. I imagine 
that right now you're feeling 
a bit like Alice, tumbling down 
the rabbit hole? Hm?
Neo: You could say that.
Morpheus: I can see it in your 
eyes. 
You have the look of a man who 
accepts 
what he sees because he is 
expecting to wake up. Ironically, 
this is not far from the truth. 
Do you believe in fate, Neo?
Neo: No.
Morpheus: Why not?
Neo: Because I don't like the 
idea that I'm not in control of 
my life.
Morpheus: I know exactly what you 
mean. Let me tell you why you're 
here. You're here because you 
know something. What you know 
you can't explain. But you feel 
it. You've felt it your entire 
life. That there's something 
wrong with the world. You don't 
know what it is but it's there, 
like a splinter in your mind 
driving you mad. It is this 
feeling that has brought you 
to me. Do you know what I'm 
talking about?
Neo: The Matrix?
Morpheus: Do you want to know 
what IT is? 
The Matrix is everywhere. It is 
all around us, even now in this 
very room. You can see it when 
you look out your window or when 
you turn on your television. 
You can feel it when you go to 
work, when you go to church, 
when you pay your taxes. It is 
the world that has been pulled 
over your eyes to blind you 
from the truth.
Neo: What truth?
Morpheus: That you are a slave, 
Neo. Like everyone else you were 
born into bondage, born into a 
prison that you cannot smell 
or taste or touch. A prison 
for your mind...Unfortunately, 
no one can be told what the 
Matrix is. You have to see 
it for yourself. This is your 
last chance. After this there 
is no turning back. You take 
the blue pill, the story ends, 
you wake up in your bed and 
believe whatever you want to 
believe. You take the red pill, 
you stay in Wonderland, and I 
show you how deep the rabbit 
hole goes.... Remember, all 
I'm offering is the truth, 
nothing more.... Follow me...
Apoc, are we online?
Apoc: Almost.
Morpheus: Time is always against 
us. Please, take a seat there.

Neo: You did all this?
Trinity: Uh-huh.
Morpheus: The pill you took is 
part of a trace program. It's 
designed to disrupt your 
input/output carrier signal 
so we can pinpoint your location.
Neo: What does that mean?
Cypher: It means buckle your seat 
belt, Dorothy, because Kansas is 
going bye-bye.


"""


x=0
y=0




#bg = (25,40,22)

font=(100,240,100)

bg = (15, 45, 20)


#th=choice([[font,bg],[bg,font],[font,bg]])



fill_rect(0,0,320,222,bg)

for x in range(-100,100):
  r=int(sqrt(1e4-x*x))
  for y in range(-r,r):
    if random()<abs(x/90):
      set_pixel(160+x,110+y,(0,255,0))#((255,70)[x>0],)*3)


while not keydown(KEY_OK) and not keydown(KEY_EXE):

  draw_string("The Matrix",100,180,(0,255,0),(0,0,0))
  

bg = (4, 3, 34)
font = (247, 242, 140)

fill_rect(0,0,322,222,bg)


sleep(0.4)


while not keydown(KEY_EXE):

  if y<120:
    draw_string(str(functions_guide),x+x,y,font,bg)

  if keydown(KEY_DOWN):
    fill_rect(0,0,322,222,bg)
    y-=200

  if keydown(KEY_UP):
    fill_rect(0,0,322,222,bg)
    y+=200

  if keydown(KEY_OK):
    sleep(0.2)
    bg=(randint(0,255),randint(0,255),randint(0,255))
    font=(randint(0,255),randint(0,255),randint(0,255))
    fill_rect(0,0,322,222,bg)

  if y>100:
    y=100

  if y<-8145:
    y=-8145

  if keydown(KEY_DOT):
    bg = (0,)*3
    font = (0,255,0)
    fill_rect(0,0,322,222,bg)

  if keydown(KEY_ZERO):
    bg = (255,)*3
    font = (0,0,0)
    fill_rect(0,0,322,222,bg)


  if keydown(KEY_ONE):
    bg = (52, 22, 169)
    font = (130, 231, 251)
    fill_rect(0,0,322,222,bg)

  if keydown(KEY_TWO):
    bg = (97, 242, 195)
    font = (32, 64, 3)
    fill_rect(0,0,322,222,bg)

fill_rect(0,0,322,222,(100,255,255))
draw_string("PRESS OK",100,100)

  
print("bg =",bg)
print("font =",font)

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.