wattahay / cli-game-scripts Goto Github PK
View Code? Open in Web Editor NEWMinimal Python game script. Works foremost in xfce4-terminal and Gnome terminal
Minimal Python game script. Works foremost in xfce4-terminal and Gnome terminal
upon holding down an arrow to move the player,
the player should immediately zoom in that direction
however, the player moves once, and then skips a frame before moving again
perhaps this would require a while loop that has a getch() function in it like the fix for the pull function
oy
refer to the decision tree overhaul
key control settings reset on every new level
The terminal version works fine, but the console has problems clearing and refreshing so quickly
If there is a simple solution, it will likely be with synchronizing the game frame rate with the screen Hz.
board is not 1080p or 4k compatible
experiment with ansi hacks as alternative to printing the entire board every single frame.
Boards in terminals larger than the max size parameters are not centered vertically.
right now it seems like the beasts probably don't scatter enough
create a setting to increase and decrease the randomness of the beasts' movement decisions
Feature of Bug?
The feature might be desirable over the old game, because the old game lacks control sometimes. However nice it is to get up and going, it does not usually prove THAT advantageous game-wise.
one possible fix is to use:
xset -r 120 20
however, this changes the keyboard delay system-wide
Another option is to start using pygame, and to see if the keyboard event function works independent of a GUI version.
Pulling blocks only works in two modes, neither of which is like the original:
The original behavior is that pulling works as long as one holds down the spacebar, but then stops when the user lets off of it.
right now, the behavior is to only be able to enter the settings menu at opportune moments before each level
make the settings available in a better capacity
some settings can only change in between levels, and not mid-play of a level, while others can be change immediately. perhaps these settings can be separated by the tab in which they exist in the settings menu
make the pause function clear itself by printing blank spaces over it
and then immediately printing the board again
this might be an issue of beasts entering the same location on the same frame, but that does not necessarily make sense.
find a way to reset the terminal before exiting
move cursor off the board or hide text
the get-key thread crashes, stops, halts, or errors out preventing gameplay
This at least happens with consecutive eggs
this is not that bad.
Might be a better 'feature' for monsters.
the inkey function accepts 1 character input, and the arrow keys are read as a set of multiple characters.
Find a new method for accepting keyboard input that allows the usage of arrow.
There's a huge potential for great regression if a solution to this problem is found.
utilize the mod3 structure to dynamically build block ranges similar to the classic board setup.
tested on fedora, and the game does not work.
Works on various versions of python3 in Ubuntu/Mint xfce.
Probably has something to do with differences in the getch function keyboard inputs.
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.