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
suvleean
ohj1ht
Commits
cd2d4d3b
Commit
cd2d4d3b
authored
2 weeks ago
by
Toivanen Suvi Leena Anneli
Browse files
Options
Downloads
Patches
Plain Diff
poistin turhat neliöt
parent
b07ae576
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.DS_Store
+0
-0
0 additions, 0 deletions
.DS_Store
peli/.DS_Store
+0
-0
0 additions, 0 deletions
peli/.DS_Store
peli/harkkatyö/.DS_Store
+0
-0
0 additions, 0 deletions
peli/harkkatyö/.DS_Store
peli/harkkatyö/pomppu possu/pomppu possu.cs
+1
-11
1 addition, 11 deletions
peli/harkkatyö/pomppu possu/pomppu possu.cs
with
1 addition
and
11 deletions
.DS_Store
+
0
−
0
View file @
cd2d4d3b
No preview for this file type
This diff is collapsed.
Click to expand it.
peli/.DS_Store
+
0
−
0
View file @
cd2d4d3b
No preview for this file type
This diff is collapsed.
Click to expand it.
peli/harkkatyö/.DS_Store
+
0
−
0
View file @
cd2d4d3b
No preview for this file type
This diff is collapsed.
Click to expand it.
peli/harkkatyö/pomppu possu/pomppu possu.cs
+
1
−
11
View file @
cd2d4d3b
...
...
@@ -18,6 +18,7 @@ public class pomppu_possu : PhysicsGame
{
Level
.
Size
=
new
Vector
(
1920
,
1080
);
SetWindowSize
(
1920
,
1080
);
CenterWindow
();
Camera
.
ZoomToAllObjects
(
100
);
Level
.
CreateBorders
();
Level
.
Background
.
Color
=
Color
.
SpringGreen
;
...
...
@@ -29,17 +30,6 @@ public class pomppu_possu : PhysicsGame
Keyboard
.
Listen
(
Key
.
Left
,
ButtonState
.
Down
,
Liikuta
,
"Liikuttaa pelaajaa vasemmalle"
,
pomppuPossu
,
new
Vector
(-
1000
,
0
));
Keyboard
.
Listen
(
Key
.
Right
,
ButtonState
.
Down
,
Liikuta
,
"Liikuttaa pelaajaa oikealle"
,
pomppuPossu
,
new
Vector
(
1000
,
0
));
for
(
int
i
=
0
;
i
<
20
;
i
++)
{
Color
[]
varit
=
{
Color
.
Red
,
Color
.
Yellow
,
Color
.
Green
};
Megaporkkanat
pisteet
=
new
Megaporkkanat
(
50
,
50
,
varit
);
pisteet
.
Position
=
RandomGen
.
NextVector
(
Level
.
BoundingRect
);
AddCollisionHandler
<
PhysicsObject
,
Megaporkkanat
>(
pomppuPossu
,
pisteet
,
TormattiinEsineeseen
);
Add
(
pisteet
);
}
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
Color
[]
varit
=
{
Color
.
Black
,
Color
.
White
};
...
...
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