HyperPad behaviours through text like regular programming
-
@Deeeds I don’t think so, pretty sure it’s just depends if they’re independent (not in a class), or are in a class.
But anyway, my point was that you don’t need to specify a method’s access type or if it’s static, unless you want to override its default behaviour.
The only thing required is the return type and name -
Skimming through and hoping I didn't miss the point, a custom language would be finest.
For instance,
INT OBJC = 0
INT OBJPS = 0
INT MAX OBJPS = 15FOREACH [[OBJECT] in [SCREENVIEW]]
IF [[OBJECT] is [BEHAVIORS.FX.ISPLAYINGSOUND]]
OBJPS = OBJPS +1
IF [[OBJPS] > [MAXOBJPS]]
BEHAVIORS.FX.STOPSOUNDEFFECT (OBJECT)
ENDIF
ENDIF
OBJC = OBJC + 1
IF [[OBJC]>[250]]
PROJECT.SETGRAPHICSQUALITY (PROJECT.GETGRAPHICSQUALITY - 0.1)
PROJECT.SETSOUNDQUALITY (0.5)
ENDIFThis would allow hyperPad to formulate behaviors and change settings using this logic, erase the text after parsing the behaviors into a project, and not anger apple. With some work, of course :)
-
@Thecheater887 However, I was thinking of more mainstream syntax, like C#.
If they made a language like that with everything needing to be upper case, I’d just stick with visual coding..
-
@Kamdroid In one of your earlier posts you mentioned new programmers needing a simple syntax.
This cannot be overstated. It's IMPOSSIBLE to overstate this requirement.
But that's not all that's required.
The grammatical rules need to be as easily understood as possible, too.
The creation process needs to be as elegant and simple as possible.
C#, whilst making a lot of sense to you, is one of the most verbose general languages on the planet, for lots of reasons, and about as far from ideal as any known language.
Please read my post about the requirement of this being an intermediary language, linked above.
C# isn't that, either.
If you're going to get as complex and involved as C#, you might as well use Swift and begin porting hyperPad to Swift, because it'd be less effort and a friendlier language. Despite Optionals needing to be explained.
// just watched my iPad crash whilst typing this, it was sitting on the Behaviours Editor, doing nothing... Full iPad restart, in front of me. First time I've seen that in a while.
-
Probably the best example of a command based language that was designed for discoverability and new users was Logo.
Which was based on Lisp, something all programmers (of any worth) seem to agree was the best language, ever. In.The.World! (Summon your inner Jeremy Clarkson voice when reading the above sentence)
I prefer Swift, but that's because I like this capacity, a lot:
myFunkyFunc(block: () –> ()) –> (){}
-
I don't know if you guys realize, but apple doesn't allow apps to expose internal libraries to users. They also don't allow code to be uploaded or shared from within apps, and don't allow code to be executed in apps if it wasn't pre-compiled and included in the app.
This means ALL traditional coding languages are out of the question. Additionally, any language that would need to be executed, or packaged alongside a program would be unacceptable.
Heck, I'm not even certain a custom-command language that is interpreted into in-app functionality as I showed above is acceptable, but it's a lot more acceptable than anything else here.Thanks Apple.
-
@Thecheater887 Yes, this is well known. But it's (quite recently) been extremely relaxed compared to the past. Part of that is a result of the iPad Playgrounds app becoming a thing.
Part of it is a more relaxed stance on these sorts of matters.
And, yes, what I'm proposing is an intermediary, representative, custom command language doing nothing more than exposing the internal activities of a sandboxed, approved creative app's process. Much like automators and things like IFFFF or any other highly abstracted "language" are currently doing.
The key to a chance of approval is that it be limited to the functionality of the underlying app, nothing else possible, and that that already be approved and obviously limited to activity within itself.
This means downloading URL based images and other stuff is definitely OUT. Not an option. Only user created and hosted content (on device) and the App's existing and already approved content and its in-app purchasable content (which is also approved, obviously).
Allay the fears of Apple, basically. Understand why this rule originally existed and play within the spirit of their intentions and concerns.
-
Some people have trouble believing me on first take, probably because I'm sure of myself and somewhat arrogant in writing. In person, I'm far worse.
No need to believe me, read this instead: https://twitter.com/palmin/status/871980560943636480
-
@Deeeds what’s wrong with downloading url based images?
-
@Thecheater887 I thought educational apps could upload and share code, as long as the user could view and edit it?
-
Apple has in fact relaxed the rules. But, some of the other stuff we're doing make it so they wouldn't be too happy (like the hub).
They're still pretty strict though.Also, this is a huuge undertaking and not something we're prepared to do right now. There are some stuff in the works for exported projects and being able to interact with swift or objective-c outside of the app. But it will be unlikely to ever function within the app.
@Thecheater887 welcome back, you disappeared for a while :).
-
@Murtaza Another suggestion: Kill the hub.
Or just let it die. It's distracting from the core attraction of interactivity creativity and an idea from an era of the old internet. An internet that is no more.
There will never be another kongregate, and we've all since moved and grown into being connoisseurs of mobile gaming, social networking and instant messaging.
-
@Deeeds What, why get rid of the hub? You surely can't get rid of and redo everything?
-
You surely can't fight Apple.
The Five Knights of the Future's Round Table:
Google
Amazon
Apple
Facebook
Microsoft// Oracle
If you're in a situation where your product in some way goes against their policies, but is reliant on their platform(s), you only have two options:
- Die Slowly but Surely
- Follow their policies and have a chance to thrive
Apple has made it clear that they consider themselves to be the hub for all forms of entertainment, and that this is their "software" and "service" industry initiative.
Picking a fight with Apple over where people consume or communicate about what they make in your app that's provided via their app store to their devices is... well, frankly... stupid.
Facebook is 1 million times the idea of any and all game hubs, and replaces all of them, forever... with the exception of PS Network, Xbox Live, Steam which are platforms in their own rights, based on enthusiasts which make up a significant but small section of society.
-
@Deeeds I like the hub, and there are some good games on there that aren't on the AppStore yet.
It's also a great way to get others to test your game and receive feedback, and it can be used for free so people who don't want to invest money can still share their creations.
If apple continues to allow it I think it should stay. If the hub gets removed, I'm sure someone else (probably me) would make their own hub.
-
@Deeeds I would use HyperPad way less often if I couldn’t show off any good stuff I’ve made with HyperPad, though, it’d probably have a negative effect on HyperPad.
-
@Kamdroid what would have a negative impact on hyperPad?
-
If the Hub was removed, I’d probably stop using hyperPad, or work with @Jack8680 to make our own lol.
-
@Aidan-Oxley @Jack8680 I'm now convinced this is a worthy initiative ;)
JUST KIDDING!!!
-