Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs3-24sp
project03
Commits
5826708c
Commit
5826708c
authored
2 months ago
by
Maxwell F. (Max) Chen
Browse files
Options
Download
Email Patches
Plain Diff
demo ordering
parent
1e288dc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
demo/pacman.c
+5
-5
demo/pacman.c
with
5 additions
and
5 deletions
+5
-5
demo/pacman.c
View file @
5826708c
...
...
@@ -19,10 +19,6 @@ struct state {
// TODO: Add any other fields in state you need for your demo
};
state_t
*
emscripten_init
()
{
// TODO: Initialize the state
}
/** Make a circle-shaped body object.
*
* @param center a vector representing the center of the body.
...
...
@@ -55,7 +51,7 @@ body_t *make_circle(vector_t center, double radius, double mass,
* @param center a vector representing the center of the pacman
* @return list of vectors representing points of pacman object.
*/
list_t
*
get
_pacman
(
vector_t
center
)
{
list_t
*
make
_pacman
(
vector_t
center
)
{
list_t
*
points
=
list_init
(
1
,
free
);
vector_t
*
vec
=
malloc
(
sizeof
(
vector_t
));
assert
(
vec
);
...
...
@@ -79,6 +75,10 @@ list_t *get_pacman(vector_t center) {
return
points
;
}
state_t
*
emscripten_init
()
{
// TODO: Initialize the state
}
void
emscripten_main
(
state_t
*
state
)
{
// TODO: Implement the main loop
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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