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
tslahtin
ohj1ht
Commits
b4a4d5cf
Commit
b4a4d5cf
authored
11 months ago
by
Lahtinen Thomas
Browse files
Options
Downloads
Patches
Plain Diff
juu
parent
988ff1d3
Branches
main
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
HT/HT/HT.cs
+9
-9
9 additions, 9 deletions
HT/HT/HT.cs
with
9 additions
and
9 deletions
HT/HT/HT.cs
+
9
−
9
View file @
b4a4d5cf
...
...
@@ -32,11 +32,11 @@ public class Ht : PhysicsGame
private
IntMeter
_broidinElamapisteet
=
new
IntMeter
(
5
);
private
bool
_gameStarted
;
private
int
_bugi
=
3
;
//
Readonly kuville
readonly
Image
_
SANKARINKUVA
=
LoadImage
(
"sankari.png"
);
readonly
Image
_
AMMUSKUVA
=
LoadImage
(
"Bullet.png"
);
readonly
Image
_
SEINA
=
LoadImage
(
"seina.png"
);
readonly
Image
_
VESI
=
LoadImage
(
"vesi.png"
);
//
Tän takia nää on pienellä https://prnt.sc/_2CBNfLwx8lo
readonly
Image
_
sankarinkuva
=
LoadImage
(
"sankari.png"
);
readonly
Image
_
ammuskuva
=
LoadImage
(
"Bullet.png"
);
readonly
Image
_
seina
=
LoadImage
(
"seina.png"
);
readonly
Image
_
vesi
=
LoadImage
(
"vesi.png"
);
public
override
void
Begin
()
...
...
@@ -77,7 +77,7 @@ public class Ht : PhysicsGame
_broidi
.
Color
=
Color
.
Brown
;
// Useless mut en uskalla poistaa
_broidi
.
CanRotate
=
false
;
_broidi
.
Tag
=
"broidi"
;
_broidi
.
Image
=
_
SANKARINKUVA
;
_broidi
.
Image
=
_
sankarinkuva
;
Add
(
_broidi
);
_pelaajan1Ase
=
new
AssaultRifle
(
57
,
19
);
...
...
@@ -170,7 +170,7 @@ public class Ht : PhysicsGame
palikka
.
Position
=
paikka
;
palikka
.
Shape
=
Shape
.
Rectangle
;
palikka
.
Color
=
new
Color
(
236
,
157
,
111
);
// Uus väri
palikka
.
Image
=
_
SEINA
;
palikka
.
Image
=
_
seina
;
Add
(
palikka
);
}
...
...
@@ -188,7 +188,7 @@ public class Ht : PhysicsGame
vesi
.
Position
=
paikka
;
vesi
.
Shape
=
Shape
.
Rectangle
;
vesi
.
Color
=
Color
.
Blue
;
// Uus väri
vesi
.
Image
=
_
VESI
;
vesi
.
Image
=
_
vesi
;
vesi
.
CollisionIgnoreGroup
=
1
;
// Veden päältä pystyy ampumaan muttei siinä pysty liikkumaan
Add
(
vesi
,
-
1
);
...
...
@@ -206,7 +206,7 @@ public class Ht : PhysicsGame
if
(
ammus
!=
null
)
{
ammus
.
Size
*=
1
;
ammus
.
Image
=
_
AMMUSKUVA
;
ammus
.
Image
=
_
ammuskuva
;
ammus
.
CollisionIgnoreGroup
=
1
;
// Veden päältä pystyy ampumaan muttei siinä pysty liikkumaan
ammus
.
MaximumLifetime
=
TimeSpan
.
FromSeconds
(
2.0
);
Add
(
ammus
);
...
...
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