Saturday, November 17, 2012

Slaying the Code Dragon

At line 4297 in the editor, consisting of just shy of 27,000 words, the equivalent of a 108-page document, the first complete pass of Act I RenPy code is complete.

It even compiles.

I know that there are a couple of areas that need flogging, and, like any code, it's going to need many tweaks and revisions... but at least the "delta" version is done.

Once Will's images are added, I'll debug it into a "gamma" version.  Then, he and I shall have a ftf to debug and message into the "beta" version.

I need a drink.

Friday, November 2, 2012

Stupid Writer is Slightly Less Stupid

After several days of gazing mindlessly at RenPy tutorials, it occurred to me, Hey!, why not look at some code of actual VNs from the LemmaSoft Forum... real-world examples had to be better right?

I thought this sober, after several days.

So, I d/l a VN, find the script.rpy, mix a drink, and start reading.  Did you see the plot point there?

It then occurs to me that, even better, is to run the game in one window while I follow the code in another.  Brilliant!  Calls for another drink!

And the second drink is enough to remember a conversation I had with a programmer from IBM about 11 years ago:  "Write code?  What?!?  No one's written code in years!  You just copy and paste what you need!"

With that bone now removed from my head, I open a THIRD window.  Now, when something happens in the VN that I don't know how to do -- but looks cool -- copy from 2nd window into 3rd.  I might make January 4th after all.

My world is best seen through the bottom of a highball glass.