Il giorno martedì 21 maggio 2013 17:30:18 UTC+2, Amer Khan ha scritto:
>
> Sorry if I sound stupid, but I am totally new to IF, but really fascinated by it. . I have a question: is it possible to make a game that includes calculations, say, puzzles that involve calculations? I am thinking of making math/statistics related games using Inform 7 but not like the 'abstract' kind of questions that you see in the textbooks. More like a math/statistics related problem that is embedded in a story (using all the IF structures like rooms etc), and which can be solved by inputting text and numbers.
>
Well, here you can find a simple game where a pirate has to hit a boat with cannon balls
http://milleuna.3owl.com/_Fuoco_alle_polveri!/
The game makes a heavy use of the math capabilities of Inform7.
In practice, the player must input some parameters about the gun and the powder charges (all set through the usual IF commands), then the system computes the trajectory of cannon balls through the ordinary physics formulae.
This example is written in italian, but if you are interested in a translation I can write it (however there are similar examples in the documentation).