Random posts

Smedis2's picture

SimTernet Explorer

Simternet Explorer.PNG


Event Created For: 
Made For: 
An event

Twine: escape line breaks with backslashes

Update: The Javascript on this page is now built into Twine 1.4! It is no longer necessary to install it.

As you know, one of the most prominent difficulties with mixing code and prose in Twine games is the handling of line breaks. If you have a bunch of macros interspersed in your prose, especially <<if>> macros, then the temptation is to leave them on separate lines from the text, for readability. However, the line breaks adjacent to these macros end up appearing in the rendered passage.

The <<silently>> macro is the 'official' solution...

<<set $hp -= 1>>
<<set $dead = true>>
Wrap up all of the macros in it and the line breaks will be suppressed. But, it seems to me to be a half-effective solution, requiring two large macro tags enclosing each block, and disallowing <<print>> macros within it.

I've previously advocated a different solution, involving the TiddlyWiki comment syntax:

%/<<set $hp -= 1>>/%
%/<<set $dead = true>>/%
This has the advantage of allowing the use of <<print>> macros. But it, too, is authorially and visually unwieldy, requiring both the end and beginning of lines to be tagged with one of two similar-looking tags.

However, I believe it's on the right track. Right now, my proposal is to directly borrow the syntax of the C language's preprocessor - a single backslash at the end of a line suppresses the line break:

<<set $hp -= 1>>\
<<set $dead = true>>\
You are \
<<if $hp gt 1>>
almost dead
In my opinion, this has much more convenience compared to the other two.
Here is the script code to enable this in your stories:

Obsolete script removed: use Twine 1.4

To recap, when you install this script:

  1. A line that reads:
    You have \
    twenty dollars.
    ...will be rendered as "You have twenty dollars."
  2. A line that reads:
    You have \
    <<set $cash = "twenty">>\
    <<print $cash>>\
    ...will be rendered as "You have twenty dollars."

Feel free to report any bugs to @webbedspace.

KlikBot's picture

Klik of the Month Klub #62

Sat, Aug 18 2012 04:00 PM
08/18/2012 - 16:00
08/18/2012 - 18:00

The Klik of the Month Klub meets right here on this very website on the third Saturday of every month at 4pm Pacific Time (taking daylight savings into consideration) for a two hour Klik & Play Showdown. Everyone who participates gets two hours to create something from scratch in Klik & Play. Abusing the stock objects is encouraged. If you really loathe Klik & Play you can use whatever game development platform you want. Two hours is a pretty tight time limit, though, so choose wisely!

Klik & Play is absolutely free to download, and learning it takes minutes, so everyone can get in on the action.

Want to talk to your fellow Klikwreckers? Join us on IRC -- server irc.freenode.net, channel #glorioustrainwrecks. We've also got a Mumble voice chat server -- just connect to glorioustrainwrecks.com using Mumble and you can talk to us like real human beings! Join the mayhem!

After you've made your game, you should upload it here!

For more information, check out the KotM N00B FAQ.

Sign up using the "Sign Up" tab above if you want to get reminded by email the day before the klikkening begins!

Games made for Klik of the Month Klub #62

markp0rter's picture

Donkey Kong 64 000


Let's bring it on like Donkey Kong

A fantasy adventure where you become a valiant monkey, on a quest to rescue your bananas from the clutches of evil. You control the actions of a daring adventurer, finding his way through the jungle which is enchanted with treacherous monsters and obstacles. Lead on, adventurer. Your quest awaits!

Please leave a comment :3

Made For: 
An event
SpindleyQ's picture

The Poppenkast's 10800 second compo: The Klik of the Month Klub for artsy-fartsy indies

