[icon ] blenderdumbass . org [icon petition] Petitions

Release: Dani's Race v07-07-24

[avatar]  Blender Dumbass

December 05, 2024

👁 6

https://blenderdumbass.org/articles/the_challenge_of_writing_npc_characters_for_games : 👁 1

Petition


251 / 200 Signatures

Last updated: now

[icon petition] Sign

This petition is signed by increasing the number of
Blender Dumbass Followers on Mastodon

[icon ok] Continue


icon download Download




This is the first version of Dani's Race published with the
unlock idea ( which still doesn't have a name ). Let's see
how it goes.





Day Night Cycle




Since the last version of the game, I have implement a day / night
cycle, by figuring out how to control values in the world material
using game logic. Basically the idea is, you control an object the
location values of which drive values inside of the world material.


[embedded image]




[embedded image]


And here is a screenshot of the nodes that make the magic happen.
As you can understand, as soon as this publication is unlocked,
you will be able to scrutinize it and see for yourself what exactly
I did there to make it work.


[embedded image]






Context aware Backgrounds




As you can see the world material is a bit more complex than mixing
between day and night. It has also morning and evening states. And
not just that, context aware state. Where you can see the racetrack
being drawn to the world material if you are in the city.


[embedded image]


And vise versa, where the city is being drawn if you are in the racetrack.


[embedded image]


There were also alignment issues that I had to solve by moving the racetrack
side to side based on where Dani is in 3D space. So that the tunnel always
aligns with the real tunnel in 3D space.





Control Settings




I have introduced settings in the previous release of the game. But they didn't
have any control settings. Now you can setup how you want to control the game.


[embedded image]


And as you can see on that screenshot, you can now control the car using the mouse
and not the keyboard. Which gives you way more precise controls over steering and
throttle.

With that come 2 modes, both of which are optional, of how to show the mouse to you.
You can either select to show the regular mouse cursor, or as in this image, to show
guides that are rendered outside of the view, to not distract you from driving.


[embedded image]


To other settings, cheat-codes could now be disabled for cheat-less mode.
And you can control the speed of your day.





Multiplayer




Since forever people requested a multiplayer to be present within the game.
Finally this version will introduce the concept into Dani's Race.
I've implemented the most basic Server / Client configuration, good enough
to more or less play together. I tried it with a few friends and it worked.
I would not say that it worked fine, though. It is very early for it to be
used for anything more than a few laughs about how buggy it is. But it is a
start.

At the moment the feature is very manual to set up. Unless ( check the comments )
somebody had set up an actual server. A friend of mine who has servers did that
for the period of testing, I'm not sure if that thing is up right now.

If not, the server software is in the "Scripts" folder and is called "Multiplayer_Server.py"
. If you know how to do port-forwarding, or you want to simply play on the local network
with the family, you can run this script for the server. And setup the client in the
settings of the game.
Subscribe RSS
[icon link] Author
[icon link] Website






[icon articles]That Insidious Feeling of Working a Job Below You

  Unread  

[thumbnail]

[avatar]  Blender Dumbass

👁 38 💬 1



Something along the lines of 75% of all humans are tasked with mindless work, which is often pretty much decorative and is there only to facilitate a certain governmental goal of employment. Basically non of us are doing anything actually useful and we are all struggling because of it. And I often feel depressed doing such jobs, yet there is seemingly no obvious road to escape them.


[icon posters]Digital Safety Guide

  Unread  

[thumbnail]

[avatar]  Blender Dumbass

👁 10 💬 2



An info-graphic talking about the evils of proprietary software and how Free Software can help against it.


[icon codeberg] Powered with BDServer [icon mastodon] Mastodon
[icon user] Login