Welcome to my basic games!

We have learn to code with python.

Example of a python game:

This is the python code using pygame zero:


  

  import pgzrun

  pol = Actor('pol')
  pol.topright = 0, 10

  WIDTH = 750
  HEIGHT = pol.height + 10

  def draw():
      screen.clear()
      pol.draw()


  def update():
      pol.left += 5
      if pol.left > WIDTH:
          pol.right = 0

  pgzrun.go()

   
  • To learn how to create a website about videogames for an Erasmus + project for my school: Institut Pompeu Fabra using Javascript and p5.js
  • To learn how to build a mobile App using MIT App Inventor for this project
  • To create original videogames based on traditions
  • Our first game is a T-rex like videogame using traditional big-head from Martorell ("capgrossos" in Catalan language) and the Devil's bridge (Pont del diable in Catalan)
  • To create a T-Rex like videogame you will follow the less than 200 code lines from this Youtube video tutorial, in the following steps:
  • Look carefully the following videotutorial:
  • Every student will use differnt images related to local traditions in their own neocities websites and mobile apps creations
  • To create in your neocities a folder named trex and inside that folder a file named "index.htlm" and another named "trex.js" in order to make the game work.
  • You can copy the code from the video above in the files index.htlm and trex.js. Remember code does not allow mistakes and typos. In case of doubt copy the code from http://github.com/drfperez/erasmusvideogame
  • Edit the big-head images, Devil's bridge images and all images involved in the game using GIMP editor and substitute the images in the game.
  • To learn more about HTML, CSS and Javascript, check out these tutorials and www.w3schools.com!