Skip to content

Instantly share code, notes, and snippets.

View ChristianLutz's full-sized avatar

Christian ChristianLutz

  • inovel systeme AG
  • Germany
View GitHub Profile
@ChristianLutz
ChristianLutz / wsl2-network.ps1
Created September 8, 2022 12:43 — forked from xmeng1/wsl2-network.ps1
WSL2 Port forwarding port to linux
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '"
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
if( $found ){
$remoteport = $matches[0];
} else{
echo "The Script Exited, the ip address of WSL 2 cannot be found";
exit;
}
(1) No prototypes. Just make the game. polish as you go. Don't depend on polish happening later. Always maintain constantly shippable code.
(2) It is incredibly important that your game can always be run by your team. Bulletproof your engine by providing defaults upon load failure.
(3) Keep your code absolutely simple. Keep looking at your functions and figure out how you can simplify further.
(4) Great tools help make great games. Spend as much time on tools as possible.
(5) We are our own best testing team and should never allow anyone else to experience bugs or see the game crash. Don't waste others' time. Test thoroughly before checking in your code.