[Example] Verve! A mini game of skill

This forum is currently in read-only mode.
0 favourites
From the Asset Store
Unlock platyers earning coins, and save it with Localstorage
  • This cap is an example of an elaborate mini game of skill, complete with sounds, music, persistent hiscore and more.

    It started as an example for the Color Fusion (Masked) effect, but I soon thought this could become a good example for many of a beginners questions and issues. That's why every single event is explicitly commented. By looking at the cap you will learn a lot of the basics, including organizing your events in sheets and groups, using object groups for a better overview in the wizard, a lot of math, or reusing graphics. Many of Construct's objects are used.

    There is just one aspect that isn't covered and that's behaviors. There's nothing wrong with them, you should use them whenever possible, they are a bit faster than events and make use of timedelta. But sometimes you will not get what you need from behaviors, and that's the moment when you should remember, that there was that wierd tulamide telling you, that almost anything can be done with events. You shouldn't be scared of doing something on your own, using events and your imagination. Therefore, many things in this cap are unnecessarily realized with events instead of behaviors, and it may sometimes feel elaborate. But it's worth following my thoughts, and if you later need to find your own solutions based on events, you might remember.

    <img src="http://img443.imageshack.us/img443/5620/verve1.th.jpg%5d%5b/URL%5d%20%5bURL=http://img152.imageshack.us/i/verve2.jpg/" border="0">

    Verve! features:

    Layout

    An animated start screen

    A complex game screen with restart and hiscore table

    Objects

    Mouse&Keyboard

      Just the basics, like checking the player controls

    XAudio2

      In detail. Loading files to channels, autoplaying files, fading the volume of music, setting the frequency of a channel relative to certain events, looping sounds, trigger sounds by functions.

    Function

      In detail. Setting up functions, calling them, calling functions while passing their parameters directly, interaction between the function object and other objects.

    ID3

      Just the basics. Loading ID3 tags from a file, releasing a file to be accessible for other objects and displaying ID3 tags.

    Array

      In detail. Creating, resizing, inserting, loading, saving, sorting(!)

    Tiled Background

      Just the basics. Scaling the image of a tb and reusing tb to effectively create a game layout.

    Panel

      In detail. Using panels as a repair indicator and for special animated effects.

    Behaviors

    Sine

    Car

    Events

    *A complete "divide & conquer" sort algorithm

    *Sound and music management with interaction to certain game events

    *Conditional expression

    *Menu handling by keys, including aborting, scrolling through the hiscore, retry and exiting the game

    *User independent creation, deletion and altering of sprites to form complex shapes

    *Lots of lerp, qarp, modulo, sin, cos, min, max, int, round, abs

    *Accessing and altering layer effect parameters

    *Including event sheets

    *A workaround to stay time-based even if the time scale is set to 0.0

    *A bit of math to get real world values like km/h for the speed or meter for the distance

    Verve! is completely time-based (frame independent) and is therefore using timedelta almost everywhere (there are just two or three situations, where "every x milliseconds" is used instead). You will need the Color Fusion (Masked) effect, just follow the link to download and install it.

    The archive contains the cap, all sounds, the music and a hiscore of some of my attempts (but not the effect, see above). You may safely delete the content of the folder "hiscore", a new hiscore will then be created.

    The sounds, the music and the textures used in Verve! are free for commercial and non-commercial use, either cc or my own work (look for the ugly graphics - that's my work for sure <!-- s;) --><img src="SMILIES_PATH/icon_wink.gif" border="0" alt=";)" title="Wink"><!-- s;) --> )

    Download

    Verve! (game of skill example).rar

  • Very nice, thanks. Music is brill

  • Thank you

  • wth? what is this? topic with material THIS usefull an barely no replies????

    This is genius!!! This should be a part of Constructor package as a default tutorial.

  • I mustn't, I shouldn't, I can't, I won't.

    Read all of 389 tulamide posts. They are all so full of great bits of information (not to mention these gems with caps) that I feel tempted to just read them all at the risk of getting no work done.

    I mustn't, I shouldn't, I can't, I won't. It is forbidden to me.

    Probablly will though.

    edit: +1 for including in tutorials (not beginner, of course)

  • Ah yes, this .cap was very useful learning tool, the game itself however is incredibly frustrating... maybe I just have no skill to pay bills.

  • Ah yes, this .cap was very useful learning tool, the game itself however is incredibly frustrating... maybe I just have no skill to pay bills.

    Thank you, I'm glad it helped you. For gaming experience: Just tweak it to your likings, change the game layout, alter the formulas to make it less frustrating, etc.

    Happy developing

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 321 downloads so far - and no comment for 7 month now.

    I guess it isn't as helpful as I thought <img src="smileys/smiley17.gif" border="0" align="middle" />

  • 321 downloads so far - and no comment for 7 month now.

    I guess it isn't as helpful as I thought <img src="smileys/smiley17.gif" border="0" align="middle" />

    I wouldn't get too discouraged...I've had over 3,000 downloads of the Mickey's adventure tutorials without a single comment!! And 1,000+ downloads for python online tut without a comment so I think this is common on forums. There have been of course comments as a whole but the tutorials have had over 10,000+ downloads.

    I don't think people realize that showing some quick appreciation for hard effort is very appreciated. :-)

  • I actually did download this one, as I am still working out how to move a stupid platform up and down when the player stand on it, this kind of things are way too advance for me at this time...

    But it is in my "to look into properly later" folder, and I should give credit for that! (I never managed to complete the stage though)

    Thanks a lot for the effort, I totally feel how disheartening it could be!

  • sved

    Thank you very much, it is not that I'm fishing for compliments. I just need some kind of feedback. For the platform issue it won't help, I'm afraid, as it isn't a platformer ;)

    scidave

    Thank you. I know you wanted to encourage me, but compared to what you experienced, I just feel so small right now. Like screaming before the doctor even touched you :D

    Maybe I shouldn't have posted this, but, well, I'm someone who needs feedback. It doesn't matter if it is criticism or approval, just a reaction is fine. When there is nothing, you are so insecure...and I hate that :)

  • > Maybe I shouldn't have posted this, but, well, I'm someone who needs feedback.

    I posted the same exact thing in my tutorials so I think you should too..it's being real. I can't stand not hearing anything too!

    I do think you should be getting a lot more downloads...which would hopefully increase the feedback although maybe not the percentage of feedback. We should get Verve added to sourceforge page and to JamesX list of tuts. I got more downloads when my tuts got added to both those locations.

  • I just downloaded the 'Verve!' example and wanted to point out a couple of things:

    1, The intro screen (Press any key) doesn't tell you what what the game is about, or what you have to do ?

    2, When the main game starts all i can see is what appears to be a torch or light beam, but i havent a clue what i should do next?

    3, The main game screen is virtually black(on my system)

    4, I tried adjusting the brightness and contrast, but it didnt make any difference

    Heres a couple of screen captures i made:

    <img src="http://dl.dropbox.com/u/22173473/verve1.png" border="0" />

    <img src="http://dl.dropbox.com/u/22173473/verve2.png" border="0" />

    Dont get me wrong, im not criticising the example, im just pointing out what it looks like on my system!

    <img src="smileys/smiley9.gif" border="0" align="middle" />

  • Can you build it? When I open it up the whole construct hangs up and ccrashes (using latest build).

  • Builds and runs fine for me.

    chrisbrobs

    It's just a basic drive in the dark game using the arrow keys to hit markers, but I see what you mean re: instructions. For completeness, the instructions should probably be made visible or available on the first screen.

    There are lots of really good techniques inside, regardless :) People can learn a lot from this.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)