The PokéCommunity Forums Fan Games Game Development Scripts & Tutorials
Engine Pocket Engine - Your own Pokemon MMO

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.


Reply
 
Thread Tools
  #1    
Old March 18th, 2016 (1:00 PM). Edited May 16th, 2016 by Void 0.
Void 0 Void 0 is offline
     
    Join Date: Mar 2016
    Gender: Male
    Posts: 7
    Hello pokefans,

    this is a javascript based pokemon engine with a wysiwyg realtime editor. The engine is far from done, but already looks pretty neat.
    The sugar of this engine is the wysiwyg realtime editor and the easy api to add new entities with many custom settings.

    The engine renders over WebGL with a 2d canvas fallback, comes with a 3D audio engine and supports normal map based sprite lighting.

    Demo: Link
    Source: Github

    The big Todos:
    Spoiler:

    - Battle engine (which im not that much pleased to roll on it)
    - WebGL entity shadows
    - Editor UI
    - Replay option with seed based animations
    - Map connections (+map connection editor)
    - Background map tile drawing
    - Server & Client shared flags
    - Multi-user map editing (OT?)


    Nerd cave:
    Spoiler:

    - Behind the scenes:
    Both client and server gets written in Ecmascript6 and make use of experimental Ecmascript7 language features too. The server is based on nodejs, with websocket based binary networking. The game engine is built in a huge modular way.

    Everything is written as strict typed as possible. The rendering task is huge jsperf based optimized, garbage collector friendly with many outsourced hot methods and calculations. The whole code is written as clean as i am able to do right now.

    - Lightning:
    Right now, shadows get dynamically generated based of a object's sprite. Maybe I will extend the lightning engine, so light sources get supported as well. Anyway lightning systems are rendering intensive, so I need to do some researching first, if the browser's canvas supports my concern and evolve some kind of genius math brain. Another thought is to fully switch over to WebGL.

    - Libraries:
    The only libraries this engine makes use of is a A* lib for pathfinding, a seed random number generator and a 3d WebAudio api. The whole pixel-perfect engine, renderer, editor, camera, event system and anything else are carefully written from scratch with much headache (about 18k lines of code right now).

    - Performance:
    The focus lies on simplicity and efficiency, for example to let you render about 1000 animated entities on your screen, running on 60fps, in fullscreen (based on 1920x1080). The engine caches as much things as possible: Textures, maps, shadows, custom colorized sprites etc.

    Reply With Quote

    Relevant Advertising!

      #2    
    Old May 13th, 2016 (8:02 AM).
    Void 0 Void 0 is offline
       
      Join Date: Mar 2016
      Gender: Male
      Posts: 7
      Updated main post.
      Added demo and source code.
      Reply With Quote
        #3    
      Old May 16th, 2016 (3:48 AM).
      TheKenny's Avatar
      TheKenny TheKenny is offline
      The only real Kenny!
         
        Join Date: Feb 2012
        Location: Germany
        Age: 22
        Gender: Male
        Nature: Careful
        Posts: 42
        Wow, it looks really good so far and runs smooth at 60FPS for me. I really like the smooth camera and the seemlessly walking animation.

        But the speech bubbles from the NPCs are kinda buggy, I only see the first three letters, also the whole engine froze when I walked into the sign beside the house. The animations and NPCs were still moving, but I couldn't move anymore.

        Keep up the work, you can achieve something big with this!
        __________________
        The only real Kenny.
        Pokémon <3 | The Legend of Zelda <3
        Reply With Quote
        Reply

        Quick Reply

        Join the conversation!

        Create an account to post a reply in this thread, participate in other discussions, and more!

        Create a PokéCommunity Account

        Sponsored Links
        Thread Tools

        Posting Rules
        You may not post new threads
        You may not post replies
        You may not post attachments
        You may not edit your posts

        BB code is On
        Smilies are On
        [IMG] code is On
        HTML code is Off

        Forum Jump


        All times are GMT -8. The time now is 11:02 AM.