I recently started developing a game, while not using any huge game engines like Unity of Unreal Engine, nor even smaller ones like Heaps or PhaserJS or Cocos2D game frameworks. Here's what I came up with…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rev-list --count --all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The Fibonacci numbers in JavaScript. | |
* | |
* A cached solution with O(1) lookup for previously-calculated terms and O(N) | |
* lookup for uncalculated ones. | |
* | |
* Because numbers in JavaScript are 64bit, the largest available number is | |
* 1.7976931348623157e+308. The 1476th term is the last that can be calculated. | |
* If a later term is requested, the function will return Infinity. | |
* |
In my previous article I covered what's ECS in overall, and what's ECSY, some other tools and potential bottlenecks.
In this article I'll cover some in-depth benchmarks of what I built and play around it a bit.
Because I have no trust in people.
<hashlink>
points to your installation of Hashlink, e.g. folder in whichhl.exe
(or Unix executable) is, alongside with library binaries (.hdll
files), andinclude
folder.<src>
points to the folder containing generated HL/C sources. One that containshlc.json
file.<app>
refers to your output executable name, including extension.<main>
refers to your entry-point file name, including extension (see below).- I provide example of doing it on Windows via MSVC
cl.exe
, but Unix should be more or less same with replacement of argument flags and compiler. - I expect that you DO have a compiler installed and can call
cl.exe
or other compiler from command-line.
Gist is a nice service. We can write code so easily and manage files as repository.
But bad points are …
- Many repository
- Gist destributes random hash to perticular gists (repositories).
- So difficult to find or remember contents as repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------------------------------------------------------------------------------- | |
# r u s t f m t - C O N F I G | |
# ================================================================================== | |
# | |
# Version: 0.7.1 | |
# Author : Robbepop <robbepop@web.de> | |
# | |
# A predefined .rustfmt.toml file with all configuration options and their | |
# associated description, possible values and default values for use in other | |
# projects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function formatBytes(bytes,decimals) { | |
if(bytes == 0) return '0 Bytes'; | |
var k = 1024, | |
dm = decimals || 2, | |
sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], | |
i = Math.floor(Math.log(bytes) / Math.log(k)); | |
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i]; | |
} | |
// Usage: |
I (Yanrishatum) see too many same questions. They irritate me.
Translation
"How dare you come into this chat and not realize that i am the GOD of heaps and that you MUST check out MY documentation1!!! Im veyr abngrey!!!" - translation from someone in chat.
Very accurate, I highly approve.
OlderNewer