ThePythonGameBook

learn Python. Create Games

User Tools

Site Tools


en:resources:people:jens_horst:part1step001

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:resources:people:jens_horst:part1step001 [2014/01/09 11:07] (current)
Line 1: Line 1:
 +^ [[en:start| ↑ Overview]] ^ [[:​en:​part1:​step002| → next ]] ^
 +====== step 001 - the idea ======
  
 +It is not necessary to learn a [[wp>​programming_language]] before writing your first game, but it is a very good idea indeed. The language of choice for this book is [[wp>​Python_(programming_language)|Python]],​ but that should not hinder you to take a look into other programming languages. In fact, your first game will need no programming language at all, just an idea.
 +
 +====== the idea ======
 +Let's imagine a very straight-forward [[wp>​Adventure_game|adventure game]], where the player is faced with a situation and has to choose one of several possible actions. The decision of the player leads to a new situation, possibly ending the game. Let say we put the player in the role of young knight Sir Robin, facing an giant angry dragon and has three possible options:
 +
 +Depending on the players choice, you confront him with a new situation. Let's say:
 +^  player'​s choice ^  outcome ​  ^
 +| player stand still: | dragon wait  (same situation)|
 +| player fight the dragon: | dragon runs away (new situation)|
 +| player run away: | dragon eat player (game over)|
 +
 +While the first choice lead to exactly the same situation as before (just more boring for knight & dragon), the second choice lead to a new situation (let's say the player hears a cry for help from a princess waiting to be rescued). The third choice ends the game.
 +
 +Let's visualize the idea of the game on paper:
 +
 +{{dragon-comic}}
 +{{tag>​todo}}
 +
 +====== realisation of the idea ======
 +How to realize the idea of a game ? \\
 +You can do that in several ways:
 +
 +==== verbal ====
 +Just take 2 human players, promote one to the "game master"​ tasked with reading or making up situation descriptions and possible actions, while the other player "​play"​ the game and choose one of the possible actions for each situation. \\
 +Sound simple ? Be assured that [[wp>​Dungeons_and_dragons|Dungeons & Dragons found a million-dollar industry out of this idea]].
 +
 +==== paper (gamebook) ====
 +Better suited for single players is to write all situation descriptions in a book where you give each situation a unique number (or page number). List every possible action below each situation description and write beside each action on what (page)number the reader should continue to read if he choose this action.
 +
 +If interested, ask in your local library for [[wp>​gamebook]]'​s like the [[wp>​Fighting_fantasy]] [[:​en:​resources:​books:​start#​gamebook|series by Steve Jackson and Ian Livingstone]]
 +{{tag>​todo}}
 +
 +==== wiki game ====
 +
 +such games are rapidly made inside a [[wp>​wiki]]. All you need is to know how to create & edit pages in a wiki and how to make [[wp>​hyperlinks]]. \\
 +Here in this [[en:​resources:​glossary:​d:​dokuwiki|dokuwiki]],​ you can use the buttons at the right of your screen to edit or create a page((you may need to login or register first)).
 +Dokuwiki'​s commands are listed in the [[:​wiki:​syntax|Formatting Syntax]], but all you really need to know is
 +
 +**how to make an hyperlink**:​\\
 +<​file>​
 +[[pagename|Visible clickable text]].
 +</​file>  ​
 +It is also useful to know that 2 spaces and a star and a space make a bullet-list line:
 +<​file>​
 +  * first listitem
 +  * second listitem
 +</​file>​
 +
 +
 +Play and enhance [[:​en:​resources:​games:​dragon-adventure:​start|The DokuWiki Dragon Adventure Game]]:
 +
 +{{page>:​en:​resources:​games:​dragon-adventure:​start}}
 +
 +
 +=== impress / powerpoint ===
 +If you have [[wp>​openoffice]] or [[wp>​microsoft_office]] installed on your computer, you can create a simple adventure game using the office software'​s presentation program, impress or powerpoint. Add on extra slide for each situation description and create hyperlinks leading to the corresponding slide.
 +
 +~~CLEARFLOAT~~
 +^ [[en:start| ↑ Overview]] ^ [[:​en:​part1:​step002| → next ]] ^
 +
 +
 +====== things to know ======
 +stuff 
 +
 +
 +
 +----
 +<​html>​
 +<script src=http://​www.spielend-programmieren.at/​config/​lang/​de/​counter/​cnt.php?​cid=ipBAGK></​script>​ / 
 +<script src=http://​www.spielend-programmieren.at/​config/​lang/​de/​counter/​cnt.php?​cid=mc9mTY></​script>​ /
 +<script src=http://​www.spielend-programmieren.at/​config/​lang/​de/​counter/​cnt.php?​cid=jyKCiQ></​script>​
 +</​html>​
 +
 +~~NOCACHE~~
/var/www/horst/thepythongamebook.com/data/pages/en/resources/people/jens_horst/part1step001.txt · Last modified: 2014/01/09 11:07 (external edit)