theidentitymatrix
theidentitymatrix
Programming
31 posts
Don't wanna be here? Send us removal request.
theidentitymatrix · 2 years ago
Text
Raycasting 7
Tumblr media
Added some pillar objects so mask seams between textures.
2 notes · View notes
theidentitymatrix · 2 years ago
Text
Raycasting Level Editor 6
Tumblr media
I’ve made a slightly nicer Texture Select page, making it bigger makes selecting a texture far faster and more streamlined.
3 notes · View notes
theidentitymatrix · 2 years ago
Text
Raycasting 6
Tumblr media
Now we have textures, pretty proud of this so far, next we need to add floor and roof textures.
4 notes · View notes
theidentitymatrix · 2 years ago
Text
Raycasting 5
Tumblr media
I can now calculate and display the distance of each part of the wall from the beginning of its tile, all I need now it to layer that part of the texture over it.
1 note · View note
theidentitymatrix · 2 years ago
Text
Raycasting 4
Tumblr media
Not quite textures, but I can show the difference between objects that need to be textured differently, thankfully I had already written some code that meant adding this was pretty simple, next part will not be as much.
1 note · View note
theidentitymatrix · 2 years ago
Text
Raycasting Level editor 5
Tumblr media
The maps can be loaded directly into the engine, this will make testing mechanics far faster than having to manually input wall positions and textures (or using a bitmap file like I was before)
0 notes
theidentitymatrix · 2 years ago
Text
Raycasting Level editor 4
Tumblr media
The page to select different textures is currently pretty simple, it just displays any loaded textures as allows the use the select them (plus some placeholder textures at the end for testing). The most important part (actually drawing the textures in the game) is still yet to be added.
2 notes · View notes
theidentitymatrix · 2 years ago
Text
Raycasting Level editor 3
Tumblr media
Here is an example of a loaded map, you can see the walls, the player spawn position, and the centre of the map. Most tools are pretty simple to work with however the delete tool still needs a bit of work as it can be a bit awkward to work with.
6 notes · View notes
theidentitymatrix · 2 years ago
Text
Raycasting Level editor 2
Tumblr media
This is the main page of the editor (without a loaded map. ‘File’ allows saving and loading maps, ‘Tools’ allows for selecting the tools (as well as the side bar), ‘About’ and ‘Help’ aren’t functional yet.
The toolbar allows the user to change between several tools, and the option bar currently only lets you change the texture (which isn’t rendered in the game anyway)
2 notes · View notes
theidentitymatrix · 2 years ago
Text
Raycasting Level editor 1
After taking a break from the project I decided I’d need to make a level editor to help with testing, I could use a lot of the classes and function I made for the main game which was helpful, the main goal was to be able to add and remove walls, and change where the player spawns.
0 notes
theidentitymatrix · 2 years ago
Text
Raycasting 3
Tumblr media
fixed the fish-eye effect (I was incorrectly spacing rays), added a slight gradient to the walls and added a gun sprite along with a crosshair.
In the current engine, textures are not possible, but before working on that I might create a level editor as it would make testing far simpler.
5 notes · View notes
theidentitymatrix · 2 years ago
Text
Raycasting 2
this is my first attempt without looking too much up, it is easy to tell it is supposed to be 3d but still not perfect.
Tumblr media
1 note · View note
theidentitymatrix · 2 years ago
Text
Raycasting
I’ve been learning raycasting and have started making a small game using the concept.
0 notes
theidentitymatrix · 3 years ago
Text
WFC
I have uploaded my wave function collapse code to GitHub if anyone wants to play with it.
https://github.com/TFC-343/River-Land-Generation
0 notes
theidentitymatrix · 3 years ago
Text
paths
Tumblr media
I added some paths (and made it slightly bigger)
0 notes
theidentitymatrix · 3 years ago
Text
WFC error
Tumblr media
This is what it looks like when the code gets stuck.
I think its an issue with the propagation algorithm but I'm just gonna make it restart if it gets stuck, that should at least temporarily fix it.
0 notes
theidentitymatrix · 3 years ago
Text
WFC
here are some examples of some river land maps made using wave function collapse
Tumblr media Tumblr media Tumblr media
Still some problems with the code as it can make illogical maps and get itself stuck
0 notes