Cookie Consent by Free Privacy Policy Generator Aktuallisiere deine Cookie Einstellungen ๐Ÿ“Œ Game Development Diary #3


๐Ÿ“š Game Development Diary #3


๐Ÿ’ก Newskategorie: Programmierung
๐Ÿ”— Quelle: dev.to

23/05/2024

Day Three

Today's Progress:

-> Make the level out of CSGShapes to give a basic environment to work with.

Image description

You can choose color for the material using this tools

Image description

-> Add the player to the blockout level and finish setting up the camera and environment.

Image description

-> Convert the player into a RigidBody3D and control it with forces.

   A RigidBody3D is a 3D physics body that is moved by a physics simulation.
extends Node3D


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
    if Input.is_action_pressed("ui_accept"):
        #Move the character posistion
        position.y += delta
    if Input.is_action_pressed("ui_left"):
        rotate_z(delta)
    if Input.is_action_pressed("ui_right"):
        rotate_z(-delta)

this is the previous code

extends RigidBody3D


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
    if Input.is_action_pressed("ui_accept"):
        apply_central_force(basis.y * delta * 1000.0)
    if Input.is_action_pressed("ui_right"):
        apply_torque(Vector3(0.0,0.0,100.0 * delta))
    if Input.is_action_pressed("ui_left"):
        apply_torque(Vector3(0.0,0.0,-100.0 * delta))


this is the new code

this code make the character move according to the user input. But instead of transforming the position manually like the previous code, we use apply central force to move the character against the gravity and apply torque to rotate the character

-> Remap some of input to more intuitive controls.

    In the project setting there are inputmap tab, this menu allows us to set all the input we need for the game 

Image description

Image description

Image description

-> Detect RigidBody collisions with signals and identify bodies with Groups.

Signal let the game objects communicate with each other. 

Image description

Resource:

Complete Godot 3D: Code Your Own 3D Games In Godot 4! - GameDevTv Courses.

Next Steps:

-> Learn about tween and implement it in the tutorial's game
-> Adding audio
-> Controlling Audio with script
-> Learn about particle and implement it

...



๐Ÿ“Œ Game Development Diary #2


๐Ÿ“ˆ 29.33 Punkte

๐Ÿ“Œ Game Development Diary #5 : Start My "BUMI" Project


๐Ÿ“ˆ 29.33 Punkte

๐Ÿ“Œ Game Development Diary #6 : Weekend


๐Ÿ“ˆ 29.33 Punkte

๐Ÿ“Œ Game Development Diary #3


๐Ÿ“ˆ 29.33 Punkte

๐Ÿ“Œ Game Development Diary #8 : Still Second Course


๐Ÿ“ˆ 29.33 Punkte

๐Ÿ“Œ Game Development Diary #9 : Second Course Complete


๐Ÿ“ˆ 29.33 Punkte

๐Ÿ“Œ Game Development Diary #10 : Come Back


๐Ÿ“ˆ 29.33 Punkte

๐Ÿ“Œ Game Development Diary #11 : Second Day Back


๐Ÿ“ˆ 29.33 Punkte

๐Ÿ“Œ Game Development and Multimedia: Godot Engine, A Game-Changer in Game Development


๐Ÿ“ˆ 28 Punkte

๐Ÿ“Œ Behind The Scene of Under Water Game Development Game Environment Development


๐Ÿ“ˆ 23.18 Punkte

๐Ÿ“Œ Bleeding Edge developer diary explains exactly what the game is


๐Ÿ“ˆ 22.57 Punkte

๐Ÿ“Œ Doom Eternal developer diary discusses in-game events


๐Ÿ“ˆ 22.57 Punkte

๐Ÿ“Œ Doom Eternal developer diary discusses in-game events


๐Ÿ“ˆ 22.57 Punkte

๐Ÿ“Œ New Minecraft Dungeons Diary speaks about the lore behind the game


๐Ÿ“ˆ 22.57 Punkte

๐Ÿ“Œ Day 1 Pygomo Development - Lightweight framework for game development.


๐Ÿ“ˆ 18.36 Punkte

๐Ÿ“Œ Diary of a Ransomware Victim


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ Vuln: Olive Diary DX 'page' Parameter Cross Site Scripting Vulnerability


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ Diary of a Ransomware Victim


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ Vuln: Olive Diary DX 'page' Parameter Cross Site Scripting Vulnerability


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ [papers] Mobile Application Hacking Diary Ep.2


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ Mobile Application Hacking Diary Episode 2


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ ezContents diary/submit_diary.php directory traversal


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ ezContents diary/submit_diary.php directory traversal


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ MeteoTemplate 17.1 Nectarine Diary 4.0 Open Redirection


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ Olive Diary DX page cross site scripting


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ Diary with Lock 4.72 on Android net.MCrypt Default Key weak authentication


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ Diary with Lock 4.72 on Android weak encryption [CVE-2017-15581]


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ The Dark Pictures โ€“ Little Hope: Dev-Diary mit Spielszenen und Details zum Horror-Titel


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ The Dark Pictures โ€“ Little Hope: Dev-Diary mit Spielszenen und Details zum Horror-Titel


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ Flying Red Barrel: The Diary of a Little Aviator: Remaster-Trailer


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ Viertes Dev-Diary zu Immortal Realms: Vampire Wars


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ First King's Bounty II Dev Diary Reveals New Gameplay Features


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ New Minecraft Dungeons developer diary details different environments


๐Ÿ“ˆ 17.75 Punkte

๐Ÿ“Œ Securing Exchange Online [Guest Diary], (Fri, Sep 25th)


๐Ÿ“ˆ 17.75 Punkte











matomo