itsahaj.hashnode.devGenerators in GoHi, in this blog we’ll be creating a generator in go, now to create a generator we first need to understand what generator is, (me coming from python) I’ll say generator is a special function that produce (returns) the value each time we call it. or ...Dec 20, 2025·4 min read
itsahaj.hashnode.devYour own Signals library in PythonHi 😀 In this blog we are going to build our own python library “Signals” What is this library about? This is a very basic publisher/subscriber implementation where a publisher publishes event (emit) and its subscribers react on those events. somewha...Sep 24, 2025·3 min read
itsahaj.hashnode.devRust ownership and borrowingThis is my attempt at explaining Rust ownership and borrowing rules. Lets look at the rules first. Each value in Rust has an owner. There can only be one owner at a time. When the owner goes out of scope, the value will be dropped. Before unders...Oct 11, 2024·3 min read
itsahaj.hashnode.devRotate arrow in player.Now that we have our player working, let's add the arrow (trajectory) to player, and add Strech sound. We'll add arrow as sprite2d node in player node. Note: Make sure to add offset in arrow so that pivot of arrow remains in center of player but the ...Mar 23, 2024·3 min read
itsahaj.hashnode.devSetting up player (Bird)In this read I am setting up player character for my Angry bird type game in godot. This is a part of Angry bird made in Godot 4 series. For Player I have made a new Node of type RigidBody2D and added Sprite2D with texture as "player" from assets fol...Mar 12, 2024·5 min read