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 @@ + + +
+ + + + +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.
+Just showing the teams from the group that i'm in
+I'm on the programming team with:
+
Leo, the 10X programmer, responsible for the actual hard
+ part of coding.
+
Shay, the micromanager, responsible for saying,
+ "Put comments on your code." and creating overcomplicated
+ workflows.
+
Kuba, the JS developer, responsible for looking at
+ the code and explaining why we should've used such and such
+ library.
+
Misha, C++... i don't need to explaing any further,
+ responsible for making everything simply better.
I basically invaded writing simply because our art supervisor didn't stop
+ me. The team is:
+
Caoimhe, Our main writer and art supervisor,
+ responsible with saying no to stupid ideas (especially my ideas).
+
Misha, Technically not in the writing team but he
+ helps a lot, basically responsible for the good ideas.
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. +
+ +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:
+ + + + + +This is a List of all the GameDev Diaries +
+