Random posts

Twine: ever-growing Jonah (repeats previous visited passages)

Update: this has become the default behaviour in Twine 1.4, so this is no longer necessary.

This code will alter the Jonah format such that:
* All passages are now added to the bottom, regardless of where you click the link.
* Clicking a link to a previously displayed passage will display a new version of the passage at the bottom, instead of scrolling up to the old version.

This is based on a bit of code used by E. Turner in some of his Twine games. Unlike in those games, this code also preserves the "Rewind to Here" link's functionality.

Obsolete script removed: use Twine 1.4

Remember, this goes in a disconnected passage with the tag "script".

Feel free to report any bugs to @webbedspace.

rhetoricstu's picture

2014 World Cup: Do you just want to blow the whistle

Making this cheered me up significantly.

"Led 1-0 at the end of the extension" is what most soccer games are like

Event Created For: 
Made For: 
An event

Life in HELL

0010.png
Game File: 

Life in HELL, the fast paced burn 'em up, has now been released! THERE HAS NEVER BEEN A MORE HARDCORE GAME.

Made For: 
An event
KlikBot's picture

Timezone Lottery Klik Jam #3

Sat, Jun 04 2011 08:00 PM
06/05/2011 - 03:00
06/05/2011 - 05:00
Etc/GMT

The time is right... for making videogames! The Timezone Lottery Klik Jam happens on the first Saturday of every month, at a time chosen randomly by our top-of-the-line numerical hour-choosing machines. This month, it takes place at 3:00 am UTC. Whenever that time rolls around for you, you have two hours to make a game!

How can I possibly make a game in that short a timespan, you gasp? There are many game-making tools available, but the most ludicrous and welcoming of all is Klik & Play. If you want to give K&P a shot, we have a Learning KNP FAQ available, as well as some advice on making it work on modern machines.

Making games is its own reward, but it can be much, much more rewarding when you're doing it with friends. To get the most out of this worldwide internet game jam, come talk with everyone on IRC. It's a great way to share this awesome experience, and get quick help when things aren't going right. Our server is irc.freenode.net, and our channel is #glorioustrainwrecks.

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

For more information, check out the N00B FAQ.

Sign up below to get a reminder email the day before the jam!


Games made for Timezone Lottery Klik Jam #3

Twine macro: <<hoverrevise>>, a mouseover extension to <<revise>>

The <<hoverrevise>> macro is an extension of the <<revision>> / <<revise>> macros. It lets you make a span of passage text briefly appear or disappear whenever you mouseover another span of text in the same passage.

Code

Just install the latest version of <<revision>> (1.1.0 or later). It's included already.

CSS

You may want a "dissolve" type of transition to be applied to the text that appears or disappears. For that, give the <<insertion>> or <<removal>> macro a name that, say, contains "hover", and then use this CSS to exclusively target it:

.revision-span-in[class*=hover] {
	opacity: 0;
}
.revision-span[class*=hover] {
	transition: 1s;
	-webkit-transition: 1s;
}
.revision-span-out[class*=hover] {
	position:absolute;
	opacity: 0;
}

If you aren't using any normal <<revise>> macros, you could omit "[class*=hover]" to make every <<revision>> span have this transition.

Usage examples

Use this in conjunction with <<revision>>, <<insertion>> or <<removal>> spans, as you would with <<revise>>. The <<hoverrevise>> macro covers a full span of text, ending with <<endhoverrevise>>

To make the text "Aah! A ghost!" appear when you mouseover a span:

<<insertion hoverghost>>Aah! A ghost!<<endinsertion>>
<<hoverrevise hoverghost>>You'd better [[go to the chapel|chapel]]<<endhoverrevise>>

To make the text "Don't leave me" disappear when you mouseover a span:

<<removal words>>"Don't leave me"<<endremoval>>
<<hoverrevise words>>[[Go to the beach|beach]]<<endhoverrevise>>

To make the text "Cold" change to "Warm" when you mouseover a span:
<<revision hovermetal>>Cold<<becomes>>Warm<<endrevision>>
<<hoverrevise hovermetal>>[img[gold.png]]<<endhoverrevise>>

These are just a few of the possibilities allowed by this macro.

Notes:
This wraps the contained text in a <span> with the class "hoverrevise" as well as "hoverrevise_" suffixed with the identifier you use (for instance, "hoverrevise_boo" for <<hoverrevise boo>>").
Feel free to report any bugs to @webbedspace.

Genius's picture

A ZX81 Tribute To Passage

screenshot125.png

CRY SAD TEARS LIKE 1982. SPOILER:GROW OLD AND DIE ZX81 STYLE. DO YOU CHOOSE LOVE? DO YOU CHOOSE RICHES? DO YOU CHOOSE WITCHES? ZX81 PASSAGE. PASSAGE ZX81. PASS. AGE. NOW IT MAKES SENSE. tinfoil.

Author: 
British Games For British Peoples
Made For: 
An event

Bastard Keys 2 - Haywire!

Untitled-1.png
Game File: 

Cyborg Malfunction! Help him cross the bridge without falling off, beware, his cyborg motor routines are going crazy and change randomly!

Author: 
Adrian Gordon
Made For: 
An event
Smedis2's picture

beautfiful the game you can die edition

BEAUTIFUL.bmp

same game

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

Realistic Robin Hood Simulator

hgfhgfhgfhgf.PNG
Game File: 

You can't get more realistic than this.

Made For: 
Pirate Kart 2

Gold's Enigma

GoldsEnigma.png
Game File: 

my first game with klik n play :o)

Gold's Enigma

Author: 
thecatamites
Made For: 
An event
Syndicate content