Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 33da9455 authored by Florent Bouchez Tichadou's avatar Florent Bouchez Tichadou
Browse files

level ideas for the basic engine

parent fa129bdb
No related merge requests found
Level ideas for the basic engine
* Keys
See medium/keys.
Two keys are generated at a random position to open two doors. The character
"scans" the area by walking on every tile with a double for loop. When
opening the first door, we lose two keys instead of one.
BUGS:
- using = in comparison instead of ==
- forgetting to go back to the central position when finding a key
- finding the key on the first column while going into position, then
looping until a key is found.
* Bridge
There is a river dividing the map, the flag is on the right side. On the left
side there is a switch that can be activated to make a bridge appear. But the
switch cannot be activated.
BUG:
- permuted x/y coordinates when checking for the switch
- the bridge is too short (off by one loop on the river width)
* Holy Grail
Six knights block the passage. When arriving near them, they say to the
character: "We are the knights who say 'Ni!' and we want a shruberry."
If the player tries to pass nontheless, the knights shout 'Ni!' which makes
the character go backwards a few tiles.
The knights ask the character for a sentence. If the character says 'it' in
the sentence, it make the knights howl in pain and then retreat, allowing the
character to pass.
NOTE:
- can be used to force students to read the code to discover the "password".
- maybe for medium engine, when user can move the character?
BUG:
- wrong string comparison with "it".
* Holy Hand Grenade
The character is attacked by a mad rabbit...
…And Saint Attila raised the hand grenade up on high, saying, “O LORD, bless
this Thy hand grenade that with it Thou mayest blow Thine enemies to tiny
bits, in Thy mercy.” And the LORD did grin and the people did feast upon the
lambs and sloths and carp and anchovies and orangutans and breakfast cereals,
and fruit bats and large chu…
“Skip a bit, brother”
… And the LORD spake, saying, “First shalt thou take out the Holy Pin, then shalt thou count to three, no more, no less. Three shall be the number thou shalt count, and the number of the counting shall be three. Four shalt thou not count, neither count thou two, excepting that thou then proceed to three. Five is right out. Once the number three, being the third number, be reached, then lobbest thou thy Holy Hand Grenade of Antioch towards thy foe, who being naughty in My sight, shall snuff it.”
NOTE:
- maybe for medium/advanced engine
* You shall not pass
Long narrow bridge guarded by an old man who breaks it when the character
tries to cross.
Player can drink an invisibility potion, but then you cannot see the
character anymore.
* Password
Player is asked a password by a guard in front of a door. The password is
"Swordfish" and must be discovered by reading the code. Moves are scripted
but when the guard ask for the password it is actual input read from stdin
that the player must enter.
BUG:
- Comparison is done using a loop (and not strcmp) that goes too far and
compares the '\n' of the player input with the '\0' of the original string.
- or comparison is done using == instead of strcmp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment