Updated TX2D Game kit, now with UI and Sound
by Henry Shilling · in Torque X 2D · 07/27/2010 (3:08 am) · 18 replies
Thanks to Pino pointing out I had an error in the game kit. (Oddly I fixed it in my own code but forgot about this) I updated the Game Kit. And I didn't just fix the bugs no...
I added a full UI example, including my purchase code, The player will get a menu item if it's a trial. If they purchase in game the game gives them a thank you screen (with some cross sell) and then goes on with the game. If they exit in a trial it gives them a chance to purchase as well. This is the same code I put in my last game and it passed the evil checklist. If the player is not signed in it will not let them purchase.
All that and a non textual UI. Nothing too fancy just highlighted selections and such, not that plain text UI that has been in TX for a while now.
The coolest thing is the sound. I have a system where you put the names of your sounds in a list of enums, add the corresponding Cue names to an array and voila. You can select sounds in the builder by name. As an example the Takes damage or the shooting components have a new menu item in the builder that lets you select a sound. The sound plays like magic when you play the game. No more trying to remember what you named those sounds, or having to add them in the code.
This works out great for me, I write code and hand the levels off to my Kid who can then mess around without touching the code. Like he'd touch the code anyway, he barely passed that java class... ;)
Once again have fun and if you find any errors let me know, or better fix them and tell me about it.
Torque X 2D Game Kit for 3.1.5
Torque X 2D Game Kit for 4.0
Do any of you use the TDN? I would place this up there if people use it.
I added a full UI example, including my purchase code, The player will get a menu item if it's a trial. If they purchase in game the game gives them a thank you screen (with some cross sell) and then goes on with the game. If they exit in a trial it gives them a chance to purchase as well. This is the same code I put in my last game and it passed the evil checklist. If the player is not signed in it will not let them purchase.
All that and a non textual UI. Nothing too fancy just highlighted selections and such, not that plain text UI that has been in TX for a while now.
The coolest thing is the sound. I have a system where you put the names of your sounds in a list of enums, add the corresponding Cue names to an array and voila. You can select sounds in the builder by name. As an example the Takes damage or the shooting components have a new menu item in the builder that lets you select a sound. The sound plays like magic when you play the game. No more trying to remember what you named those sounds, or having to add them in the code.
This works out great for me, I write code and hand the levels off to my Kid who can then mess around without touching the code. Like he'd touch the code anyway, he barely passed that java class... ;)
Once again have fun and if you find any errors let me know, or better fix them and tell me about it.
Torque X 2D Game Kit for 3.1.5
Torque X 2D Game Kit for 4.0
Do any of you use the TDN? I would place this up there if people use it.
About the author
http://twitter.com/theBigDaddio
#2
07/29/2010 (10:27 am)
TDN is (potentially) a great resource, so It's a very good idea to post it there ;)
#3
07/30/2010 (1:37 am)
Nice, I'll check it out, thanks Henry! =)
#4
The images that came with it are also perfect placeholders for my proj :D
I added it to the TDN community links.
I'm glad I got this before you decide to charge for it one day ;)
Thanks.
08/17/2010 (5:29 am)
Great work Henry. I just downloaded it and loaded it up for a new project I'm starting. It's pretty much the ultimate starter kit. You really nipped all that annoying stuff in the bud. The images that came with it are also perfect placeholders for my proj :D
I added it to the TDN community links.
I'm glad I got this before you decide to charge for it one day ;)
Thanks.
#5
08/17/2010 (7:17 am)
I should add the twin stick controls. It's just one more component. Well maybe two.
#6
08/23/2010 (7:08 pm)
Henry if you add the twin stick controls that would be so awesome! :)
#7
i've been playing around with your gamekit, its awesome, i'm thinking of using it as a starter kit for a 2d side scrolling shooter, i'm using the shooter with no rotation kit, i only want the ship to go left or right but when i edit the code to make that happen, the ship goes at a digonal path, is there a way to fix this, so when i go left or right he goes only left and right?
Thanks.
Adam.
08/27/2010 (12:10 am)
Hello Henry,i've been playing around with your gamekit, its awesome, i'm thinking of using it as a starter kit for a 2d side scrolling shooter, i'm using the shooter with no rotation kit, i only want the ship to go left or right but when i edit the code to make that happen, the ship goes at a digonal path, is there a way to fix this, so when i go left or right he goes only left and right?
Thanks.
Adam.
#8
Using in_ShooterControls change line 169:
now it will ignore the Y part of the stick input.
08/27/2010 (2:15 am)
you can edit the input to only use the x from the stick. You mean like space invaders?Using in_ShooterControls change line 169:
_sceneObject.Physics.Velocity = new Vector2(move.Sticks[0].X, 0) * _acceleration;
now it will ignore the Y part of the stick input.
#9
08/27/2010 (2:30 am)
Thanks for the quick reply, that worked just like i wanted it to. :)
#10
10/10/2010 (12:41 pm)
I have to update to use this :-/ it sounds awesome
#11
05/14/2011 (11:28 am)
Does anyone have a twin stick component that they would like to share? I have been trying to figure this one out myself for around a month or so with no luck. I didn't think it would be that difficult considering that this game starter kit has the align with movement component that generally does what I am looking for but with just one stick. I have only been working with XNA and Torque for about four months now and I am totally addicted. I am way better at the artistic side of game making but I really am trying to get into coding so I can get the full experience. Thanks for any feed back you guys can give me.
#12
05/14/2011 (6:10 pm)
I made a Twin Stick component I guess I didn't add it in. I will add it in and repost. Or worse case post the component.
#14
smokinskull.com/GameKit40.zip
This is also up to date with the 4.0 new version of XNA
05/15/2011 (12:46 am)
OK I have updated the file go download it again. You will get a folder called GameKit401 it has the twin stick components, there are two needed one for the ship, one for the gun. I made these components for a twin stick game with a spaceship that had a mounted gun. By looking at it you could probably adapt to a running dude or whatever...smokinskull.com/GameKit40.zip
This is also up to date with the 4.0 new version of XNA
#15
05/15/2011 (10:01 am)
Henry, thank you so much. I have been stuck on this forever it feels like.
#16
Worse case you can download the 4.0 version and add the new files to the 3.1.5 version.
05/15/2011 (10:04 am)
I hope you are using 4.0 I did not update the 3.1.5 version as I don't use it anymore and I hope you are signed up for CEV and use the new version as well. Worse case you can download the 4.0 version and add the new files to the 3.1.5 version.
#18
08/17/2011 (1:12 pm)
Henry, you are amazing! Thanks!
Torque 3D Owner John Bura
Mammoth Interactive