Quick Links: Gideros Home | Download Gideros | Developer Guide
Gideros Game Template - Gideros Forums
Gideros Game Template
  • Hello everybody,

    Here is a template, I'm using in my games. It doesn't implement any game logic (well it does, but only for demonstration purpose), but it handles pretty much all the rest that is needed, leaving you with fun part - creating your game logic.

    My code might be unreadable and seem unlogic, tried to comment it. But if you'll have questions, feel free to ask.

    So here are current template features:
    • Start scene
      • With menu

    • Help page
      • With description text

    • Options
      • Ability to save settings
      • Toggle music and sounds as example

    • Package select
      • Using AceSlide
      • Packages read from external json file

    • Level Select
      • With provided level quantity (configured for up to 20 levels)

    • Level scene
      • Level reset
      • Pause/resume game
      • Next level logic
      • Sub menu

    • Locked/unlocked packs
      • Need to complete previous pack to unlock next one

    • Locked/unlocked levels
      • Need to complete previous level to unlock next one

    • Save current pack and level
      • To allow easy selecting from current state

    • Save game progress
      • Save unlocked packs an levels

    • Scores
      • Track and didplay score
      • Save highscore for each level

    • Background music example
    • Optional sounds example
    • Gideros Autoscaling


    And a video demo:



    I'm uploading it to my website, so I'd have only one place to update it, etc. (As I'll be using it myself, I hope it will be upgraded with more features, etc).

    http://appcodingeasy.com/Gideros-Mobile/Gideros-Mobile-Game-Template

    And of course, feel free to use it even in commercial projects ;)
  • First the scene manager, then the ebook template, runner template and now this, it's Christmas at Gideros.

    :)
  • gorkemgorkem +1 -1 (+1 / -0 )
    I call this "pure productivity" :O

    I shouldn't sleep to catch up with you :-t

    Loves: adnaan

    Before starting with Gideros Studio, read our extensive Developer FAQ here
  • @ar2rsawseen
    Thanks this is very very useful. ;;)
    Thanks again.
    Gianluca.
    TNT ENGiNE for Gideors Studio - Particle Engine, Virtual Pad, Animator Studio, Collision Engine - DOWNLOAD NOW !!! IT'S FREE!!! -
    www.tntengine.com
  • Well after numerous crossplatform frameworks, Gideros was a breath of fresh air. It's easy and fun developing games in Gideros. ;)
  • Nice work! :)
  • Thank you.

    Anything that speeds up the non game mechanic is welcomed by me.

    Mike
    What would you do for your other half?
    Our current games and app can be found @
    http://www.sharksoupstudios.com
  • In view of the comments that a lot of users from alternative frameworks make about the community being small and not enough tutorials, this is a good show of community build tutorials/templates and as more people join and ask questions, we will have more answers. If users do not ask questions then all the answers will just be called Documentation.

    ar2rsawseen, congratulations. Add this to the eBook template and the Block Jump template, things will only get better (as I understand from Atilim)
  • One bug already found, reported to me and fixed. Better now than in app release.

    That's why I love contributing :)

    Loves: atilim

  • Wow thanks everyone on this forum is so nice >:D<
  • I can't thank you enough for this! :) It will be a great resource to study and learn from.
  • Thank you. This is a great helper for learning Gideros development.
  • Hi, first of all i wanna thank you for this great template. It's been helping me a lot in learning more about Gideros.
    If it's not too much trouble, could you help me with something?

    It's regarding saving and erasing data in Gideros, i saw that you have the dataSaver class, i wanted to know if there is a way to erase the game data using that class?

    I know it's probably something really basic, but i'm really new at this =/

    Thanks again!
  • well not really erasing, but you can simply overwrite something over, like empty string "" or empty table {}
  • Nice! It worked out. Thanks for the help.

    If you don't mind, I have one more issue ._.

    This time I was trying to replicate the Description part from level.lua on a level selection so it would display before the minigame started, not just when it enters the level scene.

    The ideia is that I have my level selection screen and 4 pre-defined levels. When the player clicks on one of the levels, the description of the chosen level would pop-up and when he clicks on it, the level would actually start.

    I tried something but I really can't tell if i'm on the right track =/
    What would be the best way of creating this? Please, help me x.x'

    The description function is attached.

    Thanks. And sorry if these are dumb questions. I'm having a hard time learning Gideros and Lua.
    descsnippet.txt
    2K
  • ar2rsawseenar2rsawseen +1 -1 (+2 / -0 )
    Question, and when you end level, you simply go back to level select and let user select next level? It could be frustrating and I'd recommend to simply load next available level. But then again it means user won't see new description. :)

    But that just my comments

    About your code, does it work at all?

    Ok, I don't know if you miscopied it, but you need to close (if showDescription then) statement with end and also whole desc function.

    also mousedown event is defined as a part of level class, but it is not used in level class and you haven't attached that mousedown handler to anywhere.

    And I'd suggest to put description texts together with levels, that way you won't have to create long if statements to see which text to show now. Well of course in depends on how you store levels.

    All in all you reminded me that I need to redo GameTemplate. When I opened it and saw the code, I was like, OMG did I really write this? Can't understand anything.

    I'll need to make it more object oriented, create and reuse some common components, comment it more, separate configuration and include levels as example and probably much more.

    Just need to find the time to do that :D

    I've attached quickly edited template to suit your needs ;)


    GameTemplate.zip
    1M

    Loves: Mells, avo

  • I'll need to make it more object oriented, create and reuse some common components, comment it more, separate configuration and include levels as example and probably much more.


    @ar2rsawseen very interested to check your rewrite :)

    twitter@TheWindApps Artful applications : Want to participate to the Beta? -> Art, Samurai and a story
  • Great template. I'm a Gideros newbie, I have a question: what should we do if we have a lot of levels - about 50-100. Hope to see your idea.
    (My English is not good)
    Thank you.
  • Tuan? Do we know each other? :D
    Fun games for the whole family http://www.guava7.com
  • I know guava7, but we don't know each other :D
  • adnaan said:

    First the scene manager, then the ebook template, runner template and now this, it's Christmas at Gideros.

    :)



    Where do I find this ebook template?

    I searched for ebook and template as well as both words but cannot find it.
    Maybe there should be a section where these templates are easily found and downloaded.
  • hi @bernard,

    You can look to Gideros Academy for the details of those templates from here,

    http://www.giderosmobile.com/gideros-academy/

    And also don/t forget o check http://appcodingeasy.com/Gideros-Mobile
  • Thanks, this is very very useful.
  • Excellent now all I need to do is finish my game :)
  • can someone upload the file that uploaded on ar2rsawseen website ? seems to me his site is not working anymore.
  • @TsubasaOzora really, you can't access http://appcodingeasy.com/ ?

    Well I think that most of the published files are also somewhere on https://github.com/ar2rsawseen

    Loves: TsubasaOzora

  • @ar2rsawseen wew. sry . previously i try and cant open.. but now can

    btw thanks for your template.
  • @TsubasaOzora there is also a newer and more structured version, but unfortunately not completely finished and without docs, so if you don't mind going through the code to understand everything, then you can try it! ;)
    https://github.com/ar2rsawseen/GameTemplate
  • ar2rsawseen how can i erase all save data on this template.. i wanna add a button on option menu to do this.

    tks
  • hmm, well right no you could overwrite it.

    Like nilling or emptying or writing default values
    dataSaver.saveValue("|D|somevalue", nil)


    And writing empty tables for files
    dataSaver.save("|D|mydata", {})


    But I guess that would be one of the functionalities, I could add in time (to delete files)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID

In this Discussion

Top Posters