baoyukun / supertypist Goto Github PK
View Code? Open in Web Editor NEWA simplified "金山打字通" of python version based on Pygame.
License: MIT License
A simplified "金山打字通" of python version based on Pygame.
License: MIT License
ERROR: Could not find a version that satisfies the requirement time (from versions: none)
ERROR: No matching distribution found for time
why ?
i had seen the file of requirements.txt
in the file there
pygame
argparse
time
re
what are time and re ?
can you help me ?
You mentioned in pygame/pygame#673 that the game is using a lot of CPU rendering the text. I suspect (but have not profiled the game) that you can gain a considerable performance by avoiding the reloading of the Fonts for each word rendered.
I.e.
word_surface = pygame.font.Font(
None, 36).render(wordText, 1, color)
Would be replaced with:
# in __init__
[...]
self.font = pygame.font.Font(None, 36)
# in renderWord
word_surface = self.font.render(wordText, 1, color)
Another approach that might work in this particular game would be to cache the rendered words (clearing the cache when self.text
is reset).
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.