caoleminhhieu / race_betting_game Goto Github PK
View Code? Open in Web Editor NEWRace betting game using Pygame
Race betting game using Pygame
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.