Better HN
topnewbestaskshowjobs
Log inSign up

sdkgames

115 karma · joined Aug 1, 2022 (4y ago) · 32 submissions

Submissions

comment 1y ago · link · parent

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

comment 1y ago · link · parent

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

comment 2y ago · link · parent

The old version [0] has the correct layout.

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

comment 2y ago · link · parent

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

comment 2y ago · link · parent

> 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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

gzip is based on the DEFLATE algorithm, which is a combination of LZ77(1977) and Huffman coding(1952).( https://en.wikipedia.org/wiki/Gzip )

comment 2y ago · link · parent

>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.

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

graphviz? [0]

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

comment 3y ago · link · parent

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...

comment 3y ago · link · parent

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

comment 3y ago · link · parent

>Are there ML models that are trained while being used?

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

comment 3y ago · link · parent

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-...

16.

How an 18th Century Sailing Battleship Works [video](youtube.com ↗)

3 points · by sdkgames · 3y ago · discuss

comment 3y ago · link · parent

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

comment 3y ago · link · parent

>without understanding that the first only adds type declarations

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

comment 3y ago · link · parent

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...

comment 3y ago · link · parent

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."

comment 3y ago · link · parent

>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

comment 3y ago · link · parent

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.

comment 4y ago · link · parent

Using analytic geometry methods, I test every new figure, whether it gives a solution.

Thank you for the feedback. I will check that.

comment 4y ago · link · parent

That's strange. I have no errors on Firefox 104.

comment 4y ago · link · parent

Thanks for the feedback. I will check the win conditions.

comment 4y ago · link · parent

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).

27.

Show HN: Compass and Ruler construction problems as puzzle game(sdkgames.itch.io ↗)

125 points · by sdkgames · 4y ago · 27 comments

comment 4y ago · link · parent

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"

comment 4y ago · link · parent

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?

comment 4y ago · link · parent

>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).

12