Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • wise2023_jumpnrun/jumpnrun
1 result
Show changes
#include "output.h"
#include "hDateien/output.h"
//V: renderer exists, enum row_type is correct and not renamed, correct y coordinates are transferred
//N: img corresponding to row_type is set to coordinates: x: 0 to 900 y: y to y+100 and displayed via renderer
......
#include "rows.h"
#include "hDateien/rows.h"
//Vorbedingung: -200<=y_pos<=1000
......@@ -116,13 +115,13 @@ struct Row* init_row(struct Row *m){
int p;
// Ziellinie erscheint alle 100 Punkte
if(playerhighscore + (player->y/ROW_SIZE) % 100 == 98){
if((playerhighscore + (player->y/ROW_SIZE)) % 100 == 98){
if (m->row_type != grassDark && m->row_type != waterDarkSingle && m->row_type != waterDarkMultiple){
n = grass(true,true,m->y_pos - ROW_SIZE);
}else{
n = grass(false,true,m->y_pos - 100);
n = grass(false,true,m->y_pos - ROW_SIZE);
}
// Nach einer Ziellinie kommt immer Gras
......
#include "title_screen.h"
#include "hDateien/title_screen.h"
/*
Vorbindung: Es existiert ein SDL_Renderer
Nachbedingung: /
......