April 10, 2020, 06:12:28 AM

Author Topic: [WIP] TankMania - Syntax Bomb Game Competition Sept to Oct 2018  (Read 7407 times)

Offline Derron

  • Hero Member
  • *****
  • Posts: 2843
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #45 on: October 06, 2018, 09:09:28 AM »
It's all very well to be able to assign a sound when something "wakes up / starts" but what if you need to play multiple sounds per trigger? - There's possibly an easier way but for now I'm sticking with my sound manager class.

Soundmanager.PlaySound(channelID = -1)
- each played sound corresponds to an entry in a dictionary/array/map/list
- channelID = -1 means: use a new entry and return the ID
- channelID >= 0 means: reuse the existing entry at "channelID"

SoundManager handles all added channels/sounds ... and voila, done. I did enhance such a thing for Monkey-X as it did not allow for playing multiple music streams simultaneously (keyword: +crossfading +samples)



Overall the structure of this game is a complete mess. Things are all over the place and it's becoming a nightmare to work with ( oo, the honesty :P ). Luckily I have a much better idea on how to structure my next game. I didn't expect my first Unity game to be pretty or structured but its been a great basics learning experience.
Didn't you tell a slight different story when I told you that my Godot code is a mess and "as long as it works"? ... haha.
Seems we sit in the same boat. Trying to do "as we were used to do" but then need to bend our code to do how the engine wants us to do so (prefabs, attaching stuff, ... component based approach etc).


Hmm, wasn't able to do much the last days and the next days will be the same (birthdays... and the need to cook/bake/... for the whole family). So hope you hold up the flag and finish something more complex/"completed" than what I might be able to do until deadline.

bye
Ron

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2348
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #46 on: October 06, 2018, 05:02:19 PM »
Quote
Didn't you tell a slight different story when I told you that my Godot code is a mess and "as long as it works"? ... haha.
Seems we sit in the same boat. Trying to do "as we were used to do" but then need to bend our code to do how the engine wants us to do so (prefabs, attaching stuff, ... component based approach etc).
I'm doing it the right way, just not in the right order :P - It's all a learning experience and if I had the time I'd redo it all again from fresh.

Quote
Hmm, wasn't able to do much the last days and the next days will be the same (birthdays... and the need to cook/bake/... for the whole family). So hope you hold up the flag and finish something more complex/"completed" than what I might be able to do until deadline.
I have a full complete game but just it's just one level at the moment ;D ( full as in everything works menu > game > play > die > win etc ) - The remaining time will be adding levels and hopefully a few more pickups.
Until the next time...

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2311
  • elgol developer
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #47 on: October 06, 2018, 05:05:30 PM »
Sheesh!  All this sloppy code writing lol.    :P
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Catalina, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.3, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2348
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #48 on: October 06, 2018, 05:09:04 PM »
Sheesh!  All this sloppy code writing lol.    :P
Lol, it's not sloppy code, it's quite complex in some places ;D - I just didn't know where to put it when I started :P
Until the next time...

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2311
  • elgol developer
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #49 on: October 06, 2018, 05:10:28 PM »
Quote
I just didn't know where to put it when I started :P

That doesn't just apply to coding  ;D
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Catalina, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.3, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2348
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #50 on: October 06, 2018, 05:22:09 PM »
Cheeky :P ;D
Until the next time...

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2311
  • elgol developer
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #51 on: October 06, 2018, 05:43:18 PM »
lol sorry couldn't resist.  I was thinking about a 24 pin connector, what were you thinking?   ;D
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Catalina, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.3, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2311
  • elgol developer
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #52 on: October 06, 2018, 05:48:48 PM »
Quote
it's quite complex in some places ;D

Really?...I thought you were using Unity?   ;D
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Catalina, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.3, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2348
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #53 on: October 06, 2018, 06:20:23 PM »
Quote
Really?...I thought you were using Unity?   ;D
Yes but contrary to popular belief it's not as simple as drag and drop :o - I haven't found the tick box which says "when at the right angle range, fire missile at the players tank" but I may have missed it as it's all pretty new to me :P
Until the next time...

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2311
  • elgol developer
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #54 on: October 06, 2018, 06:35:43 PM »
Just kidding mate.  All this switching between coding and the GUI 'nearly there' helper structures was enough to put me off - plus the ridiculous size of exe's and general inefficiency.

But you seem to be winning the battle and producing a cool looking game.  Looking forward to playing.
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Catalina, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.3, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2348
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #55 on: October 06, 2018, 06:47:55 PM »
Quote
Just kidding mate.  All this switching between coding and the GUI 'nearly there' helper structures was enough to put me off - plus the ridiculous size of exe's.
It's certainly a challenge to get used to if you're more akin to a pure coding environment ( which I am ). I can see why some love and some hate it. At least I get to code in visual studio which is a lot better than mono develop.
Until the next time...

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2311
  • elgol developer
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #56 on: October 06, 2018, 06:53:08 PM »
Quote
At least I get to code in visual studio.

They let mac users use it?  ;D  You're talking about Microsoft Visual Studio?  The developers IDE of Champions.
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Catalina, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.3, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline Qube

  • Administrator
  • Hero Member
  • *****
  • Posts: 2348
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #57 on: October 06, 2018, 07:29:19 PM »
Quote
They let mac users use it?  ;D  You're talking about Microsoft Visual Studio?  The developers IDE of Champions.
lol, it's true, there is a version of Microsoft Visual Studio for Mac https://visualstudio.microsoft.com/vs/mac/ ( set to the dark theme ).
Until the next time...

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 2311
  • elgol developer
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #58 on: October 06, 2018, 07:37:12 PM »
If I were to design an IDE, that would be something to aim for.
Windows 10, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).
MacOS Catalina, 64-bit, 8Gb RAM, CPU Intel i5, 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB.
Linux Mint 19.3, 64-bit, 16Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb).

Offline RemiD

  • Hero Member
  • *****
  • Posts: 1044
Re: TankTastic - Syntax Bomb Game Competition Sept to Oct 2018
« Reply #59 on: October 07, 2018, 05:21:26 PM »
@Qube>>there are 2 code examples of a tank game in the blitzbasic code archives, if you are interested about physics (for bullets) and ai :
https://www.syntaxbomb.com/index.php/topic,828.msg1817.html#msg1817
https://www.syntaxbomb.com/index.php/topic,2582.msg3571.html#msg3571

take a look at the original code archives because the source codes posted on this forum seem corrupted in some way...
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal