made it so that branches would be drawn on branches

This commit is contained in:
2025-11-04 12:13:42 -08:00
parent 51c2ff25e6
commit 998c2aa393
3 changed files with 76 additions and 38 deletions

View File

@@ -118,13 +118,8 @@ int main (int argc, char *argv[]) {
char commandInput[255] = "";
unsigned char keyPressed = 0;
branch b = {
.startPos = (nomi_vec2){term_current_size().x/2.0,term_current_size().y/2.0},
};
branch b1 = {
.startPos = (nomi_vec2){30,term_current_size().y- 10},
};
branch b = create_branch(NULL, (nomi_vec2){0,1});
branch b1 = create_branch(&b,(nomi_vec2){1,1});
// Window Createion
struct tart_window window = tart_create_window();
@@ -155,6 +150,8 @@ int main (int argc, char *argv[]) {
tart_restore_window(&window);
tart_restore_buffer(tart_get_buffer(&window, 0));
b = create_branch(NULL, (nomi_vec2){0,1});
b1 = create_branch(&b,(nomi_vec2){1,4*2});
if(keyPressed) {
tart_draw_window(&window, 0);
@@ -263,7 +260,7 @@ int main (int argc, char *argv[]) {
DrawBranch(&b, &window, 0);
//DrawBranch(&b1, &window, 0);
DrawBranch(&b1, &window, 0);
tart_draw_window(&window, 0);
if(mode == COMMAND_MODE) {