This Is A Learning Experience


Hello And Welcome


This Project Is intended for the coding blocks game jam.  I plan on learning to control more aspects of the game at runtime with this project. 


        


          So far I added a basic player controller that moves on the y- axis which dodges the enemy, the enemy shoots in from the side to hit the player. The player tries to dodge as the enemy gets faster until the player gets hit and resets the game. The game so far is incredibly boring and basic, I plan on adding in some features to make it less so. Im thinking the longer the player is infront of the enemy the more points.

This shows the logic in the player script.

        The player moves with the mouse on the y axis clamped between -150 and 150. the player is locked in on the x axis so they can only move up and down. The last part Im checking to see if the area that overlaps with the player is named "bullet" and if so reset the game.



This is the logic for my enemy

        I created variables to hold the spawn point at 300 on the x axis and between -150 and 150 on the y, also a declared variables for max speed and velocity. In the ready function I first call randomize so I actually get random numbers and than set the position. The _physics_process() function runs every frame to see if there is a raycast collision(not fully integrated) and if so print what it collides with, mostly so I could see to make sure it collided with the correct object. Next I do some math to make the enemy speed increase over time. The last part of this function moves the player using the velocity I just set. Finally the _on__screen_exit() function runs when the enemy is no longer on screen and resets its position.



Ultimately with this project I aim to use more code than I typicaly would and hopfully become more confident when I do code


If you actually read this thanks, it was probably boring. also

Have A Good One

Leave a comment

Log in with itch.io to leave a comment.