Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jumpNrun
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wise2023_jumpnrun
jumpNrun
Commits
e26609f2
Commit
e26609f2
authored
1 year ago
by
187Bit
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of git.imp.fu-berlin.de:wise2023_jumpnrun/jumpnrun
parents
2beb54f1
891f3e34
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
map.c
+6
-6
6 additions, 6 deletions
map.c
with
6 additions
and
6 deletions
map.c
+
6
−
6
View file @
e26609f2
...
@@ -115,17 +115,17 @@ int move_map(enum vehicle theme,int delta_y,struct LinkedList *list, SDL_Rendere
...
@@ -115,17 +115,17 @@ int move_map(enum vehicle theme,int delta_y,struct LinkedList *list, SDL_Rendere
if
(
paste_row
(
renderer
,
cur
->
y_pos
,
cur
->
row_type
))
if
(
paste_row
(
renderer
,
cur
->
y_pos
,
cur
->
row_type
))
return
(
-
1
);
return
(
-
1
);
if
(
cur
->
cars
!=
NULL
){
if
(
move_car
(
renderer
,
cur
)
&&
cur
->
y_pos
<=
player
->
y
&&
player
->
y
<=
cur
->
y_pos
+
ROW_SIZE
){
return
(
1
);
}
}
if
(
cur
->
y_pos
<=
player
->
y
&&
player
->
y
<=
cur
->
y_pos
+
ROW_SIZE
&&
(
cur
->
row_type
==
grassBright
||
if
(
cur
->
y_pos
<=
player
->
y
&&
player
->
y
<=
cur
->
y_pos
+
ROW_SIZE
&&
(
cur
->
row_type
==
grassBright
||
cur
->
row_type
==
grassDark
||
cur
->
row_type
==
finishlineBright
||
cur
->
row_type
==
finishlineDark
)){
cur
->
row_type
==
grassDark
||
cur
->
row_type
==
finishlineBright
||
cur
->
row_type
==
finishlineDark
)){
recenter_player
();
recenter_player
();
}
}
else
if
(
cur
->
cars
!=
NULL
){
if
(
move_car
(
renderer
,
cur
)
&&
cur
->
y_pos
<=
player
->
y
&&
player
->
y
<=
cur
->
y_pos
+
ROW_SIZE
){
return
(
1
);
}
}
if
(
cur
->
next
==
NULL
){
if
(
cur
->
next
==
NULL
){
break
;
break
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment