Random posts

Malefact's picture

Space Jumper

Space Jumper.PNG
Game File: 

Try to reach the STAR by using your magical SPACE JUMP! But mind your JUMP POWER - you wouldn't want to collide with any SPACE SPIKES!

I have a bad feeling this idea may have been done before

Made For: 
Pirate Kart 2
RehaSoft's picture

Set Fire to the rain

01fire.png
Game File: 

Some games I whipped up for the 100th KotMK. Released 4 hours early since I won't have much time to submit games.

Game 1/4 so far.

Press f to set fire to the rain and shift to turn it back into water.

Made For: 
An event
tininsteelian's picture

there are definitely trains in this game

tadtitg.png

Made for 1HGJ #224: Trains

Move the trains around, and make them collide to reveal the picture underneath the screen. There's no real objective to this game.

Sources: https://pixabay.com/photos/locomotive-diesel-russia-train-60539/

Made For: 
An event
zum's picture

BRAINSSS: kreator's kut

I did a little work on BRAINSSS just now, because I think it was kind of unplayable as I submitted it.

Here is the complete lowdown, since I hadn't written one:

In BRAINSSS, you control two zombies in love. They're just out for a nice dinner and some dancing, but some closed-minded humans don't appreciate the sight of public displays of zombie affection (affliction? infection? whatever) and are determined to spoil their fun. Fortunately, the zombies' passion burns so fiercely that it manifests in physical form, consuming anything in its path. Let's show them the power of love!

One zombie is controlled with the WASD keys, and the other with the arrow keys; they shoot flames at each other automatically. You can bring the zombies together to regenerate health, though doing this limits the range and effectiveness of the fire. You start off with 20 (shared) health, but can go up to 30.

Also, uh, bonus two-player mode at no extra charge?

AttachmentSize
BRAINSSkk.zip247.06 KB

Spuktro: Escape from the Haunted Coffee Shop

spuktro_ss.png
Game File: 

Silly little game, cheap scares, not much to see.

Space bar or left mouse click to start, arrow keys to move.

Event Created For: 
Made For: 
An event

Twine code shortcuts minutia

This is an optional appendix to my Twine code shortcuts article. Most of the things here are entirely valid, but aren't as intuitive, and don't really save that much in the way of typing or expression. Nonetheless, they do reveal some underlying concepts to JavaScript that may be enlightening.

Reducing strings and numbers to true and false

In JavaScript, using strings or numbers in place of true, false, or conditional statements such as "x > y" means that the computer will try and convert the strings or numbers into either true or false. The rule for those two types of values is: the number 0 and a string with zero characters in it, "", are converted to false - everything else is converted to true. (0 and "" are called "falsy" values because they're equivalent to false - other values are "truthy").

(If you're familiar with Game Maker, you of course know that Game Maker considers all negative numbers to be falsy as well - but not so in JavaScript!)

This is not really that useful, except for explaining the behaviour of later examples, but it does mean that you could shorten certain <<if>> comparisons:

<<if $hp neq 0>>

can be shortened to

<<if $hp>>

You can also use Not to express the opposite.

<<if $hp eq 0>>

can be validly rewritten as

<<if not $hp>>

false is equivalent to 0, true is equivalent to 1

With regards to numbers, the process of true/false coercion also works symmetrically - the value false, when used in arithmetic, is converted to 0. <<set $red = 3 + false>> is valid, but useless. Nevertheless, this understanding is necessary for the next part.

As a corollary, the raw value true, when used in arithmetic, is converted to 1. This means that <<set $dead += (not $hp)>> will add 1 to $dead if $hp is 0.

And and Or

The way And and Or is implemented in JavaScript is interesting: "x and y" means "if x is false, the value of this statement is x (i.e false), otherwise the value of this statement is y". And, as discussed previously, since such statements are usually used for true/false comparisons, then y is reduced to its true/false value - as one expects.

However, what if you used it in a situation where a plain value was expected? Essentially, it can be used in a manner similar to the ternary operator:

<<set $liveammo = ($gun and $bullets)>>

This line, given the rule above, sets $liveammo to equal $bullets, but only if $gun is true - if not, it's set to false, i.e. 0 (or whatever falsy value $gun has). It may look counterintuitive, especially since it relies on the aforementioned understanding of true/false reduction, but it's equivalent to <<set $liveammo = ($gun ? 0 : $bullets)>>

Or is implemented in JavaScript this way: "x or y" means "if x is true, the value of this statement is x (i.e true), otherwise the value of this statement is y". This means you could use it like this:

<<set $samusenergy = ($energytank or $reservetank)>>

That line only sets $samusenergy to be $reservetank if the $energytank variable is 0. It's equivalent to <<set $samusenergy = ($energytank ? $energytank : $reservetank)>>

It can also be used, in a way, to specify a "default" value if the first value is 0 or an empty string:

<<set $name = ($name or prompt(“What’s your name?”))>>

This line of code will only prompt the player if $name isn't an empty string (i.e. a name was already given).

LINK II

advlink2.png

LINK II is a high fantasy themed action-adventure game based on the popular Nintendo franchise and was released in 2012 by bitbot. The game is notable for overcoming its limitations, being the largest ZZT world to date. Gameplay consists of a mixture of action, adventure and puzzle solving. Features include an inventory menu, RPG-style battles, a fishing game, a platform level, cutscenes and full musical score in PC speaker using a unique playback engine. Additionly, there are side quests and mini-games that pay homage to such classics as Adventure and Digger. LINK II is a direct sequel to Zelda II: The Adventure of Link again involving the protagonist, Link, on a quest to save Princess Zelda and recover the Triforce. As of this writing, it is the only sequel to the original, as all other games in the series are prequels, according to the official Zelda timeline.

Video link: https://youtu.be/ZaMHdsa7Bi8
Website: http://geocities.ws/bestofzzt

Made For: 
An event
Pizza Time's picture

Olympic High Jump

06title.jpg
Game File: 

Olympic High Jumping will test how how you can jump and how much yo ucan twist yourself over the high bar.

Made For: 
Pirate Kart 2
Syndicate content