Git Product home page Git Product logo

race_betting_game's Introduction

Hi guys,

This Race Betting Game is a game written by Python (using only Pygame).

If you are beginer in Python, you should watch "Pygame tutorials sentdex" before blending into my code.

link: https://www.youtube.com/watch?v=ujOTNg17LjI&list=PLQVvvaa0QuDdLkP8MrOXLe_rKuf6r80KO

This tutorials are extremely basic, so you can learn and make your own game easily. (just like me :3 )

All my sources (images) from Internet I write them at first lines in source code, so you can
check them out and replace what you want.

My source code contains a lot of functions to solve game's features such as:
	+)leader_board() function to show Top 3 highscores in history when you click on button LEADERBOARD at start menu interface.
	+)input_and_map() function which contains several functions (input_numplayer(), input_name(), choose_racer())
	  to input infomation from players.	
	+)I write comments thorough my code so you can get better understand them, if my comments are bad, you can contact me by gmail (at the end)

And I think the main difficulty in my code is find out the way I used lists, matrices for conecting functions, storing players's information, and conditions to call functions.
Everything that users input or click (for typing name, choosing racer or maps) will call the respective function, and almost functions include WHILE LOOP, so I used some lists to create
conditions to make sure the functions be called correctly. Moreover, lists are also to store images for character's animation, to rotate characters, etc...

When I made this game, my English is not good and I was a beginger in Python, you maybe get stuck. Therefore, plz contact me by gmail:

	[email protected]

If my code is too bad to understand, you can just try and enjoy my game :)

Thanks for reading till the end! <3

race_betting_game's People

Contributors

caoleminhhieu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.