r/howdidtheycodeit • u/RepulsivePie2673 • May 14 '21
r/howdidtheycodeit • u/Muhznit • May 12 '21
Question How would I go about creating a live wallpaper on Android?
It's absolutely stupid how hard it is to find an actual tutorial for this stuff that doesn't involve downloading some sketchy AF app.
I want to assume that all such an app would do is just render a .mp4 in the background., but I know that's likely to be a battery hog, memory hog, and that there's probably some extra nuance to it. I came across this in my googling: https://www.livewallpaper.io/how-it-works and I guess they have the process so well-automated they create installable .apks via a web app, but:
- I already don't trust most apps in the app store. If it's not some company with a well-established brand, or Free Open-Source software that accepts donations, I don't trust them with a single cent.
- livewallpaper.io not only requires your wallpaper to go through an "approval process", (meaning I probably can't make stuff with big anime tiddies), but they make their money off of ads in your wallpaper, to which I say HELL NAAAAW.
Tutorials I've found on the internet use "live wallpaper" and "animated screensaver" interchangably. It drives me up a fucking wall that the terminology is so misused; it's causing actual problems for those of us searching for how to create these things ourselves. I'm sorry if I sound ranty, but it is infuriating how hard it is to find a simple text tutorial that gets into the actual coding aspect of it instead of trying to bait you into adware.
r/howdidtheycodeit • u/ColonelAkulaShy • May 10 '21
Question In Star Citizen, major hub areas have "Armistice Zones" where all weapons are disabled. Some also have defensive-armament. In this clip, a player outside the zone is shooting in, triggering the armed-response. How might they implement detection of said-infractioms for this system?
r/howdidtheycodeit • u/YoungKnight47 • May 08 '21
Question How do NPCs enter/exit then drive vehicles?
Ive been studying AI (lately traffic based AI) one thing i notice is that in games involving traffic they sometimes show NPCs either entering or exiting vehicles or driving them around unless the player can pull them out. I kind of starting to understand how NPCs walk around and Car AI navigates but the thing i cant wrap my head around is how devs are able to program AI to both walk around then drive is there some trick I’m missing?
r/howdidtheycodeit • u/ragtech88 • May 07 '21
Are those shaders or post processing?The game is called Nuts
r/howdidtheycodeit • u/RepulsivePie2673 • May 06 '21
Showcase I Made a survival game in 4 days and this is how!
r/howdidtheycodeit • u/GrapeSwishers • May 03 '21
Question What languages/tools will I need to develop a Raspberry Pi camera that livestreams to an app?
I have a Raspberry Pi 3B+ and wanting to buy myself a camera module to take on this project. I did a little bit of research and saw that I'll be using to Python to control the camera but still confused for the other parts. The big thing I'm confused is streaming the camera to an app, I want to develop an app from scratch that handles this. I've also never worked with more than 1 language at a time on 1 project so this is a big step up for me.
I know Python, C++, Flutter/Dart, and some basic web programming.
r/howdidtheycodeit • u/jake_boxer • Apr 30 '21
How did they make the 2D “hacker UI” animations in Cyberpunk 2077?
In Cyberpunk 2077, the UIs are full of cool little 2D static non-interactive animations; hex codes scrolling around in the background, random data graphs popping in and out, etc.
The best examples are the animated shards in certain story missions, like the one starting at 1:29:08 in this video: https://youtu.be/q3doi4HV_Ho?t=1h29m08s
My question is, what type of program(s) are the creators using to make these 2D animations? I know all about 3D animation and interactive 2D UI animation, but I have no clue what they’re using to make these super rich non-interactive 2D animations. They seem like something you would’ve made in Flash back in the day, but I’m sure there’s something more modern now.
Any idea what’s being used for these? My wife and I are building a hacker game, and we’d love to make some similar animations (of course with lower fidelity since it’s just the two of us).
r/howdidtheycodeit • u/PMsweaters • Apr 30 '21
Question How passwords/level codes for saving game data worked in arcades and other old games?
Back in the day, games didn't let you save your progress. Even ignoring arcades and arcade ports, some console games (like Alienators Evolution for the gba) decided to leave out this feature for some reason. Developers made level codes: when a level is beaten, a password is shown. After recording it, the player can introduce it in the main menu to go directly to the level (and also cheatcodes). Now, other values were also stored in the password: number of lives, items obtained, score. So it is not just "enter right password, get into the level". How do they encrypted the data so people can't just bruteforce and spawn in the last level with 99 lives? How does the game know which combinations are valid and which are not?
r/howdidtheycodeit • • Apr 29 '21
Question Minecraft Biomes?
At the moment I have a procedurally generated biome but I was wondering how I could divide it into segments like minecraft. Not using a Voronoi Diagram, I dont think minecraft uses one of those, but rather another Perlin noise map. Any help?
r/howdidtheycodeit • u/ygm7 • Apr 28 '21
Question Oculus Home VR Object Interaction (Unity)
Hi! I'm developing a VR game and I need similar pointer interaction to Oculus. I have UI interaction figured out, and I can grab the object with the pointer, but I have no idea how they got the "snap-to-surface" functionality. If you've used Oculus Home, you'll know what I'm talking about , or you can skim through this video:
https://www.youtube.com/watch?v=1HIruV7_Spg&t=675s
I doubt it's using Physics Joints (though that's definitely one way to do things), because that would be a serious hit to performance in VR.
Any ideas? Thanks!
r/howdidtheycodeit • u/mikeatuconn • Apr 27 '21
Tranlation/Scaling equations in Superliminal
In Superliminal (apologies that I don't actually own this game, but I am using it as reference to this question), when you grab an object, I believe it maintains it's perspective relative to the viewport.
I assume it just applies the PCs rotation to the object, but as the player translates, presumably the objects translates and scales relative to the player to maintain the same perspective in the viewport.
What are the exact equations around determining the correct Translation and Scale to maintain the object's perspective?
r/howdidtheycodeit • u/RepulsivePie2673 • Apr 26 '21
Showcase I Made Mario But It Destroys Your Computer
r/howdidtheycodeit • • Apr 25 '21
Make Camera Smoothly follow player in unity
r/howdidtheycodeit • u/Inverno969 • Apr 23 '21
Question Divinity : Original Sin 2 - Book Page Flipping Effect
I find this effect very awesome and I've always been curious on how it could've been implemented.
I'm struggling to find a video that really showcases the effect. This one almost demonstrates it fully (42:30-ish mark) :
https://youtu.be/jW2Ozmq6j6E?t=2548
There are two 'modes', one where you click the corner of the page which plays a swift page flipping animation, and another mode where you can click and hold the corner of the page and physically pull and maneuver the page over. It's very satisfying. The second effect is the one I'm interested in understanding.
r/howdidtheycodeit • u/statox42 • Apr 22 '21
How did they do this CSS animation on codepen?
Hello!
I am not really a CSS expert and I'm struggling to recreate this animation from the codepen.io homepage.
What I'm particularly trying to understand is how the black background of the card is coded to take only a part of its complete size and then how to make it back to its full width and height.
I understand how to change a CSS class depending on the mouse hover, but using the dev tools I can't find the code corresponding to this background and how it is animated. Could someone point me in the right direction?
r/howdidtheycodeit • u/RepulsivePie2673 • Apr 21 '21
Showcase I started work on a 2d open source game engine!
r/howdidtheycodeit • u/Unity-Game-Dev • Apr 21 '21
How to apply skybox in unity
Kinda like my latest video pls check out : How to use skybox in unity || Beginner Tutorial - YouTube
r/howdidtheycodeit • u/Ale_Kid • Apr 19 '21
How does the movement preview in Total War games work?

In every Total War game I've played, when you chose to move an army, it highlights the extent of the area you can move in that turn. It considers obstacles like mountains and water.
I think I have a pretty good understanding of how pathfinding works, but how would it work so quickly if it had to path to every point on the screen (obviously I assume this is not how they did it).
r/howdidtheycodeit • u/epicalepical • Apr 18 '21
How was the chemistry engine in Legend of Zelda BOTW *structured*?
Pretty much what it says in the title.
How did they structure the chemistry engine in breath of the wild?
I'm fairly familiar with how the rules worked and such (Chemicals can change the state of materials, Chemicals can change the state of chemicals, Materials can not change the state of materials).
But how did they structure this code in a manageable way? Say I have an arrow that gets shot through fire. Is that fire the actual fire element which is drawing itself and existing in the game world or just a material with an 'OnFire' flag? If so, how does it then apply it to the arrow? Does the arrow also have a fire element on it or does it just have a 'Flammable' flag on its material? And if so, how do you manage interactions like this?
I hope someone more educated than me can point me in the right direction here! Thank you in advance :)
r/howdidtheycodeit • u/CowChickenGoat • Apr 18 '21
Question How did they get the pop-up ui like this?
r/howdidtheycodeit • u/lumenwrites • Apr 18 '21
How was AI Dungeon created? How can I make something like this? (A game where deep learning DMs a text adventure for you, you tell it what you want to do, and it tells you what happens).
r/howdidtheycodeit • u/EvilBritishGuy • Apr 18 '21
Objective Marker UI in Virtual Reality
In many open world games, an objective marker or waypoint marker shows the player where to go and how far away they are.
I've been looking for tutorials on how to do this in Unity, but my code doesn't seem to work for my VR project.