C# is actually only written C# because it's fucking hard to write C♯ honestly
[QUOTE=Ziks;37078090]Working on a pixel art drawing program to make it a bit easier for me to make art for my games.
[img]http://puu.sh/Oyln[/img]
It's going to be layer based (technically is already, but you can only modify the first layer at the moment). Changing a colour in the palette automatically updates the image, and you can save / load palettes to use them across multiple images.
[editline]4th August 2012[/editline]
[url=https://github.com/Metapyziks/Spryt]src[/url][/QUOTE]
That's cool, but I feel like making a drawing program to make art for games you're making is a little... excessive? Who are you? [URL="http://en.wikipedia.org/wiki/TeX#History"]Knuth[/URL]?
[QUOTE=Ziks;37078090]Working on a pixel art drawing program to make it a bit easier for me to make art for my games.
[img]http://puu.sh/Oyln[/img]
It's going to be layer based (technically is already, but you can only modify the first layer at the moment). Changing a colour in the palette automatically updates the image, and you can save / load palettes to use them across multiple images.
[editline]4th August 2012[/editline]
[url=https://github.com/Metapyziks/Spryt]src[/url][/QUOTE]
There should be a little preview image that updates automatically and shows you how the image looks at normal zoom.
[QUOTE=thomasfn;37078473]There should be a little preview image that updates automatically and shows you how the image looks at normal zoom.[/QUOTE]
Great idea, yes. I'll also have it so you can tile the image to see if it is seamless when doing stuff like floor tiles.
[editline]4th August 2012[/editline]
[QUOTE=Larikang;37078429]That's cool, but I feel like making a drawing program to make art for games you're making is a little... excessive? Who are you? [URL="http://en.wikipedia.org/wiki/TeX#History"]Knuth[/URL]?[/QUOTE]
I'm mainly doing it because when using other programs there would be features I wished I could add. Also this is free. And it is fun to code it.
Making steady progress on my x86 machine code project!
[code][BITS 32]
mov eax, 0
mov ecx, 1
jmp main
main:
add eax, ecx
cmp eax, 2
je finish
jmp main
finish:
mov eax, 64[/code]
That's a simple loop that compiles to:
[code]B8 00 00 00 00 B9 01 00 00 00 E9 00 00 00 00 01
C8 3D 05 00 00 00 74 05 E9 F2 FF FF FF B8 40 00
[/code]
And now, through my program:
[img]https://dl.dropbox.com/u/5658091/machine_code_3.png[/img]
The instruction output isn't correct, and I'm not sure why jmp main has it return to the original jmp main to be jumped back to the start of main, but hey, this is pretty damn cool.
I wrote a parser for ~ATH's colourless grammar today:
[IMG]https://dl.dropbox.com/u/5013896/forum/Facepunch/Programming%20WAYWO/8.2012/%7EATHParser.png[/IMG]
It probably would work with things similar to Lisp and XML with a different grammar description, although recursion could be a problem.
The comment is left-aligned because white space between tokens is skipped. Maybe I should make that a token too.
[editline]Added white space token[/editline]
[IMG]https://dl.dropbox.com/u/5013896/forum/Facepunch/Programming%20WAYWO/8.2012/%7EATHParserWhitespaceToken.png[/IMG]
[QUOTE=supersnail11;37076549]I actually used to call it "C-Pound" :v:[/QUOTE]
I hate how people call the hash (#) symbol a pound (£) symbol.
[QUOTE=COBRAa;37079731]I hate how people call the hash (#) symbol a pound (£) symbol.[/QUOTE]
It's called pound for a completely different reason
[quote]Historically, the pound name derives from a series of abbreviations for pound, the unit of weight. At first "lb." was used; however, printers later designed a font containing a special symbol of an "lb" with a line through the verticals so that the lowercase letter "l" would not be mistaken for the numeral "1". Unicode character U+2114 ℔ l b bar symbol (HTML: ℔) is a cursive development of this symbol. Ultimately, the symbol was reduced for clarity as an overlay of two horizontal strokes "=" across two forward-slash-like strokes "//".[/quote]
[QUOTE=esalaka;37078378]C# is actually only written C# because it's fucking hard to write C♯ honestly[/QUOTE]
C-Backwards-Looking-Pound-Symbol-Thing
[QUOTE=supersnail11;37079779]It's called pound for a completely different reason[/QUOTE]
Not completely different. The pound sign (£) is also named after the unit of weight as 1 pound sterling was equivalent to 1 pound weight of silver. Also the symbol is derived from a capital L (for libra, where lb comes from).
You learn something new erryday.
A question for you guys, when something in your code throws an exception, does your program simply go up the call stack, ignoring everything except for catch blocks?
[QUOTE=DoctorSalt;37081178]A question for you guys, when something in your code throws an exception, does your program simply go up the call stack, ignoring everything except for catch blocks?[/QUOTE]
[cpp]
methodName()
{
Is executed
Is executed
*throws an exeption*
Isn't executed
Isn't executed
}
methodName()
{
try
{
Is executed
*throws an exeption*
Isn't executed
}
catch
{
Is executed
}
Is executed
}
[/cpp]
Hope that explains it.
Been away for a while and now that i'm back i've been looking into Curvilinear Perspective: [url]http://en.wikipedia.org/wiki/Curvilinear_perspective[/url]
Here's what I have so far, it's made in Love2d. I'm currently working on proper depth testing, rotations and improving everything really. This is just a prototype.
Ignore the FPS, quicktime fucked it up.
[vid]http://puu.sh/ODr4[/vid]
[IMG]http://i.imgur.com/yiXy0.jpg[/IMG]
The start of a program that rummages through your documents and opens random files.
Perhaps it will insult the user with notification bubbles as well.
Written in C.
It's alive! [img]https://dl.dropbox.com/u/5013896/emoticons/science.gif[/img]
[img]https://dl.dropbox.com/u/5013896/forum/Facepunch/Programming%20WAYWO/8.2012/It%27s%20alive.png[/img]
It's compiled to IL and invoked dynamically, so it's actually running machine code at some point.
(The WriteLines aren't 100% accurate, it compiles the expressions to IL in the Run() method.)
[editline]Separated compiling and running[/editline]
[code]Parse... OK.
Compile... OK.
Run... OK.
Parse... OK.
Compile... OK.
Run...[/code]
That's better.
[QUOTE=dije;37076940]in swedish it's C-fyrkant :v:[/QUOTE]
C-brädplank
No, in Swedish it's also C-Sharp, because it's a proper name. See [URL="http://sv.wikipedia.org/wiki/C-sharp"]this Swedish Wikipedia[/URL] article for confirmation.
EDIT: also, [URL="http://www.microsoft.com/visualstudio/sv-se/products/products-express"]this Microsoft page[/URL] (Visual C# (uttalas "C sharp") är utformad för att underlätta skapandet av en bred flora av applikationer inom .NET-ramverket.)
[QUOTE=ShaunOfTheLive;37082360]No, in Swedish it's also C-Sharp, because it's a proper name. See [URL="http://sv.wikipedia.org/wiki/C-sharp"]this Swedish Wikipedia[/URL] article for confirmation.
EDIT: also, [URL="http://www.microsoft.com/visualstudio/sv-se/products/products-express"]this Microsoft page[/URL] (Visual C# (uttalas "C sharp") är utformad för att underlätta skapandet av en bred flora av applikationer inom .NET-ramverket.)[/QUOTE]
The # sign is usually called "fyrkant" (mean square) in Swedish. Of course it's still C-Sharp, but they are trying to be funny.
Sorry, the factory forgot to install my humour chip, and they won't pay for shipping on an RMA. Beep boop.
[I]C-Sharp[/I]
Move on to posting waywo now please.
Coctothorpe
[QUOTE=Bambo.;37081725]Been away for a while and now that i'm back i've been looking into Curvilinear Perspective: [url]http://en.wikipedia.org/wiki/Curvilinear_perspective[/url]
Here's what I have so far, it's made in Love2d. I'm currently working on proper depth testing, rotations and improving everything really. This is just a prototype.
Ignore the FPS, quicktime fucked it up.
[vid]http://puu.sh/ODr4[/vid][/QUOTE]
It looks like a wireframe hallway on top of an endlessly high support with a high FOV.
[QUOTE=Map in a box;37079798]C-Backwards-Looking-Pound-Symbol-Thing[/QUOTE]
That's a sharp sign. It's C-Sharp because that's a [url=http://en.wikipedia.org/wiki/Sharp_%28music%29]sharp sign[/url]. That's why.
[QUOTE=esalaka;37082886]That's a sharp sign. It's C-Sharp because that's a [url=http://en.wikipedia.org/wiki/Sharp_%28music%29]sharp sign[/url]. That's why.[/QUOTE]
Since there's so much disagreement on how you say C#, I have a proposition.
[img]http://sadpanda.us/images/1126776-7I4O7S5.jpg[/img]
[QUOTE=Corey_Faure;37083085]Since there's so much disagreement on how you say C#, I have a proposition.
[IMG]http://sadpanda.us/images/1126776-7I4O7S5.jpg[/IMG][/QUOTE]
I like how the last line is a part of the picture just so the name isn't in a separate row.
Made a program that can read information from an NES NSF music file:
[t]http://i.imgur.com/eul4T.png[/t]
I'm eventually going to evolve it into a full blown music player for NSF files, but I need to emulate the APU and CPU of the NES to do that. I figured I may as well do this first.
Techically "C sharp" should be translated as "Ciss" in swedish because that's how the musical term goes
Randomly got the urge to work on an old project. So here is my BNF parser and tokeniser.
The BNF:
[code]
// This is test BNF!
// these comments will be ignored!
<LowercaseLetter> ::= a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | y | z
<UppercaseLetter> ::= A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
<Digit> ::= 0|1|2|3|4|5|6|7|8|9
<Comma> ::= ','
<ExclamationMark> ::= '!'
<Arithmetic> ::= '+' | '-' | '='
<Brackets> ::= '(' | ')'
<Letter> ::= <LowercaseLetter> | <UppercaseLetter>
<Character> ::= <Letter> | <Digit>
<Word> ::= <Character> | <Character><Word> | <Word><Word>
<WhitespaceCharacter> ::= ' ' | '\t' | '\n' | '\r'
<Whitespace> ::= <WhitespaceCharacter> | <WhitespaceCharacter><Whitespace>
<OptWhitespace> ::= <Whitespace> | ''
[/code]
The test input string:
[code]Hello, th1s 1s a tes7 string! 32 + 40 = 72 (Just testing stuff)[/code]
The resulting token stream:
[img]http://i.imgur.com/pd7Wp.png[/img]
There's a kinda fundamental issue with the way I'm "upgrading" tokens to other tokens, so weird stuff like <Word> ::= <Word><Word> is needed to make it work properly. As I was typing this I thought of a way to resolve it though.
[QUOTE=Eric95;37083848]Techically "C sharp" should be translated as "Ciss" in swedish because that's how the musical term goes[/QUOTE]
Isn't that just Cis
Sorry, you need to Log In to post a reply to this thread.