....

Customize It All

Tuesday, March 27, 2012

Ren'py Test

I have to give a lot of credit to GenericUser from the TIGForums for his (or her?) tutorial "Creating A Visual Novel With Ren'Py" made a few years ago. Helpped me realize how easy making a ren'py game was. The character sprite "girl" was taken from www.the-other.endoftheinternet.org/alicedotnet/ . The class room and lunch room backgrounds were found through Google.

Of course I will draw and color my own character artwork and background artwork. Sorry I forgot to add music. 

Anyways...prepare for a long paragraph of coding.  Feel free to compare the original coding ( the tutorial ) with the changes I made and added.

init:
    $ me = Character("Me", color="#CC0066")
    $ girl = Character("Girl", color="#aaffaa")
  
    image bg street = "street.jpg"
    image bg busstop = "busstop.jpg"
    image bg lunchroom = "lunchroom.jpg"
    image bg classroom = "classroom.jpg"
    image girl sorry = "girl_sorry.png"
    image girl happy = "girl_happy.png"

label start:

    scene bg street
    me "I wish I had just one more quarter..."
    me "I’d rather take the bus instead of walking there."
    "Today was professional dress day at my university.  My shoes were already killing me."
    me "What’s that?"
    "I saw something shiny on the street."
    "I picked it up while patting down the back of my dress.  I can't wait for this day to pass already."
    "It was a quarter!"
    "That cheered me up... "
    "I smiled. Of course being the poor college student I was, finding a qaurter would make me smile.  I can stop walking in these damn shoes for a few minutes."
    show girl sorry
    girl "Excuse me, but have you seen any coins around here?"
    girl "*sigh* I can’t find that one quarter..."
    "My smile disapeared."
    me "No I haven't.  I hope you find it"
    "I walked passed her, letting my smile come back once I was sure she could no longer see my face."
    girl "*sighs*"
    "Sucks to be her.  Now if only I can catch the bus in time."
    "I was about to take another step when something hit me.  It was my consious."
   
    menu:
      "Be honest and give the quarter to her":
            jump honest

      "Finders keepers, losers weapers.":
             jump lie
       
label honest:
     "I should probably be.... a little honest."
     me "Yes, I have an extra qaurter..."
     show girl happy
     "Aww...look at her.  So unaware of the truth."
     girl "Thank you!"
     girl "Now I can take the bus instead of walking there..."
     me "I was going to take the bus too..."
     girl "Then why don't we walk to the bus stop together?"
     "To be honest, I didn't expect that..."
     me "O-OK."
     "So we walked.  She hummed walking in her high heels while I managed to keep my balance in mine."
     "I listened to her humming as we walked.  My ipod was in my book bag since most dresses do not have pockets."
     "The humming had a strange effect on me.  I almost forgot my feet was hurting by the time we reached the buss stop."
     scene bg busstop
     "Just as we came to the bus stop, the bus drove right past us."
     me "What?!?  Come back you ass hole!"
     "I quickly reached for my dress and patted down the rising fabric before it went past my thighs.  A few of the old men at the buss stop looked diappointed but I ignored them."
     girl "Didn't he notice us?"
     me "What do you th...I'll check out when the next bus will arrive."
     "I looked at the timetable."
     "Damn..."
     me "It looks like the next one isn't going to come before 10 am..."
     me "...and the clock is 8 am right now."
     girl "*sigh* I hate walking all the way to Light University..."
     me "Really?  You go there too?"
     "I was shocked.  The more I look at her, the more I realize I've seen her a few times."
     girl "Yes..."
     show girl happy
     girl "Hey, maybe we could walk there together?"
     "Sigh..."
     "I look at her happy expression.  My anger was melting away."
     me "I guess"
     "I shrugged my shulders and began walking. I smiled upon hearing the sound of her humming again."
     scene bg classroom
     "I was late and missed the suprise test at the beginning of class.  Those tests should be illegal."
     "My GPA is down the gutter now."
     "Thank God the old fart had a soft spot for cute girls in dresses.  Through a lot of convining tears and pleas, the teacher gave me some extra credit work to do after class."
     "I did the work putting in more effort than I was used to in class. I paused every now and then before writing a few words.   Something kept bothering me.  For the life of me, I can not remember where I met that girl."
     scene black
     "I smiled, having completed the work, I slammed the work on the teacher's desk and walked away.  The teacher will check the work in the morning."
     "My stomach was growling."
     scene bg lunchroom
     #Add lunchroom scene where mc meets girl again
     "Upon looking for an empty table to sit alone at and eat, I bumped into someone."
     "I was preparing to say something witty but the sight of the dress made me shallow my words."
     show girl happy
     girl "Hi!"
     me "H-Hi..."
     girl "Want to eat with me?"
     me "S-sure"
     "I didn't know it then, but this would be the beginning of a long friendship..."
     "--Friendship Ending--"
     return
   

label lie:
    "Meh, what she doesn't know can't hurt her."
    me "I'm sorry, but I haven't seen anything."
    girl "Are you sure?"
    "What's with this girl?  I nearly roll my eyes."
    menu:
        "I'm still ignoring my consious":
            jump again
           
        "Be honest":
            jump honest
       
label again:  
     me "Nope.  I haven't seen a dime."  
     girl "Oh, OK..."
     "I slowly walked away, smiling the momment I was sure she could not see my face."
     "And then I hurried to the bus stop."
     scene bg busstop
     "I swung my bookbag in between the closing door of the bus."
     me "CUTE GIRL COMING THROUGH!"
     "The bus driver muttered something under his breathe before opening the doors fully. I smiled at him, paid my fee and moved to empty seat."
     "I stared out the window, wondering about that girl who was just now reaching the bustop.  She stopped to look at the bus sadly and then kept walking."
     "I could do something crazy and tell the bus driver to stop so I can trade places with this girl.  Of course this wasn't the movies and I really want to get to class so I can sit down some more."
     "The buss took off.  The girl became smaller and smaller before she finally disappeared along with my guilt."
     scene bg classroom
     "I pushed the door aside and walked to my seat.  The clock said 9:00 a.m..  I would have been late if I took that long walk over here."
     "I sighed heavily at how good my feet felt.  I hope that girl didn't have class today.  She would be late at the speed she was going."
     "The teacher stopped talking and placed his hands on a pile of papers on his desk.  He smiled."
     "I nearly banged my head on the desk.  There was one thing I hated more than wearing a dress.  It was tests."
     scene black
     "I completed the work, walked over to the teacher's desk and slammed the work right in front of him and walked away.  The teacher looked suprised.  The other students took their eyes from their papers to stare.  If words were said, I did not care."
     "My stomach was growling and I was sure I passed the test.  That score will take my GPA out of the gutter."
     scene bg lunchroom
     "I managed to find an empty table to eat at.  Aside from this morning the whole day played out the same as usual.  I ate lunch, go to my next class, and go home.  The END."
     "-- Loner's Ending --"
     return
       
 

0 comments: