Do bitches know about mah Tanks? I bet no. - Page 3

Do bitches know about mah Tanks? I bet no.

Some guys decided to attack each other with tanks and you can be one of them. /join #springtanks

Moderators: Moderators, Content Developer

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Do bitches know about mah Tanks? I bet no.

Post by knorke » 07 Feb 2011, 11:30

kalda341 wrote:How did you make the awesome menu?
Wombat wrote:looks like paint for me.
It is paint!

The UI is from a game I made earlier and hopefully get time to finish some day. :roll:
Image
http://love2d.org/wiki/Astropatrolonium
It is quite the simple "framework" though so making it from scratch shouldnt have taken that long either, maybe some hours, but as I had this already I just reused. It was basically copy&paste except adjusting the drawing functions.
I did not use ie chili/redui/iceui because figuring those out would have taken me longer.

The buttons are just rectangles drawn with gl.Rect and then i check if a mouse click was in the rectangle.
If you look in tp_singleplayermenu.lua
ie I for the "Start Game" button I just do:

Code: Select all

add_button (buttons, 0.4, 0.1, 0.25, 0.1, "Start Game", "button_start",{0,1,1,0.4})
"Start Game" is the text on the button.
The 0.4, 0.1, 0.25, 0.1 are position+size, the {0,1,1,0.4} is color.
buttons is the name of the list the button goes into.
"button_start" is the value returned if the button gets clicked.

Then to see if the button is clicked, I just do:

Code: Select all

local cb = clicked_button (buttons)
if (cb=="button_start") then
restart_spring (missions[selected_missionid].startscript_fn)
When I feel bored I will probally put all the UI stuff in a seperate file so i can use the buttons in ie the hitboxeditor or unitposer.
And if there is interesst and I feel really bored I might make a docu/tutorial on it. Though imo for somebody who knows how to use these buttons just doing them from scratch would be trivial.


The restarting of Spring is done via Spring.Restart ()
There is a folder with some startscript.txt files and they just get passed to the Restart command.
I made the startscripts with SpringLobby by setting up battle, start spring and get the file from folder.
With help by Zwszg I adjusted the startscripts to work in Singleplayer, some entries must be changed ie host ip adresses etc.
0 x

kalda341
Posts: 101
Joined: 19 Nov 2010, 09:44

Re: Do bitches know about mah Tanks? I bet no.

Post by kalda341 » 09 Feb 2011, 07:00

That is a really fun game. Do you mind if I play around with some of your widgets and gadgets with my game? I would love a tutorial on the menu!
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Do bitches know about mah Tanks? I bet no.

Post by knorke » 09 Feb 2011, 07:29

thanks :)
sure, go ahead if you find usefull bits.
0 x

11041
Posts: 13
Joined: 10 Feb 2011, 01:52

Re: Do bitches know about mah Tanks? I bet no.

Post by 11041 » 10 Feb 2011, 02:24

anyone got a game up?
0 x

User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: Do bitches know about mah Tanks? I bet no.

Post by Wombat » 10 Feb 2011, 06:37

ye im hosting, come join
0 x

User avatar
Echo419
Posts: 64
Joined: 31 Aug 2010, 14:09

Re: Do bitches know about mah Tanks? I bet no.

Post by Echo419 » 26 Feb 2011, 13:53

Huh..

i thought this was like one person per tank sorta thing, you select a tank type and use that.

Looked really good in the preview video.

tried it earlier and its not really that fun just feels bland really, more like proof of concept rather than an actual game.

Also: for some reason my tanks were never in color only gray?
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Do bitches know about mah Tanks? I bet no.

Post by knorke » 26 Feb 2011, 22:25

more like proof of concept rather than an actual game.
That it was it is ;)
Its originally made as a demo example to show the animated tracks.
The game itself is as complex/good as the players who play it. The AI does not really do it justice as it just blindly
Sends all units forward. Playing against human players its more fun & tactical.

Well still thanks for the feedback even if negative, its the first real gameplay feedback
I hear apart from chatting during the games i played myself. Would be
Good if you could upload replays... Without feedback or replays I can not improve the.
Game. Also can you post a screenshot of the gray tanks? Maybe it was just the default color of your
Lobby? Never heard of such error in Spring..Were just your tanks gray or also the
Enemy units? Well keep in mind its still beta, hopefully next version will feel a bit more like a real game, ;)
0 x

User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2695
Joined: 25 Aug 2004, 13:31

Re: Do bitches know about mah Tanks? I bet no.

Post by bobthedinosaur » 26 Feb 2011, 23:51

it needs ally teams!
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Do bitches know about mah Tanks? I bet no.

Post by knorke » 28 Feb 2011, 18:11

Lies. (ive never seen > 2 players games when i didnt host :roll:)
but its coming. slowly. also hotkeys!
0 x

User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: Do bitches know about mah Tanks? I bet no.

Post by Wombat » 02 Mar 2011, 01:35

knorke wrote:but its coming. slowly. also new tanks made by my hero Wombat (using kais legos)
fixed ? or no ?
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Do bitches know about mah Tanks? I bet no.

Post by knorke » 02 Mar 2011, 02:59

0 x

User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: Do bitches know about mah Tanks? I bet no.

Post by Wombat » 02 Mar 2011, 03:16

i actually meant remaking old one D: question is if u bother to re-code them
0 x

User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2695
Joined: 25 Aug 2004, 13:31

Re: Do bitches know about mah Tanks? I bet no.

Post by bobthedinosaur » 02 Mar 2011, 03:48

knorke, have you tried the cob command in the lus (for changing targets)?
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Do bitches know about mah Tanks? I bet no.

Post by knorke » 02 Mar 2011, 21:54

bobthedinosaur wrote:knorke, have you tried the cob command in the lus (for changing targets)?
doesnt wurk.

remaking tanks:
why? what should be different?
0 x

User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Re: Do bitches know about mah Tanks? I bet no.

Post by 1v0ry_k1ng » 27 Mar 2011, 14:57

is any kind of directional damage implemented? (ie, more damage for rear shots?) or are these not those kind of tanks?
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Do bitches know about mah Tanks? I bet no.

Post by knorke » 27 Mar 2011, 18:18

not those kind of tanks.
do do you think directional damage would work with this? imo it would be quite confusing as 50% of the tanks is made up by the turrets..
0 x

User avatar
Echo419
Posts: 64
Joined: 31 Aug 2010, 14:09

Re: Do bitches know about mah Tanks? I bet no.

Post by Echo419 » 17 Apr 2011, 22:59

Directional damage would work with larger (or more realistic) tanks.

As for Spring tanks, i dont think itd suit since as knorke said the tanks are like 80% turret.
0 x

Locked

Return to “Spring Tanks”

cron