[Example] Verve! A mini game of skill

Post your own tutorials, guides and demos.

Post » Tue Dec 14, 2010 3:51 pm

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.

[URL=http://img443.imageshack.us/i/verve1.jpg/" rel="nofollow]
[size=150:2ez9xyjq]Verve! features:[/size:2ez9xyjq]

Layout
An animated start screen
A complex game screen with restart and hiscore table

Objects
Mouse&Keyboard [list:2ez9xyjq]Just the basics, like checking the player controls[/list:u:2ez9xyjq]
XAudio2 [list:2ez9xyjq]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.[/list:u:2ez9xyjq]
Function [list:2ez9xyjq]In detail. Setting up functions, calling them, calling functions while passing their parameters directly, interaction between the function object and other objects.[/list:u:2ez9xyjq]
ID3 [list:2ez9xyjq]Just the basics. Loading ID3 tags from a file, releasing a file to be accessible for other objects and displaying ID3 tags.[/list:u:2ez9xyjq]
Array [list:2ez9xyjq]In detail. Creating, resizing, inserting, loading, saving, sorting(!)[/list:u:2ez9xyjq]
Tiled Background [list:2ez9xyjq]Just the basics. Scaling the image of a tb and reusing tb to effectively create a game layout.[/list:u:2ez9xyjq]
Panel [list:2ez9xyjq]In detail. Using panels as a repair indicator and for special animated effects.[/list:u:2ez9xyjq]

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;) -->;)<!-- s;) --> )

[size=150:2ez9xyjq]Download[/size:2ez9xyjq]
Verve! (game of skill example).rar
tulamide2013-12-12 23:28:18
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Tue Dec 14, 2010 4:03 pm

Very nice, thanks. Music is brill :)
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,847
Reputation: 48,295

Post » Thu Dec 16, 2010 12:05 am

Thank you :)
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Thu Jan 13, 2011 8:59 pm

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.
ImageImageImageImage
B
26
S
7
G
7
Posts: 572
Reputation: 6,097

Post » Thu Jan 13, 2011 10:26 pm

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)
B
3
S
1
G
1
Posts: 15
Reputation: 655

Post » Sun Jan 30, 2011 10:06 pm

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.
B
5
S
1
G
2
Posts: 99
Reputation: 1,575

Post » Mon Jan 31, 2011 6:51 am

[quote="aldo":1h8sxuxh]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.[/quote:1h8sxuxh]
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 :mrgreen:
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Mon Sep 05, 2011 12:50 pm

321 downloads so far - and no comment for 7 month now.
I guess it isn't as helpful as I thought
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Mon Sep 05, 2011 7:28 pm

[QUOTE=tulamide] 321 downloads so far - and no comment for 7 month now.
I guess it isn't as helpful as I thought [/QUOTE]

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. :-)
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Tue Sep 06, 2011 1:18 am

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!
...but this is mostly psychological. Check my devlog
B
15
S
4
G
3
Posts: 258
Reputation: 2,850

Next

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 2 guests