Random posts

Tastes Like Chicken

scrot1.png

Tastes Like Chicken

is a top-down shooter where you play as a chicken who tries to escape from hungry farmers.

For more games you can follow me on twitter: @allhaildaniel

Instructions

Move using the arrow keys and press z or space for shooting and selecting.

Update Fixed a bug with the music at launch.

Author: 
Daniel Bryant
Made For: 
An event

Twine: visited(), a function to find how often a passage was visited

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

I've noticed that a good deal of variable usage in Twine is simply employed to track whether or not you've visited a certain passage previously, or done so a number of times. This script code provides you with a function that can give this value straight, without needing to use the <<set>> macro.

Obsolete script removed: use Twine 1.4

To use it, use "visited("Passage")" as a value in a <<set>>, <<if>> or <<print>> macro. It will equal the number of times you've visited the passage whose name is between the quotes and parentheses. For instance:

  1. <<if visited("Store")>>You've been to the store.<<endif>>
  2. <<if not visited("Firepit") and not visited("Maggotpit")>>You've not yet been to the fire pit or maggot pit.<<endif>>
  3. <<if visited("Trap Floor") gt 2>>Your repeated stomping is making the floor weaken.<<endif>>
  4. You've visited the chasm <<print visited("Dark Chasm")>> times.<<endif>>
  5. <<set $count = visited("Jewelers")>>You've visited the Jeweler's <<print $count>> times.<<endif>>

Also, instead of a passage name, you can put a variable.
  1. <<if visited($bossPassage)>>If only you'd had this when you'd fought the boss!<<endif>>
  2. <<set $beenToMyHome = visited($myHome)>>

New: If you just put visited(), then it will count visits to the current passage, without you needing to include the passage's name.
<<set $beenHereBefore = visited()>>

In addition, here is a function called "visitedbefore" which can be used to tell you if a passage has ever, in the course of the game, been visited before another passage.

window.visitedbefore = function(e,f) {
	var h,c,ret;
  	for(ret=c=0; c<state.history.length; c++) {
		h = state.history[c].passage;
		if(h && h.title == e) {
			return true;
		} else if (h && h.title == f) {
			return false;
		}
	}
	return false;
}

This only returns true or false. Use it like so:
  1. <<if visitedbefore("Firepit", "Maggotpit")>>First the fire pit, then the maggot pit, now this?!<<endif>>
  2. <<if visited("Armory") and visitedbefore("Firepit", "Maggotpit")>>First the fire pit, then the maggot pit, now this?!<<endif>>

Again, variables can be substituted for passage name strings:
  1. <<if visitedbefore("Dragon Hoard", $myHome)>>You must've left it at home after meeting the dragon.<<endif>>

The two passage names must be separated by a comma.

Some notes:

  1. This doesn't count use of the <<display>> macro as a visit.
  2. If neither passage has been visited, visitedbefore() will return false.

Feel free to report any bugs to @webbedspace.

Capt_hastings-Chrissy's picture

Ghostie game jam game

im a ghost.jpg

A VN about being a ghost

Author: 
chrissy / cm0nster/ capthastings
Event Created For: 
Made For: 
An event
Scroungin_4_Catsup's picture

Pitch and Putt Club

gtscreenshot.png

A golf simulator that allows you to actually, physically play golf using your computer's mouse as the target hole. I'm sure most people reading this do not have golf balls and clubs laying around, but part of the appeal is that anything you want to use can fulfill those roles. I did not intend for the first two sentences to rhyme with each other.

Work on this began in September 2018, and I kept putting it away due to various life circumstances, as well as getting frustrated because my grand ideas were not always possible - or the solution for making them possible wasn't readily apparent to me. All in all, if I tallied up the amount of time I actively spent working on it, excluding the brainstorming stage, it probably took me a month's worth of full time work. I'm happy with the end result, a funny program that lets you to play a pretty well known game in a way that's just slightly different enough to seem weird and interesting.

Something I discovered during development, while I was testing this, is that you can play this game without actually treating it like a golf game. You can just swat the mouse around to activate the "hole out", and it almost takes on this fidget-spinner type quality to it. So while I keep referring to this as a "game" or a "golf simulator", in many ways it can also serve as a toy.

I'm glad to be able to work on other stuff now, free from the looming spectre of "but you haven't finished Pitch and Putt Club."

Hope someone out there enjoys this!

Author: 
Scroungin' 4 Catsup
Made For: 
An event

Hillbilly Bongo School

hillbily.jpg

Hillbilly Bongo School. It's pretty self explanatory, if that's even possible.

Writeup later, I should be getting ready for work.

Made For: 
An event

Unpredictable storyline twists

chr_cos_10_17.gif

I haven't decided yet if I should give explanations about this game.

Author: 
Pierre Chevalier
Made For: 
An event
captaincabinets's picture

Holy freaking rhinocerous on a coke binge, batman, we have a KnP ROGUELIKE

...well, more a proof of concept.

But seriously, I present the first version of Krawl! At this stage, it's just a random maze generator. It takes a little while, but it's kinda mesmerising. Linear searching of a matrix has never been so much fun!

This took me some hours. Though I've gotta say, it is one of my proudest achievements in Klik & Play to date.

Next step is making it look like a mad proppa dunjin with rooms and naturalism and all that bebop, but I'm a little spent.

Edit: For those interested, the algorithm is a slightly modified version of part I of this page . That page, in turn, came from the pretty interesting (for the mechanics-minded of you) 300 mechanics page.

AttachmentSize
krawl.zip116.12 KB
Pizza Time's picture

Obliterate The States

I was thinking about this game just this minute and thought it would be a good addition to the Trainwreck Gallery. Well it would if I could find a working link to the bloody thing as the only one I've found is a dead FortuneCity link. Kind of makes me wish I had saved a copy from 1998 or so since it is a "Klik" game, that sort of thing seems to be in vogue around these parts. All I could get of it was a description I yanked from some site;

"OBLITERATE THE STATES - The wacky yet entirely eco-friendly alternative to real-life military conflicts!" Four levels of challenging gameplay can be yours as you take on the guise of the Iraqi dictator himself and set out to free yourself from the oppression of the capitalist Western imperialists. Dodge the cycling figure of Kofi Anan, beat up Bruce Lee clones, take off into space to rescue stranded space monkeys and finally face Bill Clinton in a battle of the heavyweights..."

Which I think speaks for itself, really.

Robot Factory

RobotFactory_Screen.png
Game File: 

doodled the graphics while listening to the song https://www.youtube.com/watch?v=l0NYFVYiOzc

Author: 
thecatamites
Made For: 
testing
Lynx's picture

Search filter and rating system

If I want to find certain game genre's or look at games that people have made a real effort to create I have to go through the entire library of games. Even if I want to spend 5 minutes playing something crazy it takes time to find it.
A search filter system and rating system for all games is a must.

Syndicate content