Skip to content

Commit

Permalink
1.3small update
Browse files Browse the repository at this point in the history
更新了四面+八方移动,同时出现了新的bug,预计N天后修复
还落下了一个没写完的sound sys
  • Loading branch information
xiaohuihui1022 authored Oct 4, 2022
1 parent 0412ada commit 89d27e1
Show file tree
Hide file tree
Showing 36 changed files with 142,826 additions and 42 deletions.
21 changes: 11 additions & 10 deletions TestEngine/Form2.cs
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
using System;
using TheWorstEngine;
using TheWorstEngine.AnimFunction;
using System.Windows.Forms;

namespace TestEngine
{
public partial class Form2 : Form
{
Twe sans1 = new Twe();
Twe Heart = new Twe();
TweAnim sans1 = new TweAnim();
TweAnim Heart = new TweAnim();
TweSound mega = new TweSound();
public Form2()
{
InitializeComponent();
sans1.form = this;
sans1.picturebox = sans;
sans1.Load(this, sans);
mega.Load(this, @".\sound\mega.ogg");
string[] FS = { ".\\img\\sans1.png", ".\\img\\sans2.png",
".\\img\\sans3.png", ".\\img\\sans4.png",
".\\img\\sans3.png", ".\\img\\sans2.png", ".\\img\\sans1.png"};
sans1.NewAnim(FS, 5, label1);
Heart.form = this;
Heart.picturebox = heart;
Heart.NewImage(@".\img\red.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.CanMove(true);

mega.PlaySound();
// sans1.AnimSound(@".\sound\mega.ogg");
// sans1.KeySet(Keys.Up, Keys.Down, Keys.Left, Keys.Right);
// sans1.CanMove(true);
}
Expand Down
16 changes: 7 additions & 9 deletions TestEngine/Main.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using System;
using System.Drawing;
using System.Windows.Forms;
using TheWorstEngine;
using TheWorstEngine.AnimFunction;
using LogSystem;
using LangSystem;

namespace TestEngine
{
public partial class Main : Form
{
Twe sans1 = new Twe();
Twe sans2 = new Twe();
TweAnim sans1 = new TweAnim();
TweAnim sans2 = new TweAnim();
Log log = new Log();
Lang lang = new Lang();
public Main()
Expand All @@ -19,10 +19,8 @@ public Main()
CheckForIllegalCrossThreadCalls = false;
//Thread RunTask = new Thread(Run);
//RunTask.Start();
sans2.form = this;
sans2.picturebox = pictureBox2;
sans1.form = this;
sans1.picturebox = pictureBox1;
sans2.Load(this, pictureBox2);
sans1.Load(this, pictureBox1);
log.LogWriteInit();
log.TimeShowSet(true);
log.Info(sans1.SetResolution(new Size(544, 351)));
Expand All @@ -32,8 +30,8 @@ public Main()
".\\img\\sans3.png", ".\\img\\sans4.png",
".\\img\\sans3.png", ".\\img\\sans2.png", ".\\img\\sans1.png"};
// pictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
sans1.NewAnim(FS, 5, FPS);
sans2.NewAnim(FS, 5, FPS2);
sans1.SetAnim(FS, 5, FPS);
sans2.SetAnim(FS, 5, FPS2);
}

public void LangInit()
Expand Down
Binary file modified TestEngine/bin/Debug/TestEngine.exe
Binary file not shown.
Binary file added TestEngine/bin/Debug/lib/NAudio.dll
Binary file not shown.
Loading

0 comments on commit 89d27e1

Please sign in to comment.