Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ohj1ht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
jimsebna
ohj1ht
Commits
08a2a7eb
Commit
08a2a7eb
authored
3 months ago
by
Näivö Jimi Sebastian
Browse files
Options
Downloads
Patches
Plain Diff
pallot lisätty hahmojen paikoiksi valikkoon
parent
d27e034c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs
+11
-5
11 additions, 5 deletions
SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs
with
11 additions
and
5 deletions
SimulaattoriPeli/SimulaattoriPeli/SimulaattoriPeli.cs
+
11
−
5
View file @
08a2a7eb
...
...
@@ -23,7 +23,7 @@ public class SimulaattoriPeli : PhysicsGame
private
GameObject
Areena
;
//luo areenan alueen
private
GameObject
Hahmot
;
//luo hahmojen valinta alueen
private
GameObject
Ohjeet
;
//luo ohjeet
private
GameObject
HahmotPaikka
;
public
override
void
Begin
()
{
...
...
@@ -55,10 +55,16 @@ public class SimulaattoriPeli : PhysicsGame
Hahmot
.
Position
=
new
Vector
(-
750
,
0
);
//Hahmojen alueen sijainti
Add
(
Hahmot
);
//lisää hahmojen alueen
HahmotPaikka
=
new
GameObject
(
150
,
150
,
Shape
.
Circle
);
//Luo hahmojen paikat
HahmotPaikka
.
Color
=
Color
.
White
;
//Hahmojen paikka väri
HahmotPaikka
.
Position
=
new
Vector
(-
750
,
300
);
Add
(
HahmotPaikka
);
for
(
int
jakso
=
0
;
jakso
<
2
;
jakso
++)
{
for
(
int
rivi
=
0
;
rivi
<
4
;
rivi
++)
{
GameObject
HahmotPaikka
=
new
GameObject
(
150
,
150
,
Shape
.
Circle
);
//Luo hahmojen paikat
HahmotPaikka
.
Color
=
Color
.
White
;
//Hahmojen paikka väri
HahmotPaikka
.
Position
=
new
Vector
(-
850
+
jakso
*
200
,
300
-
rivi
*
220
);
Add
(
HahmotPaikka
);
}
}
Label
hahmotOtsikko
=
new
Label
(
"Characters"
);
//teksti hahmojen alueelle
hahmotOtsikko
.
TextColor
=
Color
.
Black
;
// tekstin väri
...
...
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