• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums
J

Jason Jarvis

@Jason Jarvis
About
Posts
5
Topics
2
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

    Modules/Common code scripts?
  • J Jason Jarvis

    hmm. thanks for the reply. After working on Beast Brawlers using GameSparks, we found that there were coding patterns that we were able to reduce redundant coding.

    We used "modules" to handle data management of specific db collections. Such as Currency, we used a currency module to have common functions. Such as AddCurrency(type, amount, detailsOnWhy).

    This way we had a common code flow when the currency was added. So when our different points of currency added

    • Lootbox
    • End of play
    • store purchase of in-game goods
    • cash purchase
    • live opts tools
    • season rewards from clan achievements
    • daily quests
    • progression rewards
    • reward videos
    • new accounts
    • purchasing skins
    • purchasing in-game goods
    • Special event rewards
    • External tournament rewards(we used Amazon GameOn)

    so in our workflow as a sample

    EventHook for XYZ
    requireOnce("CurrencyModule")
    Currency.Add( player, Currency.Type.Gold, 100, "GamePlay-SecondPlace");

    I'm concerned about the idea that either I would have to copy and paste common code to the head of any hook isn't viable. If I need to change the code it's not viable to go through every point.

    The global properties sound interesting, but if it's not built for lots of modules and this kind of use. Since I need to run eval every time I'm concerned about the jit time. I'm concerned I would break the server pretty quick. Is there any kind of memory cache in BrainCloud. GS had a memory cache where we could store js objects such as pseudo-classes. Sorry, I'm not trying to do too many comparisons. I'm just trying to figure out how to bring over some of my tools I did for myself without smashing the entire system 😄

    Although currency is really simple. However, in my case, I would rather run a region territory control module and break that up into two modules. one to manage territory data so that the board can be broken into different games and the other being the actual game logic.

    The 20 to 25k is fine. GameSparks I think we may have had a 10k limit when we started.

    I really appreciate your time in helping me understand BrainCloud.


  • Modules/Common code scripts?
  • J Jason Jarvis

    Is there a way to include common code scripts?

    such as require or some other way?


  • Global Entities What, when, where and how?
  • J Jason Jarvis

    Thank you, fantastic. I appreciate all the information you have given.


  • Global Entities What, when, where and how?
  • J Jason Jarvis

    Nice, thank you for the answer. BrainCloud has so far been the best feature offer for 1 person tinkering there own little mini-games that I have come across. I'm looking forward to digging in a little more and doing some tests.

    Another question. Is there a way to view the entities in the Portal. I'm new I'm having troubles finding my way around.


  • Global Entities What, when, where and how?
  • J Jason Jarvis

    Hi, I developed a game on GameSparks last year for a former employee. However, I've been personally looking around at different BaaS that is friendly for living room one-man developer to publish something simple and cheap. BrainCloud looks interesting and very familiar, but I don't can't find any information on a global database... in fact, I can't find any information on any form of database in the portal or how to use any. All I can find is some existence of User Entities and Global Entities.

    What is BC database if it has one?
    When can I use it? can I use it as part of the development tier?
    Where is it in the portal? Does a db have a portal presence? I can't find anything regarding entities.
    How do I use it?

    My use case is that I want to run a similar game to Risk but on a larger player scale. Where players play a simple mini-game. If players "defend" the region the area sees an increase in soldiers. If the players "attack" a region, the regions numbers will go down. Then on a certain period of time say every 2 hours. The map processes a regional soldier comparison and adjusts the region team control and numbers accordingly. Players that participated get a reward for conquested territories they participated in.

    This means I need crossplayer data and documentation is pretty light on such information.

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users