Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
krkane
/
Rüütli Vaev
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4ba8d006
authored
Mar 21, 2024
by
krkane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update main.c
parent
78603129
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
Source/main.c
Source/main.c
View file @
4ba8d006
...
...
@@ -47,8 +47,8 @@ int main(void)
if
(
defeatedEnemies
<
NUM_HENCHMEN
)
{
Enemy
enemy
=
CreateEnemy
(
defeatedEnemies
);
printf
(
"
\n
Vastane
tüübiga %s, %dHP ja rünnaku tugevusega"
" %d
on loodud
.
\n
"
,
enemy
.
type
,
enemy
.
health
,
printf
(
"
\n
Kohtasid vastast
tüübiga %s, %dHP ja rünnaku tugevusega"
" %d.
\n
"
,
enemy
.
type
,
enemy
.
health
,
enemy
.
attack
);
gameState
=
fight
(
&
player
,
&
enemy
);
}
...
...
@@ -56,8 +56,10 @@ int main(void)
{
// Generate the final boss
FinalBoss
boss
=
CreateFinalBoss
(
defeatedEnemies
);
printf
(
"
\n
Vastane tüübiga %s, %dHP ja rünnaku tugevusega"
" %d on loodud.
\n
"
,
boss
.
type
,
boss
.
health
,
printf
(
"
\n
Oled jõudmas koopa lõppu ning "
"äkitselt märkasid pealikku %s, %dHP ja"
" rünnaku tugevusega"
" %d.
\n
"
,
boss
.
type
,
boss
.
health
,
boss
.
attack
);
gameState
=
bossFight
(
&
player
,
&
boss
);
}
...
...
@@ -116,8 +118,8 @@ int main(void)
if
(
defeatedEnemies
<
NUM_HENCHMEN
)
{
Enemy
enemy
=
CreateEnemy
(
defeatedEnemies
);
printf
(
"
\n
Vastane
tüübiga %s, %dHP ja rünnaku tugevusega"
" %d
on loodud
.
\n
"
,
enemy
.
type
,
enemy
.
health
,
printf
(
"
\n
Kohtasid vastast
tüübiga %s, %dHP ja rünnaku tugevusega"
" %d.
\n
"
,
enemy
.
type
,
enemy
.
health
,
enemy
.
attack
);
gameState
=
fight
(
&
player
,
&
enemy
);
}
...
...
@@ -125,8 +127,10 @@ int main(void)
{
// Generate the final boss
FinalBoss
boss
=
CreateFinalBoss
(
defeatedEnemies
);
printf
(
"
\n
Vastane tüübiga %s, %dHP ja rünnaku tugevusega"
" %d on loodud.
\n
"
,
boss
.
type
,
boss
.
health
,
printf
(
"
\n
Oled jõudmas koopa lõppu ning "
"äkitselt märkasid pealikku %s, %dHP ja"
" rünnaku tugevusega"
" %d.
\n
"
,
boss
.
type
,
boss
.
health
,
boss
.
attack
);
gameState
=
bossFight
(
&
player
,
&
boss
);
}
...
...
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