Thursday, May 28, 2009

THE TRAIN : MY FIRST VISUAL IN PYGAME

THE TRAIN
My first visual in PyGame ! THE TRAIN ! .....

Fig 1. PyGame , Game Development in Python

One of the first motion pictures was 50 second screening of a train , I took a leaf out of that. My first visual in PyGame is a train passing through a field with birds flying away in the sky.

The visual was made using 4 sketches or rather 3 'sprites' , One for the train , One for the setting and 2 for birds in either directions. The sound effects were my efforts to record train sounds from the London Underground and also the Southern Rail , and then painfully converting them to ogg files.

Fig 2. Screen-shot 1

Fig 3. Screen-shot 2


Video 1 .The Train

THE GOOD BITS !
My first efforts yielded some success !


(1) The train moves !

(2) The birds in both the directions gives a more realistic effect !
(3) 3 movements incorporated in the same scene !
(4) The sound effect was icing to the cake

(5) All of it , from conceptualisation to realisation was mere 4 days !


WHAT REMAINS TO BE DONE !

(1) The train 'glides through' I wish I could make the wheels to go round
(2) It is all too sketchy , B/W !
needs some glamour !
(3) The sound is not in sync with the train's movement
(4) Lack of an user input !
(5) All looks a bit kiddish !

THE CODE
No programming discussion is ever finished without the code !

The code is a single python program (train.py) , available in Reference (2) .

1 comment:

Unknown said...

Very good... keep it up... from Mamma/Baba