Welcome to my basic games!

we have learnt to code with python

Alien fall

This is the python code using pygame zero:


  # alien is a sprite,that is, a moving images in a game
  # Actor is the name of a Class sprite (Nayara is an example of the class Homo sapiens), this means create an object from a class 
  # oscarcasas is a name of a image in the folder images
alien = Actor ('oscarcasas')
# topright means to locate the image in the top right corner
alien.topright = 0, 10
# screen sice in pixels
WIDTH = 500
HEIGHT = alien.height + 20

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


def update():
    alien.left += 2
    if alien.left > WIDTH:
        alien.right = 0
        
  

This is a videotutorial showing how to create a basic game named Alien Fall

I am Nayara, in this website you will find my work a school project where our school is participating during the school year 2020-2021. Our Erasmus+ partner schools are from Greece, Italy, Czech Republic and Spain Visit school website here Pompeu Fabra de Martorell.

Some of the project objectives are:

  1. To learn how to create a website about videogames for an Erasmus + project for my school: Institut Pompeu Fabra using Javascript and p5.js
  2. To learn how to build a mobile App using MIT App Inventor for this project
  3. To create original videogames based on traditions
  4. 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)
  5. 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:
  6. Look carefully the following videotutorial:
  7. Every student will use differnt images related to local traditions in their own neocities websites and mobile apps creations
  8. 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.
  9. 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
  10. 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.
  11. To learn more about HTML, CSS and Javascript, check out these tutorials and www.w3schools.com!