Skip to content

Commit

Permalink
EnCircle+MusicSys
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuihui1022 authored Oct 6, 2022
1 parent d9c5703 commit c5a5cf6
Show file tree
Hide file tree
Showing 33 changed files with 488 additions and 28 deletions.
26 changes: 21 additions & 5 deletions TestEngine/Form2.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 17 additions & 13 deletions TestEngine/Form2.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using TheWorstEngine.AnimFunction;
using TheWorstEngine.AnimFunction;
using System.Windows.Forms;

namespace TestEngine
Expand All @@ -12,23 +11,28 @@ public partial class Form2 : Form
public Form2()
{
InitializeComponent();
SansInit();
HeartInit();
mega.Load(@".\sound\mega.ogg");
mega.SoundPlay();
}
private void HeartInit()
{
Heart.Load(this, heart);
Heart.SetResolution(new System.Drawing.Size(800, 600));
Heart.SetImage(@".\img\red.png");
Heart.Encircle(Line, heart);
Heart.KeySet(Keys.Up, Keys.Down, Keys.Left, Keys.Right);
Heart.CanMove(true);
}
private void SansInit()
{
sans1.Load(this, sans);
mega.Load(@".\sound\mega.wav");
string[] FS = { ".\\img\\sans1.png", ".\\img\\sans2.png",
".\\img\\sans3.png", ".\\img\\sans4.png",
".\\img\\sans3.png", ".\\img\\sans2.png", ".\\img\\sans1.png"};
sans1.SetAnim(FS, 5, label1);
Heart.Load(this, heart);
Heart.SetImage(@".\img\red.png");
// Heart.KeySet(Keys.Up, Keys.Down, Keys.Left, Keys.Right);
Heart.KeySet(Keys.Up, Keys.Down, Keys.Left, Keys.Right);
Heart.CanMove(true);
// sans1.AnimSound(@".\sound\mega.ogg");
// sans1.KeySet(Keys.Up, Keys.Down, Keys.Left, Keys.Right);
// sans1.CanMove(true);
mega.SoundPlay();
}

private void Form2_FormClosing(object sender, FormClosingEventArgs e)
{
sans1.isClosed = true;
Expand Down
81 changes: 81 additions & 0 deletions TestEngine/Form2.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,85 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="Line.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAA8IAAAJYCAIAAAAmA8hrAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAABFHSURBVHhe7daxDcMAEAMx77+006gSIARfm6xvgHteAADg
yEYDAMCZjQYAgDMbDQAAZzYaAADObDQAAJzZaAAAOLPRAABwNjf6AQCAr8oTbzYaAABanniz0QAA0PLE
m40GAICWJ95sNAAAtDzxZqMBAKDliTcbDQAALU+82WgAAGh54s1GAwBAyxNvNhoAAFqeeLPRAADQ8sSb
jQYAgJYn3mw0AAC0PPFmowEAoOWJNxsNAAAtT7zZaAAAaHnizUYDAEDLE282GgAAWp54s9EAANDyxJuN
BgCAlifebDQAALQ88WajAQCg5Yk3Gw0AAC1PvNloAABoeeLNRgMAQMsTbzYaAABanniz0QAA0PLEm40G
AICWJ95sNAAAtDzxZqMBAKDliTcbDQAALU+82WgAAGh54s1GAwBAyxNvNhoAAFqeeLPRAADQ8sSbjQYA
gJYn3mw0AAC0PPFmowEAoOWJNxsNAAAtT7zZaAAAaHnizUYDAEDLE282GgAAWp54s9EAANDyxJuNBgCA
lifebDQAALQ88WajAQCg5Yk3Gw0AAC1PvNloAABoeeLNRgMAQMsTbzYaAABanniz0QAA0PLEm40GAICW
J95sNAAAtDzxZqMBAKDliTcbDQAALU+82WgAAGh54s1GAwBAyxNvNhoAAFqeeLPRAADQ8sSbjQYAgJYn
3mw0AAC0PPFmowEAoOWJNxsNAAAtT7zZaAAAaHnizUYDAEDLE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U+82WgAAGh54s1GAwBAyxNvNhoAAFqeeLPRAADQ8sSbjQYA
gJYn3mw0AAC0PPFmowEAoOWJNxsNAAAtT7zZaAAAaHnizUYDAEDLE282GgAAWp54s9EAANDyxJuNBgCA
lifebDQAALQ88WajAQCg5Yk3Gw0AAC1PvNloAABoeeLNRgMAQMsTbzYaAABanniz0QAA0PLEm40GAICW
J95sNAAAtDzxZqMBAKDliTcbDQAALU+82WgAAGh54s1GAwBAyxNvNhoAAFqeeLPRAADQ8sSbjQYAgJYn
3mw0AAC0PPFmowEAoOWJNxsNAAAtT7zZaAAAaHnizUYDAEDLE282GgAAWp54s9EAANDyxJuNBgCAlife
bDQAALQ88WajAQCg5Yk3Gw0AAC1PvNloAABoeeLNRgMAQMsTbzYaAABanniz0QAA0PLEm40GAICWJ95s
NAAAtDzxZqMBAKDliTcbDQAALU+82WgAAGh54s1GAwBAyxNvNhoAAFqeeLPRAADQ8sSbjQYAgJYn3mw0
AAC0PPFmowEAoOWJNxsNAAAtT7zZaAAAaHnizUYDAEDLE282GgAAWp54s9EAANDyxJuNBgCAlifebDQA
ALQ88WajAQCg5Yk3Gw0AAC1PvNloAABoeeLNRgMAQMsTbzYaAABanniz0QAA0PLEm40GAICWJ95sNAAA
tDzxZqMBAKDliTcbDQAALU+82WgAAGh54u1/AQAAFBsNAABnNhoAAM5sNAAAnNloAAA4s9EAAHBmowEA
4MxGAwDA0fv+AHLAQ7SkkXM+AAAAAElFTkSuQmCC
</value>
</data>
</root>
63 changes: 63 additions & 0 deletions TestEngine/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c5a5cf6

Please sign in to comment.