[WIP] TankMania - Syntax Bomb Game Competition Sept to Oct 2018

Started by Qube, September 15, 2018, 02:12:50

Previous topic - Next topic

Derron

Quote from: Qube on October 06, 2018, 08:37:14
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)



Quote from: Qube on October 06, 2018, 08:37:14
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

Qube

QuoteDidn'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.

QuoteHmm, 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.
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Steve Elliott

Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Qube

Quote from: Steve Elliott on October 06, 2018, 17:05:30
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
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Steve Elliott

Quote
I just didn't know where to put it when I started :P

That doesn't just apply to coding  ;D
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Qube

Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Steve Elliott

lol sorry couldn't resist.  I was thinking about a 24 pin connector, what were you thinking?   ;D
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Steve Elliott

Quote
it's quite complex in some places ;D

Really?...I thought you were using Unity?   ;D
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Qube

QuoteReally?...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
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Steve Elliott

#54
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.
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Qube

QuoteJust 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.
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Steve Elliott

#56
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.
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Qube

QuoteThey 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 ).
Mac Studio M1 Max ( 10 core CPU - 24 core GPU ), 32GB LPDDR5, 512GB SSD,
Beelink SER7 Mini Gaming PC, Ryzen 7 7840HS 8-Core 16-Thread 5.1GHz Processor, 32G DDR5 RAM 1T PCIe 4.0 SSD
MSI MEG 342C 34" QD-OLED Monitor

Until the next time.

Steve Elliott

If I were to design an IDE, that would be something to aim for.
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

RemiD

@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...