#41✎ 181computableeScholarReceived for knowing a great deal about programming topicsAchievementsosu! Is Awesome!I love osu!Express YourselfFirst DayJoined on the very first day of SmileBASIC SourceWebsiteOkay. Before N# is released, I have a few design choices I'll leave up to you guys.
1) Should the Graphics, Gyroscope, and Microphone classes be non-static (require an object) or static (no object is needed).
2) How important are instance variables to you guys? If you want me to implement those, it will take more time and cause slower compilation/run speeds.
3) How important is a "this" keyword/function (like "this.x=x")
4) Anything you guys want me to add specifically?
Posted
#42✎ 1093YolkaiHead Admin1. How about the circle pad? With automatic deadzone and range? I think it would be better for the microphone to be initialized as an object, but I can see going both ways for most of them. Wynaut both?
2.
3. Yes.
4. No.
Posted
#43✎ 181computableeScholarReceived for knowing a great deal about programming topicsAchievementsosu! Is Awesome!I love osu!Express YourselfFirst DayJoined on the very first day of SmileBASIC SourceWebsiteuse "HardW"
use "Console"
static class entry
def public void main()
int x, y
while (true)
HardW.TouchLoc ~> x, y
Console.Clear
Console.Println str(x) + ", " + str(y)
[SB]WAIT 1
end
end
end static
Okay, here's an update on what I've been working on.
Posted
Edited
by computablee
#44✎ 181computableeScholarReceived for knowing a great deal about programming topicsAchievementsosu! Is Awesome!I love osu!Express YourselfFirst DayJoined on the very first day of SmileBASIC SourceWebsiteOkay, this.variable and foreach are now fully implemented into N#! So now, you could do something like this if you wanted:
use "Console"
static class entry
private int x = 1
def public void main()
int[] x[0]
x = [| 1, 2, 2 |]
x[2] += this.x
foreach (int i in x)
Console.Println i
end
end
end static
Output:
1
2
3
Posted
Edited
by computablee
#45✎ 181computableeScholarReceived for knowing a great deal about programming topicsAchievementsosu! Is Awesome!I love osu!Express YourselfFirst DayJoined on the very first day of SmileBASIC SourceWebsiteI reprogramed a bit of N# so that it supports full AOT compilation! So basically, compilation at runtime is no longer mandatory.
This means MUCH, MUCH quicker loading times, and open-source code is not required. It also means smaller project sizes.
Posted
#46✎ 41DasEtwasWhen you see someone publishing a program using this, should it be in your language or can they upload the compiled code?
Posted
#47✎ 181computableeScholarReceived for knowing a great deal about programming topicsAchievementsosu! Is Awesome!I love osu!Express YourselfFirst DayJoined on the very first day of SmileBASIC SourceWebsite
When you see someone publishing a program using this, should it be in your language or can they upload the compiled code?
They can publish the compiled code if they don't want it open-source. I'll just have the compiler put a something like 'Made with IAmAPersson's N# compiler! in the source. I'll also probably request people say that it's made in N# or something. Not quite sure yet.
Posted
#48✎ 377chemicalexDrawingI like to draw!HobbiesIntermediate ProgrammerI can make programs, but I still have trouble here and there. Programming Strengthosu! Is Awesome!I love osu!Express Yourself
When you see someone publishing a program using this, should it be in your language or can they upload the compiled code?
They can publish the compiled code if they don't want it open-source. I'll just have the compiler put a something like 'Made with IAmAPersson's N# compiler! in the source. I'll also probably request people say that it's made in N# or something. Not quite sure yet.
I'll ask people kindly to put my name somewhere in a CHEM_L program, but I'm fairly sure no one will use it but me.
Posted