HackerTrans
TopNewTrendsCommentsPastAskShowJobs

sdkgames

no profile record

Submissions

How an 18th Century Sailing Battleship Works [video]

youtube.com
3 points·by sdkgames·3 năm trước·0 comments

comments

sdkgames
·năm ngoái·discuss
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
·năm ngoái·discuss
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
·2 năm trước·discuss
The old version [0] has the correct layout.

[0] https://web.archive.org/web/20221010031002/https://www.trito...
sdkgames
·2 năm trước·discuss
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
·3 năm trước·discuss
> 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
·3 năm trước·discuss
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
·3 năm trước·discuss
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
·3 năm trước·discuss
>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
·3 năm trước·discuss
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
·3 năm trước·discuss
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
·3 năm trước·discuss
graphviz? [0]

[0] https://graphviz.org/gallery/
sdkgames
·3 năm trước·discuss
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
·3 năm trước·discuss
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
·3 năm trước·discuss
>Are there ML models that are trained while being used?

https://en.wikipedia.org/wiki/Reinforcement_learning#Explora...
sdkgames
·3 năm trước·discuss
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
·3 năm trước·discuss
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
·3 năm trước·discuss
>without understanding that the first only adds type declarations

https://www.typescriptlang.org/docs/handbook/enums.html
sdkgames
·3 năm trước·discuss
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...