You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.
Skip to content
naveenk2k
/
[Type-Attack]
https://github.com/naveenk2k/Type-Attack)
Public
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Type-Attack/main.c
@naveenk2k
naveenk2k Resolved file name issues
3 contributors
317 lines (276 sloc) 5 KB
#include <ncurses.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include <unistd.h>
#include "gameplay.c"
#define WIDTH 30 // Of window
#define HEIGHT 5 // Of window
int startx = 0;
int starty = 0;
char *choices[] = {
"START"
};
int n_choices = sizeof(choices) / sizeof(char *);
void print_menu(WINDOW *menu_win, int highlight);
void T();
void Y();
void P();
void E();
void A();
void C();
void K();
int main()
{
WINDOW *menu_win;
int highlight = 1;
int choice = 0;
int c;
}
void print_menu(WINDOW *menu_win, int highlight)
{
int x, y, i;
}
void T()
{
// For first T
mvprintw(1,1, "");
mvprintw(1,2, "");
mvprintw(1,3, "");
mvprintw(1,4, "");
mvprintw(1,5, "");
mvprintw(2,5, "");
mvprintw(3,5, "");
mvprintw(4,5, "");
mvprintw(5,5, "");
mvprintw(6,5, "");
mvprintw(7,5, "");
mvprintw(1,6, "");
mvprintw(1,7, "");
mvprintw(1,8, "");
mvprintw(1,9, "*");
}
void Y()
{
mvprintw(1,11, "");
mvprintw(2,12, "");
mvprintw(3,13, "");
mvprintw(4,14, "");
mvprintw(5,14, "");
mvprintw(6,14, "");
mvprintw(7,14, "");
//mvprintw(7,14, "");
mvprintw(3,15, "");
mvprintw(2,16, "");
mvprintw(1,17, "*");
}
void P()
{
mvprintw(1,19, "");
mvprintw(1,20, "");
mvprintw(1,21, "");
mvprintw(1,22, "");
mvprintw(1,23, "");
mvprintw(2,23, "");
mvprintw(3,23, "");
mvprintw(4,23, "");
mvprintw(4,22, "");
mvprintw(4,21, "");
mvprintw(4,20, "");
mvprintw(4,19, "");
mvprintw(3,19, "");
mvprintw(2,19, "");
mvprintw(5,19, "");
mvprintw(6,19, "");
mvprintw(7,19, "*");
}
void E()
{
int i =0;
int j=25;
int x=25;
int y=25;
for( i = 0; i < 8; i++)
{
mvprintw(1,j, "*");
j++;
}
}
void A()
{
//First A
int i=0;
for(i=1 ; i<8 ; i++)
{
mvprintw(i,34,"*");
}
}
void K()
{
int i;
for(i=1; i<8 ; i++)
{
mvprintw(i,69,"*");
}
}
Footer
© 2022 GitHub, Inc.
Footer navigation
Terms
Privacy
Security
Status
Docs
Contact GitHub
Pricing
API
Training
Blog
About
Type-Attack/main.c at master · naveenk2k/Type-Attack
The text was updated successfully, but these errors were encountered: