mirror of
https://github.com/abakh/nbsdgames.git
synced 2025-02-02 15:07:27 -05:00
redsquare
This commit is contained in:
parent
706dfd8d86
commit
b7788582d4
@ -27,12 +27,13 @@ These include:
|
|||||||
* Fisher
|
* Fisher
|
||||||
* Muncher
|
* Muncher
|
||||||
* Miketron
|
* Miketron
|
||||||
* Redsquare
|
* Redsquare (Conway's Game of Life made playable!)
|
||||||
|
|
||||||
They natively run on Linux, BSD, MacOS and are known to work on Windows as well (using PDCurses, thanks to Laura Michaels for providing advice).
|
They natively run on Linux, BSD, MacOS and are known to work on Windows as well (using PDCurses, thanks to Laura Michaels for providing advice).
|
||||||
|
|
||||||
The difficulty and/or dimensions are adjustable through simple command line options, you can play a minesweeper game that take hours to complete, or exprience hexadecimal sudoku and 8x8 fifteen-like puzzles!
|
The difficulty and/or dimensions are adjustable through simple command line options, you can play a minesweeper game that take hours to complete, or exprience hexadecimal sudoku and 8x8 fifteen-like puzzles!
|
||||||
|
|
||||||
|
I have encounterd Fisher, Muncher and Miketron on MikeOS and RedSquare on KolibriOS.
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
* git (optional)
|
* git (optional)
|
||||||
@ -71,7 +72,7 @@ It's been made available for openSUSE thanks to Jan Brezina: https://build.opens
|
|||||||
## How to contribute
|
## How to contribute
|
||||||
* Share these with your friends
|
* Share these with your friends
|
||||||
* Tell me your feature requests, bug reports, etc.
|
* Tell me your feature requests, bug reports, etc.
|
||||||
* Tell me the games you want to be added (in the same genre, i can't port Angry Birds to curses! :)
|
* Tell me the games you want to be added (but in the same genre, i can't port Angry Birds to curses! :)
|
||||||
* Make a package for your distro (or put it on repos if it's not there)
|
* Make a package for your distro (or put it on repos if it's not there)
|
||||||
|
* Does anyone understand debian's .orig.tar.gz and the process to make packages to the repos? Any help would be appreciated.
|
||||||
Also thank to all the people who helped in the previous versions, i didn't expect such assistance <3
|
Also thank to all the people who helped in the previous versions, i didn't expect such an amount of assistance <3
|
||||||
|
@ -1 +0,0 @@
|
|||||||
user@laptop.7227:1577913591
|
|
BIN
sources/.goutputstream-AJM9K0
Normal file
BIN
sources/.goutputstream-AJM9K0
Normal file
Binary file not shown.
BIN
sources/.goutputstream-OX8YK0
Normal file
BIN
sources/.goutputstream-OX8YK0
Normal file
Binary file not shown.
BIN
sources/.goutputstream-R7WXK0
Normal file
BIN
sources/.goutputstream-R7WXK0
Normal file
Binary file not shown.
BIN
sources/.goutputstream-T6D8K0
Normal file
BIN
sources/.goutputstream-T6D8K0
Normal file
Binary file not shown.
BIN
sources/.goutputstream-VOM2K0
Normal file
BIN
sources/.goutputstream-VOM2K0
Normal file
Binary file not shown.
Binary file not shown.
@ -468,6 +468,8 @@ int main(void){
|
|||||||
int prey,prex;
|
int prey,prex;
|
||||||
int cinred;
|
int cinred;
|
||||||
Start:
|
Start:
|
||||||
|
curs_set(0);
|
||||||
|
halfdelay(9);
|
||||||
cinred=0;
|
cinred=0;
|
||||||
py=LEN*3/4;
|
py=LEN*3/4;
|
||||||
px=WID/2;
|
px=WID/2;
|
||||||
@ -575,12 +577,31 @@ int main(void){
|
|||||||
DidntMove:
|
DidntMove:
|
||||||
if( input=='q')
|
if( input=='q')
|
||||||
sigint_handler(0);
|
sigint_handler(0);
|
||||||
|
if( input=='p'){
|
||||||
|
nocbreak();
|
||||||
|
cbreak();
|
||||||
|
erase();
|
||||||
|
logo();
|
||||||
|
attron(A_BOLD);
|
||||||
|
addstr("\n PAUSED");
|
||||||
|
attroff(A_BOLD);
|
||||||
|
refresh();
|
||||||
|
|
||||||
|
getch();
|
||||||
|
|
||||||
|
halfdelay(9);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
printw("Wanna play again?(y/n)");
|
printw("Wanna play again?(y/n)");
|
||||||
|
nocbreak();
|
||||||
|
cbreak();
|
||||||
curs_set(1);
|
curs_set(1);
|
||||||
flushinp();
|
flushinp();
|
||||||
|
|
||||||
input=getch();
|
input=getch();
|
||||||
|
|
||||||
if(input != 'N' && input != 'n' && input != 'q')
|
if(input != 'N' && input != 'n' && input != 'q')
|
||||||
goto Start;
|
goto Start;
|
||||||
endwin();
|
endwin();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user