diff --git a/src/GameDev/weekOne.html b/src/GameDev/weekOne.html new file mode 100644 index 0000000..d91cd3d --- /dev/null +++ b/src/GameDev/weekOne.html @@ -0,0 +1,62 @@ + + + + + + + + Game Dev Blog + + +
+ +

Week one

+

Starting everything and creating a group was simple enough; + we already had a friend group that wanted to work together on a + game anyway. +

+

I asked our producer (Kuba) to also be added to generalists, + mostly because programming only would be a pain, and I started + getting involved in the storywriting a little bit.

+

Me and Caoimhe discussed and came up with some ideas for the + general setting and what's going to be the main character + development. That's basically it; we (the programming team) + planned to start working on the actual gameplay next week.

+

Teams

+

Just showing the teams from the group that i'm in

+ + +
+ + \ No newline at end of file diff --git a/src/GameDev/weekThree.html b/src/GameDev/weekThree.html new file mode 100644 index 0000000..15ceb34 --- /dev/null +++ b/src/GameDev/weekThree.html @@ -0,0 +1,27 @@ + + + + + + + + Game Dev Blog + + +
+ + + +
+ + \ No newline at end of file diff --git a/src/GameDev/weekTwo.html b/src/GameDev/weekTwo.html new file mode 100644 index 0000000..fac74a9 --- /dev/null +++ b/src/GameDev/weekTwo.html @@ -0,0 +1,126 @@ + + + + + + + + Game Dev Blog + + +
+ +

Week Two

+

We mainly have two meetings (one in a lab and the other we organised in the + library), where I helped a bit with getting some ideas for the motivations of the + enemies in the game, and me and Misha got assigned homework by Shay + (gameplay designer); we needed to make the movement by Monday. +

+ +

Some actual Programming

+ +

Mostly apllied basics from the godot wiki, but me and Misha were not able to make + the turn/timer part of the code work (it simply did nothing or made the + game get stuck). +

+ +
+
+            
+using Godot;
+using System;
+using System.Threading.Tasks;
+
+public partial class player_movement : StaticBody2D
+{
+	//important varibles
+	[Export]
+	public int TileSize { get; set; } = 64;
+	bool has_moved = false;
+	
+	//input handling 
+	public Vector2 GetInput()
+	{
+
+	   Vector2 direction = Input.GetVector("move_left", "move_right", "move_up", "move_down");
+	   return direction;
+		
+	}
+	/*movement method 
+	TODO 	- Implement TestMove
+		- fix the turns (kill me)
+	*/
+	public void Move(Vector2 direction) { 
+		if (has_moved == true)
+		{
+			//miserable implemntation of turns (does not work)
+				DelayMethod();
+		}
+		else if (direction != Vector2.Zero && has_moved == false)
+		{
+			direction = direction.Normalized();
+			Position += TileSize * direction;
+			Position = Position.Snapped(Vector2.One * TileSize);
+			has_moved = true;
+		}
+	}
+	//delay method to create turns (work in progress)
+	private async void DelayMethod()
+{
+	var timer = GetTree().CreateTimer(4f);
+	await Task.Delay(TimeSpan.FromMilliseconds(1));
+	timer.Timeout += OnTimerTimeout;
+}
+
+
+	public override void _PhysicsProcess(double delta)
+	{
+		Vector2 direction = GetInput();
+		Move(direction);
+		//MoveAndSlide();
+	}
+	
+	public override void _Ready()
+	{
+		Position = Position.Snapped(Vector2.One * TileSize);
+		Position += Vector2.One * TileSize;
+	}
+	
+	private void OnTimerTimeout()
+	{
+		has_moved = false;
+	}
+}
+            
+            
+
+

+ And then we got one of our artists (that is actually a really good programmer) + to do it, but they only know GDScript... Now i need to translate all the code + that Piraker made in GDScript to C#; that will be a task for next week. +

+ +

What we got at the end of the week is this:

+ + + + + +
+ + \ No newline at end of file diff --git a/src/game.html b/src/game.html index d14008c..2e8f6f0 100644 --- a/src/game.html +++ b/src/game.html @@ -4,7 +4,7 @@ - + Game Dev Blog @@ -16,13 +16,14 @@
  • Source/Credits
  • -
    - - +

    Diaries

    +

    This is a List of all the GameDev Diaries +

    + \ No newline at end of file diff --git a/src/other.html b/src/other.html index 4b310de..5a145ff 100644 --- a/src/other.html +++ b/src/other.html @@ -4,7 +4,7 @@ - + Game Dev Blog @@ -17,13 +17,26 @@
    - - - +

    Comp Soc

    +

    This website is being hosted in the Skynet server in UL, + and the code is avaiable in forgejo. +

    + +

    Game Source Code

    +

    Our game source code is being hosted in github.

    + +

    Other

    + \ No newline at end of file diff --git a/src/personal.html b/src/personal.html index b76a509..649d1ba 100644 --- a/src/personal.html +++ b/src/personal.html @@ -4,7 +4,7 @@ - + Game Dev Blog @@ -45,12 +45,6 @@ when participating in the game jam for Halloween.

    - - \ No newline at end of file diff --git a/src/styles/style.css b/src/styles/style.css index 0b3ac1a..377f86f 100644 --- a/src/styles/style.css +++ b/src/styles/style.css @@ -279,7 +279,7 @@ video { /* Miscellaneous */ pre { - background-color: gray; + background-color: rgb(36, 36, 36); border: 0.1rem solid var(--main-blue); padding: var(--spacing-base); border-radius: var(--border-radius); diff --git a/src/videos/ItMoves.mp4 b/src/videos/ItMoves.mp4 new file mode 100644 index 0000000..edf7b7e Binary files /dev/null and b/src/videos/ItMoves.mp4 differ