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
- Help page
- 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-TemplateAnd of course, feel free to use it even in commercial projects
Comments
I shouldn't sleep to catch up with you :-t
Likes: adnaan
Thanks this is very very useful. ;;)
Thanks again.
Gianluca.
www.tntengine.com
Likes: chipster123, detour
Anything that speeds up the non game mechanic is welcomed by me.
Mike
http://www.sharksoupstudios.com
ar2rsawseen, congratulations. Add this to the eBook template and the Block Jump template, things will only get better (as I understand from Atilim)
http://howto.oz-apps.com
http://reviewme.oz-apps.com
@ozapps, @whatsin4me
That's why I love contributing
Likes: atilim
Dislikes: Yan
https://play.google.com/store/apps/developer?id=My+name+is+Originality
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!
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.
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
I've attached quickly edited template to suit your needs
Likes: Mells, avo
(My English is not good)
Thank you.
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.
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
Well I think that most of the published files are also somewhere on https://github.com/ar2rsawseen
Likes: TsubasaOzora
btw thanks for your template.
https://github.com/ar2rsawseen/GameTemplate
tks