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
ssniinim
ohj1HT
Commits
8be8acc4
Commit
8be8acc4
authored
1 year ago
by
sara
Browse files
Options
Downloads
Patches
Plain Diff
valmis1
parent
af3ce0c1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ht/Ohjelma.cs
+1
-1
1 addition, 1 deletion
ht/Ohjelma.cs
ht/ht.cs
+3
-9
3 additions, 9 deletions
ht/ht.cs
with
4 additions
and
10 deletions
ht/Ohjelma.cs
+
1
−
1
View file @
8be8acc4
...
...
@@ -19,7 +19,7 @@ namespace ht
[
STAThread
]
static
void
Main
()
{
using
var
game
=
new
h
t
();
using
var
game
=
new
H
t
();
game
.
Run
();
}
}
...
...
This diff is collapsed.
Click to expand it.
ht/ht.cs
+
3
−
9
View file @
8be8acc4
using
System
;
using
System.Collections.Generic
;
using
Jypeli
;
using
Jypeli.Assets
;
using
Jypeli.Controls
;
using
Jypeli.Effects
;
using
Jypeli.Widgets
;
namespace
ht
;
...
...
@@ -13,7 +9,7 @@ namespace ht;
/// <summary>
/// laudan päällä pomppivalla pallolla keräillään tähtiä joista saa pisteitä
/// </summary>
public
class
h
t
:
PhysicsGame
public
class
H
t
:
PhysicsGame
{
Vector
nopeusOikea
=
new
Vector
(
600
,
0
);
Vector
nopeusVasen
=
new
Vector
(-
600
,
0
);
...
...
@@ -23,7 +19,6 @@ public class ht : PhysicsGame
/// <summary>
/// Luodaan kenttä (physicsobject reunat)
/// Luodaan pomppiva pallo
/// <param name="pallo"></param>
/// Haetaan loput peliin tarvittavat aliohjelmat
/// </summary>
public
override
void
Begin
()
...
...
@@ -65,7 +60,6 @@ public class ht : PhysicsGame
LuoTahti
();
LuoPistelaskuri
();
IntMeter
laskuri
=
new
IntMeter
(
0
);
PhoneBackButton
.
Listen
(
ConfirmExit
,
"Lopeta peli"
);
Keyboard
.
Listen
(
Key
.
Escape
,
ButtonState
.
Pressed
,
ConfirmExit
,
"Lopeta peli"
);
...
...
@@ -179,7 +173,7 @@ public class ht : PhysicsGame
/// <summary>
/// Laudan kimmoisuutta vahvistava aliohjelma
/// </summary>
private
void
TormaaLautaan
(
PhysicsObject
pallo
,
PhysicsObject
lauta
)
private
void
TormaaLautaan
(
PhysicsObject
pallo
,
PhysicsObject
lauta
1
)
{
lauta
.
Restitution
=
1.0
;
}
...
...
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