Archiverse Internet Archive
投稿のみ 投稿と返信
前のページ(最近)
15 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
次のページ(過去)
返信[9]
親投稿
MathPRG MathProgrammer
And there is no IF statement in C, capitalization is a key thing to remember in C. It's mostly the inverse of BASIC, your commands are usually entirely lowercase, and there is a difference between a variable named 'count' and another called 'COUNT'. Usually uppercase is used for constants. Sorry for being so precise... ;)
0そうだね
プレイ済み
返信[8]
親投稿
MathPRG MathProgrammer
And autocorrect changed Aah to Ash... Darn!
0そうだね
プレイ済み
返信[7]
親投稿
MathPRG MathProgrammer
I forgot an S at the end of return, and put an r in both! I am having a bad grammar/spelling day!
0そうだね
プレイ済み
返信[6]
親投稿
MathPRG MathProgrammer
Yes, however many tutorial books still use them with one line if there is only one function to execute in such a case. Of course, it makes perfect sense that the braces would represent the THEN, because they borh say what to execute should if() find the condition return a value other than 0.
0そうだね
プレイ済み
返信[2]
親投稿
MathPRG MathProgrammer
The main features of the patch are nearly complete, I just need to add option saving now! After I track down any bugs I will be replacing 1.0 with 1.0.1 :) 1.1 will be the next update to have a major impact on gameplay, with two new enemies, music, and visual effects being the focus.
0そうだね
プレイ済み
返信[15]
親投稿
MathPRG MathProgrammer
I guess I'm just a bit picky about my programs lol :P. Besides, the HELP menu is there to describe any command you put the cursor over thoroughly, including all integer values that may be returned and any constants related. If you look in POLYGON's source code, I very rarely used the RGB() command, I replaced RGB(255,0,0) or #RED with -65536 and everything x) I memorized the first 21 powers of 2.
1そうだね
プレイ済み
返信[14]
親投稿
MathPRG MathProgrammer
Although why exactly would you want to include any other button in combination with the first as a valid value to carry out a task? It could lead to overlapping functions, as stated earlier. If you wanted A to do one thing and UP another, they would both be usable at the same time, which could lead to errors in the program.
0そうだね
プレイ済み
返信[13]
親投稿
MathPRG MathProgrammer
Oops, didn't fully take in your last comment. I think I'm a bit tired xD. And while that reasoning for using AND may be helpful, it of course depends on the scenario. If you want A to be a button to, for example, push the gas on a racing game, and B to be the brakes, you'd want it to be A OR B.
0そうだね
プレイ済み
返信[12]
親投稿
MathPRG MathProgrammer
I don't understand why the AND logic gate is used so much for this command though. Isn't it clearer to ask if BUTTON() is equal to a value?
0そうだね
プレイ済み
返信[11]
親投稿
MathPRG MathProgrammer
Yes, it definitely is better to make your code more readable. What if someone wants to learn what you did with a program? Nice to see which functions do which and stuff. Comments help too but take more space. My arguments are a bit invalid I admit, shorter code doesn't necessarily decrease file size. Even comments need to be stored in memory.
0そうだね
プレイ済み
返信[2]
親投稿
MathPRG MathProgrammer
Not necessarily, it could make objects start skipping, making it difficult to predict when they will move, and when you do.
0そうだね
プレイ済み
返信[4]
親投稿
MathPRG MathProgrammer
Ash! Autocorrect changed #include <stdio.h> to studio.h! Darn it, I'm ruined!
1そうだね
プレイ済み
返信[3]
親投稿
MathPRG MathProgrammer
Fun fact on a different programming language. I primarily use SmileBASIC right now but C is my second most used xD
0そうだね
プレイ済み
返信[2]
親投稿
MathPRG MathProgrammer
For BASIC at least. In C it would be written as: #include <studio.h> int main( void ) { if(condition) { goto label //or variable=Function(); } return 0; }
0そうだね
プレイ済み
返信[3]
親投稿
MathPRG MathProgrammer
Its always nice to see some more original content in the making with SmileBASIC. Keep up the good work!
1そうだね
プレイ済み
返信[2]
親投稿
MathPRG MathProgrammer
Even still, it uses Scott Cawthon's characters, images, and overall the content from his games in an unauthorized way. Think about it, if you were to just pay the money to buy the legitimate game, then you would be supporting the creator so he has more to work off of, and can continue doing what he does.
0そうだね
プレイ済み
返信[9]
親投稿
MathPRG MathProgrammer
And where's the proof that Scott legitimately approved of this, just because someone says so doesn't mean they're truthful. The internet is full of lies. And sure, a FAN game would be less of an issue, but this is a COPY, using the original name, characters, setting, and everything. Therefore it is not a fan game, but rather a clone ported to SmileBASIC.
1そうだね
プレイ済み
返信[8]
親投稿
MathPRG MathProgrammer
Not so it can be redistributed to everyone for free. What would be the point in that, make a game and charge a price for the full version on a certain platform, but allow someone else to take that and spread it to the world at no cost? It's essentially pirating.
1そうだね
プレイ済み
返信[7]
親投稿
MathPRG MathProgrammer
That doesn't count. Just because he says all credits go to Scott, Scott himself didn't approve of this. If it was a legal fan game, why did it get taken down EVERY SINGLE TIME it was uploaded? Unless Scott gives permission to use his original characters and settings, it is not a legal game. Copyright exists so the original creators get PAID for their hard work.
1そうだね
プレイ済み
返信[6]
親投稿
MathPRG MathProgrammer
I don't think that counts. Unless it is legally permissive by Scott Cawthon himself for you to be redistributing his game with the original characters and place and everything, and basically giving his game away for free, it's not a legal fan game. He didn't make the game so other people could give it away free to everyone. If it was a legal game, it wouldn't have been taken down EVERY SINGLE TIME
1そうだね
プレイ済み