123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|106|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Towers

Sat, 07 Apr 2007, 07:54
Blitz3Dman
I took a short break from the running man to work on coding this. I got the idea from the game Shock Defense.

Press space to spawn enemies and mouseclick to create a tower



-=-=-
There are 10 kinds of people in this world -

( Insert 16 remarks about to what extent people know hex here )
Sat, 07 Apr 2007, 08:48
JL235
I used to play these tower war games on Warcraft 3 online. I used to be quite good at them.

After seeing this, I might make a version for Greenfoot. I think it would work well.
Sat, 07 Apr 2007, 09:11
Blitz3Dman
Why does my code freeze when there are no enemies and at least 1 tower on screen?





-=-=-
There are 10 kinds of people in this world -

( Insert 16 remarks about to what extent people know hex here )
Sat, 07 Apr 2007, 09:39
Blitz3Dman
I think my log looks professional.

I've made a lot of progress on it and I just wanted to show off the code.






your average log:




-- Why does my code freeze when there are no enemies and at least 1 tower on screen? -- I must know the answer!!!


|edit| nevermind, problem found. |edit|

-=-=-
There are 10 kinds of people in this world -

( Insert 16 remarks about to what extent people know hex here )
Sat, 07 Apr 2007, 15:11
Phoenix
I used to play those tower defences a lot, in Warcraft III, but now it was a long time ago since I tried one.
Sun, 08 Apr 2007, 09:21
Blitz3Dman
Ok, all fnished except 1 bug.

s saves, l loads, build by clicking where you want to build space spawns enemies. pay attention to the debuglog it has some useful information. press number keys 1-6 to purchase technology. 1 costs 1000, 2 costs 2000, etc.

1 - target reassignment technology
if a bullet cannot find its target because it has been destroyed since it was launched, it will search for a new one.

2 - Faster fire technology
this can be purchased several times; it increases the rate of fire for towers.

3 - Longer tower life
towers have a longer life span, pretty simple; can also be purchased several times.

4 - More damage
bullets do more damage; can be purchased many times; takes effect only on newly built towers.

5 - Faster bullets
can also be purchased several times; is pretty self explanatory; does not take effect on existing towers; you must build new ones to use it.

6 - Firmer construction
towers can withstand more friendly fire; can also be purchased several times.

Now, the bug - try saving and loading and the towers will fire screwy bullets.



-=-=-
There are 10 kinds of people in this world -

( Insert 16 remarks about to what extent people know hex here )
Sun, 08 Apr 2007, 11:02
Blitz3Dman
Ok, I need help getting the code to work because I'm going to start working on The Running Man again as soon as I can fix the last bug.

My cleaned code (uncommented because I am this || close to the demo code limit) is below.



-=-=-
There are 10 kinds of people in this world -

( Insert 16 remarks about to what extent people know hex here )
Sun, 08 Apr 2007, 18:04
Blitz3Dman
Please help me out, somebody!! My code to keep the black specks when a tower ages and my saving/loading code do not work!! Please help me!

-=-=-
There are 10 kinds of people in this world -

( Insert 16 remarks about to what extent people know hex here )
Sun, 08 Apr 2007, 18:12
JL235
You shouldn't really post so many times in such a short amount of time about the same subject. At least wait a few days.

But I might look at your code when I get up in the morning. Goodnight everybody.