Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HaSi-Gamejam 2021
Little Big Racing Game
Commits
2e79aff0
Commit
2e79aff0
authored
Apr 11, 2021
by
danb
Browse files
Last minute changes
parent
d3197925
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shader_4k.c
View file @
2e79aff0
...
...
@@ -181,7 +181,7 @@ int main()
SDL_Event
e
;
const
float
max_speed
=
0
.
0
1
f
;
const
float
max_speed
=
0
.
0
3
f
;
const
float
accel
=
0
.
05
f
;
const
float
angular_speed
=
0
.
5
f
;
const
float
off_track_thresh
=
1
.
1
f
*
.
07
;
//track_width
...
...
@@ -303,7 +303,7 @@ int main()
}
else
if
((
t
-
ft
)
>
2
.
f
)
{
printf
(
"You made %d rounds!
\n
"
,
rounds
);
SDL_Log
(
"You made %d rounds!
\n
"
,
rounds
);
// After two seconds of falling reset the game
pos
=
0
.
f
;
pos_orth
=
0
.
f
;
...
...
@@ -318,8 +318,6 @@ int main()
uindex
=
glGetUniformLocation
(
frag_prog
,
"t"
);
glUniform1f
(
uindex
,
t
);
printf
(
"%dx%d
\n
"
,
width
,
height
);
// The resolution
uindex
=
glGetUniformLocation
(
frag_prog
,
"r"
);
glUniform2f
(
uindex
,
width
,
height
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment