Skip to content

crixthegreat/typing_practice_III

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typing_practice_III (a simple python cocos2d game)

It has the very same game mechanism of typing practice 2

I used following features of python and cocos2d

  • module packages to make the code clean significally
  • cocos2d labels, sprites, images
  • cocos2d scrollable layer
  • cocos2d background layer with a .tmx file generated by Tiled (a software to make tile-based maps)

what's new in ty3

  • title screen background fix
  • added scrollable background in main game
  • we have music now!

The code structure:

ty3.py -- main program
    /data
        __init__.py
        Const.py -- stores the game CONSTs
        highscore.py -- handling the highscore
        highscore.tp -- the highscore data file
        map.tmx -- the background tile map (with the layer 'start')
        map_tile.png -- the cell image of the tile map of the background
    /materials
        __init__.py -- defines the labels, sprites, imgs to be used globally
        /background
            (not used in this game)
        /main_scr
            __init__.py -- defines the labels, sprites, imgs to be used in main game screen
        /menu
            __init__.py -- defines the labels, sprites, imgs to be used in menu layer
    /tool
        file_test.py -- to initialise the high score record file
    /pic
        alpha.png -- the alphabet image file
        bg.png -- the backgroud image file (800 x 600)
        start.png -- the 'start' image file
    /music
        title.ogg -- the title music
        main.ogg -- the main game music
        highscore -- the highscore mode music

Releases

No releases published

Packages

No packages published

Languages