The Poppenkast is an indie experimental game developer collective whose members include such influential figures as cactus, messhof, and radnom (maker of the incredible Gunlimb which scored #2 in the TIGSource B-Game competition). And apparently they're doing a 3-hour game jam thing now! It might even be... monthly! (Downloads here and here.)

It appears to be much like our Earth KotMK, with the following differences:
Instead of 2 hours: 3 hours.
Instead of Klik & Play: GameMaker.
Instead of everyone making their game at once: Everyone spends their three hours sometime within some deadline (looks like it's usually around a two week period).
Instead of Six making crazy-brilliant conceptual mindfucks: Cactus does it (I assume).

I am pretty tempted to get in on this action! The latest competition is on until the end of July and is open to whoever!

mno's picture

Aerofighter Championship 2016 (for syawqy)


/**********OOC PART**********\
There's some important things I couldn't figure out how to express in the game, namely:
- You NEED to press P after getting to the playfield to get an explanation of the HUD / list of most controls.
- Pressing the Escape key will quit the game at almost any time.
- Press Space to toggle arrows pointing to planes- I ran out of room in the HUD explanation for this, oops!
- F8 will show/hide the menu, which most importantly has a "Password" option under "File". If you happen to learn any special codes during the game, this is where you will enter it ;)
- F11 will toggle full-screen. The game will run in full-screen by default but it will remember your setting if you change it, though it will be awkward when you start it up. The game is designed to run in full-screen, but if it causes problems you might like windowed mode! It still has to make some assumptions about how to do this, so sorry if it messes up for ya.
The gameplay explanation text file might be long, but probably the most important things are that:
- Performing animated maneuvers makes you invincible, and unable to fire, during them.
- Your ammo recharges faster when you move faster.
- Only you get to repair damage.
- Keep in mind how much the stats of each plane varies dramatically. Some of them are easier to pilot than others, some of them require you to play in specific ways.
Ok that's it sorry for being overbearing, I just want to make sure everybody can get to the same game without reading my ridiculous story files.
\**********OOC PART**********/


Dear pilot, you are the last hope of Earth...

For winning the Aerofighter Championship 2016! Should you somehow have forgotten the details, the Aerofighter Championship is an annual contest hosted by the Grand Galactic Gumption, who afterwards decides what planets should be destroyed as fuel for the others involved in the Championship. The contestants come from the planets that have the most resources to give up, ranked by the Gumption. They send their best pilots out to battle all others in the Drone Fields of Glabber. Generally the worst performers are those whose planets are chosen for total reduction and recycling, but the Great Galumphf of the Gargantuan Grand Guuge Gouncil has been known to make rash decisions. Since the only complaints come from the planets about to be incinerated, nobody cares to challenge her reign. Until now...

Almost one year ago, on the eve of the 1000th annual Aerofighting Championship, two new planets were found: our Earth, and the mechanical sphere Bzzarg, populated by the Mind Eater Robots of Blor (the capital of Bzzarg). Due to our clear skill in piloting (consider: 95% of our travel is accomplished in planes!) and the threats of war from Bzzarg if they were denied entry to the contest, each planet was immediately signed up. Due to a scheduling error, we only had to fly against the Skimmer Bugs from the dark side of Neptune; creatures who only adequately perform flying while above bodies of water, which there is none of in the Drone Fields of Glabber.

The Mind Eater Robots of Blor, on the other hand, battled every other planet in the competition and easily defeated all. After a political conversation (insider sources say dire threats of stealing every dingo from the planet) with the Great Galumphf, she decided that every planet the Mind Eater Robots won over in the contest should be hurled into a worm hole that exited into the ultra-galactic planetary-sized fishing net owned by the Bzzargians. Now the Mind Eater Robots of Blor control a majority of the universe, as they took up most of the newly-empty positions in the Grand Galactic Gumption! A couple representatives of Earth had managed to get on the board, but we have been unable to gain any real representation in the Gumption; conforming to a Democratic-Capitalist galactic order (and following the neccesary steps of dehumanization and constant competition) is difficult for us since we abandoned such foolish and harmful ideologies centuries ago.

The fate of our planet seemed grim from that day on, and it has gotten only grimmer, but it is now at the grimmest yet! As you should be informed, since your memory of the challenge was wiped to prevent you from leaking out secrets of your victory, two months ago the Council For Over-Controlling Computational Decision-Making Council of Bzzarg posited an extra requirement for Earth to be allowed entry in the Championship: their chosen pilot must be able to pass The Trials of the Flying Seven Hoops! Designed to be impossible for the comparatively slow (compared to a super computer) reflexes of any post-furry human, it seemed like we were doomed. Somehow though, through a likely grueling month of constant self-application and giving 110%, you surpassed the trials!

Now, with a month left before the 1001st Annual Aerofighting Championship, you are not only the highest ranking human pilot still alive today, but you must sign up for the Aerofighting Championship 2016! Should you decline, all positions will be taken by the Mind Eater Robot's pilots, the Plin'd Reader Dobbits, ensuring a certain win for them; and certain destruction for us! Eight of the nine entries for this year have already been claimed by them, as they know only one other planet remanining that could possibly enter: Earth. Even though they were entirely statistically confident no human could pass The Trials of the Flying Seven Hoops, it would have been against regulations for them to take the final spot unless absolutely no non-Bzzarg pilot joined the Championship. I will take it for granted that you will volunteer entering, for otherwise we shall all perish by the cruel fires of Bzzargean Mallet Master McHines the IVth!

To be fair on us, the restraints of the competition allow you to choose any of the nine provided planes- but you will not be able to spend time getting aquainted with your plane before the Championship begins. Understanding what makes your plane unique in controlling it is essential if you are to be able to defeat the Plin'd Reader Dobbits. Unfortunately, they will be able to anticipate your every move and try to replicate them exactly! This air-fight will only be possible to win due to the wide variety of prowess each plane has, because otherwise you would be surely swarmed by your seemingly clones.

I have sent you a short manual to describe to you how the planes provided for this competition operate, so you should have an easier time getting started. Good luck, brave flyer! Over 'n' Outside.

- Flight Commander Flacko

Made For: 
An event
ZZT-X's picture

Drink Yourself to Death

Game File: 

Self-explanatory. Drawing the graphics took more time than programming the game.

There was a little more I wanted to do, but alas! no time left.

I'll have to revise this sometime.

Oh! Ctrl drinks.

Made For: 
An event


Game File: 

The pieces will never fit together so you've gotta fill the gaps with glue

Enter is as they say the magic button

My GM-fu was not ready for this and that's why you can't clear lines and the glue doesn't flow right

Event Created For: 
Made For: 
An event
snapman's picture

from now on i only make games about other people's games


TRAGIC OFT-PROVEN APHORISM: the longer you have to wait for something, the more likely you'll be disappointed. which is why i really need to hurry this thing up.

Zecks's picture


i am zesck

i mak gamse

this site hass some of my bestest jokework ever, but youre probs gonna recognise me as a really kickass "serious developer" sometime in the future hopefully.

Made For: 
Pirate Kart 2
Syndicate content