HNHacker News
TopNewBestAskShowJobs

sdkgames

115 karma · joined August 1, 2022

submissionscomments
sdkgames··on 3D Army Land Navigation Courses
1. One can use the browser's devtools (press F12 when browsing the site) to figure out the needed files.

2. Create a list of the files (files.txt).

https://oe.tradoc.army.mil/oegames/landnav/forest/Build/Buil...

https://oe.tradoc.army.mil/oegames/landnav/forest/Build/Buil...

https://oe.tradoc.army.mil/oegames/landnav/forest/Build/Buil...

https://oe.tradoc.army.mil/oegames/landnav/forest/Build/Buil...

https://oe.tradoc.army.mil/oegames/landnav/forest/Build/Buil...

https://oe.tradoc.army.mil/oegames/landnav/forest/Build/Unit...

https://oe.tradoc.army.mil/oegames/landnav/forest/index.html

3. Download the files using the browser or a downloader:

      wget --input-file=files.txt --show-progress --directory-prefix=forest --force-directories
sdkgames··on 3D Army Land Navigation Courses
How to play is explained here [1]

By the way you can run the games locally. Just download all files.

For the forest game you would have a local directory:

   ├── Build
   │   ├── Build_7_30_F.asm.code.unityweb
   │   ├── Build_7_30_F.asm.framework.unityweb
   │   ├── Build_7_30_F.asm.memory.unityweb
   │   ├── Build_7_30_F.data.unityweb
   │   ├── Build_7_30_F.json
   │   └── UnityLoader.js
   └── index.html
then just run the following in the directory

    python3 -m http.server
[1] https://www.youtube.com/watch?v=a74KM792gbo
sdkgames··on TCP Puzzlers (2016)
The old version [0] has the correct layout.

[0] https://web.archive.org/web/20221010031002/https://www.trito...

sdkgames··on C_std: Implementation of C++ standard libraries in C
When someone queried Harley-Davidson bikers as to why they don't socialize with youngsters who are avid about the latest racing motorcycles, their response was, "Why should we bother? Every year, they have something new.

--

All jokes aside, check out these cool quotes about C++ from Linus Torvalds [0] and Ken Thompson [1] ;)

[0] https://en.wikiquote.org/wiki/Linus_Torvalds

[1] https://en.wikiquote.org/wiki/Ken_Thompson

sdkgames··on Web browser as GUI, with your preferred language in the backend
> Do you have "open URLs with a browswer" turned off in your OS?

But the application works differently. It needs the browser in kiosk mode, which means it should be able to run the browser binary with specific arguments.

sdkgames··on Web browser as GUI, with your preferred language in the backend
If I understand correctly, it's WebSocket on top of Embedded C/C++ web server (civetweb).

Also, the application must find and launch the installed browser. In my opinion, this part is very fragile. On my system, this function (webui/src/webui.c) :

   static bool _webui_browser_exist(_webui_window_t * win, size_t browser);
cannot find my browser.
sdkgames··on Xmas.c (1988)
gzip is based on the DEFLATE algorithm, which is a combination of LZ77(1977) and Huffman coding(1952).( https://en.wikipedia.org/wiki/Gzip )
sdkgames··on Xmas.c (1988)
>The program is smaller than even the 'compressed' form of its output,

>and thus represents a new departure in text compression standards.

7z and gzip disagree with this statement.

sdkgames··on Zaum
Auktyon (a Russian alternative rock band) has an album of songs based on poems by Russian futurist Velimir Khlebnikov. [1]

[1] https://www.youtube.com/watch?v=YFDBG7sGDRU

sdkgames··on My favorite Vim oneliners for text manipulation
if you have fmt (a console program from coreutils, on Linux it's usually preinstalled) then

1) mark your lines (Shift+v then move your cursor)

2) press ':'

3) '<,'> !fmt -w 80

In the similar way I also use column to format text.

sdkgames··on Matrices and Graph
graphviz? [0]

[0] https://graphviz.org/gallery/

sdkgames··on Why is the volume of a cone one third of the volume of a cylinder? (2010)
The only effective way to raise the confidence level of a program significantly is to give a convincing proof of its correctness. [0]

Edsger W. Dijkstra

CONTEXT:

Argument three is based on the constructive approach to the problem of program correctness. Today a usual technique is to make a program and then to test it. But: program testing can be a very effective way to show the presence of bugs, but is hopelessly inadequate for showing their absence. The only effective way to raise the confidence level of a program significantly is to give a convincing proof of its correctness. But one should not first make the program and then prove its correctness, because then the requirement of providing the proof would only increase the poor programmer’s burden. On the contrary: the programmer should let correctness proof and program grow hand in hand. Argument three is essentially based on the following observation. If one first asks oneself what the structure of a convincing proof would be and, having found this, then constructs a program satisfying this proof’s requirements, then these correctness concerns turn out to be a very effective heuristic guidance. By definition this approach is only applicable when we restrict ourselves to intellectually manageable programs, but it provides us with effective means for finding a satisfactory one among these.

