FIFE forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

FIFE 0.4.0 has been released on 15th of January, 2017!

Author Topic: Request for Tutorial  (Read 3861 times)

phoku

  • Developer
  • Full Member
  • *
  • Posts: 102
    • View Profile
    • IZ dev blog
Request for Tutorial
« on: February 13, 2008, 03:50:31 am »

Good day, fellow FIFE hackers :-)

I have a favour to ask.

While I think the API documentation of pychan is in a rather good state,
I think we could start adding a Tutorial to the Wiki.

Maybe chewie or November could write a short Tutorial
for your fellow Game Creators on how to create a GUI with
pychan in the Wiki.

-phoku
Logged

chewie

  • Developer
  • Full Member
  • *
  • Posts: 123
    • View Profile
    • zero-projekt.net
Re: Request for Tutorial
« Reply #1 on: February 13, 2008, 11:15:53 am »

Of course I'll do :)

I already take care about the game creation guides in the Wiki - at least somehow... I have to confess that I was a little bit lazy concerning this issue in the last few months.

A pychan tutorial would be a good point to break with my laziness..   ::)

Anything special you want me to start with?

phoku

  • Developer
  • Full Member
  • *
  • Posts: 102
    • View Profile
    • IZ dev blog
Re: Request for Tutorial
« Reply #2 on: February 13, 2008, 01:05:14 pm »

Cool, thanks  :)

What to start with ... hm, maybe the classic hello world button?
So that the reader has clear instructions on how to get something
on screen and knows where to look for more info.

It's up to you really, my explanations usually lead to more confusion.

-phoku


Logged

chewie

  • Developer
  • Full Member
  • *
  • Posts: 123
    • View Profile
    • zero-projekt.net
Re: Request for Tutorial
« Reply #3 on: March 17, 2009, 11:01:58 am »

I finally started the "pychan tutorial project"  :D
(A first draft is appended to this post)

My personal vision for this tutorial:

- Skip Hello World as a code example (only write a small section about it in the Wiki)
- Show how pychan can be used to build a game gui
- Show examples which are close to the mission of FIFE (instead of writing yet another "HowTo GUI" example), basically these are "advanced tutorials"

So I started with the PychanMenuTutorial class, which shows how some buttons with callbacks can be used as a game menu. I documented the code and plan to write an Wiki article which points out some aspects (instead of using the Wiki to place code there - it's awfully to maintain). Epydoc documentation is also added, see doc/ dir.

Next steps would be:

  • HUD (maybe something non-RPG-ish would be cool - ideas?)
  • Inventory (Drag'n Drop example)
  • Combination of map and gui interaction (no idea yet which example I use - maybe "building" something like in RTS games; ideas are welcome)
  • "Statistics" gui - basically a demonstration on how to get massive data into the gui

Here's the example client (maybe we should integrate this into pychan demo later?)

pychan tutorials [*.tar.gz, ~110 kb]

Let me know if this sounds like a good plan, or if it doesn't make sense after all.  :)

Edit: fixed link (08/05/09)
« Last Edit: June 08, 2009, 08:19:32 am by chewie »
Logged

Auree

  • Newbie
  • Posts: 3
    • View Profile
Re: Request for Tutorial
« Reply #4 on: March 17, 2009, 07:18:16 pm »

The plan is great, it seems such a tutorial is exactly what I (as a pychan newbie) would wish to see!
Logged

LinuxDonald

  • Newbie
  • Posts: 28
    • View Profile
    • My Blog (German)
Re: Request for Tutorial
« Reply #5 on: May 11, 2009, 04:45:37 am »

« Last Edit: June 08, 2009, 08:20:48 am by chewie »
Logged

chewie

  • Developer
  • Full Member
  • *
  • Posts: 123
    • View Profile
    • zero-projekt.net
Dead link
« Reply #6 on: June 08, 2009, 08:20:22 am »

@Linuxdonald

Thanks for the pointer - I fixed the link  :)