hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    HyperPad behaviours through text like regular programming

    Scheduled Pinned Locked Moved
    Comments & Feedback
    8
    30
    1.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Thecheater887
      last edited by Thecheater887

      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 = 15

      FOREACH [[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)
      ENDIF

      This 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 :)

      KamdroidK 1 Reply Last reply Reply Quote 0
      • KamdroidK
        Kamdroid @Thecheater887
        last edited by

        @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..

        D 1 Reply Last reply Reply Quote 0
        • D
          Deeeds @Kamdroid
          last edited by

          @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.

          D 1 Reply Last reply Reply Quote 0
          • D
            Deeeds @Deeeds
            last edited by Deeeds

            @Thecheater887 @Kamdroid

            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: () –> ()) –> (){}

            1 Reply Last reply Reply Quote 0
            • T
              Thecheater887
              last edited by

              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.

              D iTap DevelopmentI 2 Replies Last reply Reply Quote 0
              • D
                Deeeds @Thecheater887
                last edited by Deeeds

                @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.

                D iTap DevelopmentI 2 Replies Last reply Reply Quote 0
                • D
                  Deeeds @Deeeds
                  last edited by

                  @Thecheater887

                  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

                  1 Reply Last reply Reply Quote 0
                  • iTap DevelopmentI
                    iTap Development @Deeeds
                    last edited by

                    @Deeeds what’s wrong with downloading url based images?

                    1 Reply Last reply Reply Quote 0
                    • iTap DevelopmentI
                      iTap Development @Thecheater887
                      last edited by

                      @Thecheater887 I thought educational apps could upload and share code, as long as the user could view and edit it?

                      1 Reply Last reply Reply Quote 0
                      • MurtazaM
                        Murtaza Admin
                        last edited by

                        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 :).

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          Deeeds @Murtaza
                          last edited by

                          @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.

                          GameCRAZYG Jack8680J 2 Replies Last reply Reply Quote -1
                          • GameCRAZYG
                            GameCRAZY @Deeeds
                            last edited by

                            @Deeeds What, why get rid of the hub? You surely can't get rid of and redo everything?

                            D 1 Reply Last reply Reply Quote 0
                            • D
                              Deeeds @GameCRAZY
                              last edited by

                              @GameCRAZY

                              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:

                              1. Die Slowly but Surely
                              2. 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.

                              KamdroidK 1 Reply Last reply Reply Quote 0
                              • Jack8680J
                                Jack8680 @Deeeds
                                last edited by

                                @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.

                                1 Reply Last reply Reply Quote 0
                                • KamdroidK
                                  Kamdroid @Deeeds
                                  last edited by Kamdroid

                                  @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.

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    Deeeds @Kamdroid
                                    last edited by

                                    @Kamdroid what would have a negative impact on hyperPad?

                                    1 Reply Last reply Reply Quote 0
                                    • Aidan_FireA
                                      Aidan_Fire
                                      last edited by

                                      If the Hub was removed, I’d probably stop using hyperPad, or work with @Jack8680 to make our own lol.

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        Deeeds @Aidan_Fire
                                        last edited by

                                        @Aidan-Oxley @Jack8680 I'm now convinced this is a worthy initiative ;)

                                        JUST KIDDING!!!

                                        D Jack8680J 2 Replies Last reply Reply Quote 0
                                        • D
                                          Deeeds @Deeeds
                                          last edited by

                                          @Kamdroid @Aidan-Oxley @Jack8680

                                          What's the need for the HUB if there were full project and code sharing similar to iPad Playgrounds and (to a large extent) Codea?

                                          KamdroidK 1 Reply Last reply Reply Quote 0
                                          • Jack8680J
                                            Jack8680 @Deeeds
                                            last edited by

                                            @Deeeds where would you share them? On the forums? Then you'd have to make a post about it and put in your own formatting, and where would you upload the project? The hub is an easy way to share projects, with a single tap to play a project.

                                            I still don't see a reason to remove the hub unless apple doesn't allow it or it blocks some other functionality from existing.

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post