Monday, February 1, 2016

Another comment syntax! What horror!

Someone linked to this thread at the LoCaA Skype group when I mentioned source code. Apparently, it's not the full Danmakufu source code (and even then it was before PH3), but rather only the language interpreter. Sigh, we might as well give up all hope of getting any kind of source, even with this handy doing-Marisa's-job-tool.

//skip whitespace
        while(* current == 13 || * current == 10 || * current == 9 || * current == 32
           || * current == '#' || (* current == '/' && (current[1] == '/' || current[1] == '*')))
           {
                   //skip comments
                   if(* current == '#' ||
                           (* current == '/' && (current[1] == '/' || current[1] == '*')))
                   {
                           if(* current == '#' || current[1] == '/')
                           {
Wait, what?!!

I tested it, and it seems that # can also act as a valid start of comment, just like //, even under PH3. I don't know why any of you would need that, but there you go, for some extra variety!

* draws a summon mkm sigil *

Thursday, October 15, 2015

Programming Philosophy

Binary: What does it mean to be?
Early days of computing (Assembly, Fortran, Basic, C): What does it mean to be good?
C: What did you say?
Java: What do you mean?
Perl: What does this mean?
Javascript: What does "this" mean?
Danmakufu: What the ...?

*rimshot*

Saturday, June 13, 2015

Oh shift!

This is package.dnh, a Danmakufu source with nearly 1199 lines. Look at the shift key on the heatmap.

Wednesday, April 1, 2015

Updates on Nightmare of Torrential Precipitation

For a while, I've been working on Nightmare of Torrential Precipitation, a full, completely original game written in Danmakufu! Yeah, that's right: 9782 lines of unadulterated Danmakufu code.

Unfortunately, due to a show-stopping bug, the release of the next demo will have to be delayed to April 4. We apologize for your inconvenience.
In addition, the Japanese translator for NTP has redacted his offer to translate the game due to a heated argument, and a mistake with another user has caused me to be "permanently suspended" from LOCAA, as Sparen had told me the other day. Moreover, I have been temporarily banned from MoTK due to participating in a flamewar, and KermMartian, founder of Cemetech, has explicitly refused to pardon my account.
Furthermore, due to megahomework over spring break from my Spanish teacher, I might not be able to develop NTP that much during that period, and I have been accused of raising a crowdfunding campaign for the (still extremely-WIP) Project Youmu engine.
On the bright side, the anti-crowdfunding policies of Touhou Prono are hereby repealed, given that not everyone wishes to be a "starving artist".

Everything in this post except the first two sentences and this one is an April Fool's prank; happy belated April Fool's day!

Sunday, February 22, 2015

How to make added strings works with regular strings

If you see my UTF-8 reader, you can see that I managed to make it compatible with regular strings. Line #69 is the key here, and I'll reproduce it for you:
return ToString(res);
Yes, if you use ToString, then the result will be completely compatible with regular strings!

Saturday, February 14, 2015

/r/DNHTIL

TIL that if you try to yield in @Initialize, Yukari will gap into your house and eat your brains.

Rectangle Horror

Thanks to Achy from LOCAA.

"the one above has a correct rect, and the one below should have a pixel from the bullets next to it stuck on it." - Achy

Wait, I don't get it. Is the top really supposed to look like that, or did you mess up the order? Probably the latter.

Elaboration:

For the red one I have (1,1,9,9)
but those 9's, other bullets are starting on them
so why are pixels from them not showing up>
[02:11:59] Achy: And with the orange one above...
(9,1,16,8)
the bullets on screen are 8x8