Thursday, February 7, 2019

Building Your Own Adventure - the plan

Building Your Own Adventure Game

In 2018 I followed the Raspberry Pi Foundation course "Object-oriented Programming in Python: Create Your Own Adventure Game" on FutureLearn.

It was an interesting course and I learned a great deal about the Python language and how it can be used in object orientated design.

One thing I also discovered was the existence of Python Anywhere. Python Anywhere is an online development platform, accessible via a browser. This allows you to develop Python applications from anywhere you have a browser and an internet connection.

And the great thing about it is that it is Free! 

Okay, there is a limited capacity version that is free, but it will allow you to develop your Python skills without needing to handle any background tasks such as setting things up (or having an actual PC).

It also has the ability to use the Flask, Django and Web2Py web hosting.

The free version can host MySQL databases (the paid version also has Posgres databases).

So what has this got to do with Building Your Own Adventure?

Well, the adventure game you build on the course is a one player game on your machine, would it not be more fun to be able to play it with a friend. And on the Internet!

So the objectives are:
  1. Build a MySQL database to hold the environment for the game and the user information.
  2. Use Python to develop and test classes to use in the final application.
  3. Use Python and Flask to generate the user interface and the back end processing.
  4. Update the user interface to use AJAX to improve the responsiveness of the interface.
  5. Explore strange new environments
This game builds on the concepts covered by the course, so it is worth taking it before trying anything covered here.

References

https://www.futurelearn.com/courses/object-oriented-principles
https://www.raspberrypi.org/blog/making-text-adventure-wireframe-6/
https://magazines-static.raspberrypi.org/issues/full_pdfs/000/000/032/original/Wireframe06.pdf?1548412446
https://letstalkdata.com/2014/08/how-to-write-a-text-adventure-in-python/
https://www.pythonanywhere.com
https://en.wikipedia.org/wiki/PythonAnywhere