[0] Edsger Dijkstra - Turing Award Lecture - The Humble Programmer - 1972

https://www.cs.utexas.edu/~EWD/transcriptions/EWD03xx/EWD340...

sdkgames··on Principles of Imperative Computation
Is this about Design by contract? [0] But why do they force students to use an imperative language?

[0] https://en.wikipedia.org/wiki/Design_by_contract

sdkgames··on Temporal quality degradation in AI models
>Are there ML models that are trained while being used?

https://en.wikipedia.org/wiki/Reinforcement_learning#Explora...

sdkgames··on Show HN: A fast, lightweight vector3D C++ library
Cool! I would use a template parameter so that a user can choose between float and double [1]. I would add support for vector arrays (AOS and SOA) [2]. I'm not sure if your angle calculation algorithm is computationally cheap [3].

[1] https://stackoverflow.com/questions/4584637/double-or-float-...

[2] https://stackoverflow.com/questions/40163722/is-my-understan...

[3] https://stackoverflow.com/questions/1427422/cheap-algorithm-...

sdkgames··on Mars After Midnight: Gameplay Loop
Adding a new game object to a game increases its complexity ("combinatorial explosion"). Good tools are needed to deal with this.

"Great tools help make great games. Spend as much time on tools as possible" (c) J.Romero.[1]

[1] https://www.youtube.com/watch?v=KFziBfvAFnM&t=884s

sdkgames··on Will Carbon Replace C++?
>without understanding that the first only adds type declarations

https://www.typescriptlang.org/docs/handbook/enums.html

sdkgames··on What's new in C# for Godot 4.0
Regarding Godot 3.x and HTML5 export. Users reported crashes with GLES3. It seems stable rendering is based on GLES2 (WebGL v1.0). Some features don't work in HTML5 (e.g. "Some features are also not supported in WebGL 2.0 specifically."[1]; "built-in antialiasing will not look correct for translucent lines and may not work on certain platforms" [2])

[1] https://docs.godotengine.org/en/stable/tutorials/export/expo...

[2] https://docs.godotengine.org/en/stable/classes/class_canvasi...

sdkgames··on Jonathan Blow: “Video Games and the Future of Education”
Jonathan Blow has been a huge influence on (independent) game developers. However, The Witness contains puzzles that are impossible for colorblind and hearing impaired people. I'm not sure I can classify this as "a thesis on learning/pedagogy, motivation/reward, truth seeking and self fulfilment."
sdkgames··on Video games made in the USSR (2020)
>The creators of Tetris saw none of the profits from their creation. Their game was seized by the state as soon as it became popular and they never really profited.

Wiki tells a different story

sdkgames··on Blender 3.4
I want them to support a textual shading language for all render engines. Instead, they cultivate graphical programming. From a programmer's point of view, this is a significant drawback.
sdkgames··on Show HN: Compass and Ruler construction problems as puzzle game
Using analytic geometry methods, I test every new figure, whether it gives a solution.

Thank you for the feedback. I will check that.

sdkgames··on Show HN: Compass and Ruler construction problems as puzzle game
That's strange. I have no errors on Firefox 104.
sdkgames··on Show HN: Compass and Ruler construction problems as puzzle game
Thanks for the feedback. I will check the win conditions.
sdkgames··on Show HN: Compass and Ruler construction problems as puzzle game
Thank you! While Euclidea and my game explore the same theme, the approaches are different. It seems Euclidea uses some kind of automated theorem prover to verify a solution. I use numerical verifiers. There are pros and cons for both approaches. The tools are different. I think some choices in Euclidea are too restrictive (e.g. collapsible compass, inability to draw arcs). Their monetization model affects the gameplay (grinding, solution hiding).
sdkgames··on Paradigms of Artificial Intelligence Programming (1992)
Most popular Linux distributions include Common lisp packages. For example, "sbcl". if you have Debian/Ubuntu you should be able to install it like this: "sudo apt-get install sbcl"
sdkgames··on Suckless.org – software that sucks less
If you need additional functionality, you must patch the program's source code with diff files. I don't think this principle scales well. If you change the source code, all patches will become invalid. How is it supposed to work?
sdkgames··on Ask HN: Who is using C++ as the main language for new project?
>don’t care too much about integrating with web stacks (which is always a chore in C++)

Why so? Using Emscripten You can always compile C++/C to WebAssembly (for execution in web browsers).

sdkgames··on Godot 3.5
>I don't find the scripting language any worse or better than any modern script languages. What are the missing features?

lambdas, closures, support for error handling, constructor overloading, list comprehension, packing/unpacking (arguments/lists), varargs

sdkgames··on Godot 3.5
TLDR: The problem with Godot is that it tries to be everything to everyone.

They made an engine, an editor (a text editor, resource editor, debugger ...), invented a new language. They "support" export to almost all popular OS platforms. But in my opinion it's lacking in quality. The engine is slow (old style based on OOP), the editor is buggy, the language (GDScript) doesn't have the features of a modern scripting language.

But it's certainly good for rapid prototyping and learning.