Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Simple DBPro Game: BATTLE BALLZ - Let me know what you think!

Author
Message
Sedit
User Offline
Joined: 3rd Sep 2017
Location: Ghetto of NJ
Posted: 19th Nov 2017 23:42 Edited at: 20th Nov 2017 03:35
Battle Ballz


This is a little game I made in only as couple days using DarkBasic Pro.

A classic two player tank battle that I made for me and my kids to play and given the amount of time it took me I am quite happy with
the results. I only started the project a week ago and in all honesty I could prob reproduce this in around an hour or so now that I
know what I am doing with it.

I started off ready to make a typical platform game similar to Super Mario Smash brothers lay out but over time it morphed into the game you see here.

I wish I was able to make this into a flash game and publish it online because my kids have been begging me to do so. I found out how to convert it over to an Active X game which is pretty cool(and dangerous IMO, Ill never use Active X again after what I found out) but no browsers support Active X anymore other the Internet explorer and lets face it, people only use IE to download Chrome and Firefox anymore lol.

Play a Few rounds of it with a friend and let me know what you think. I spent more time over the past couple days trying to make sure there are no bugs or issues before I posted it so if you happen to notice anything off please let me know.


Version 1:
===========================================================================
MULTIPLE RANDOMLY SELECTED BACKGROUND AND MUSIC
HEALTH BAR
PARTICLE EXPLOSIONS
TWO PLAYER ACTION
RANDOMIZE LEVEL
===========================================================================

I plan on making a Version 2.0 some time soon getting input from my children as to what I should add and so far the consensus is that I need Missiles upgrades, Randomly placed around the level and make them Heat seeking and stronger then normal weapons. I also want a powerup system so that if someone holds the fire button it gets stronger making it a tactical move of when to fire to
encourage waiting and strategy and discourage spamming of the fire key.

I wish to add Net connection to the game to make it two player over a LAN connection and also have the option of making this a first person view which I feel would be very very cool IMO. I think I am going to add knockback as well as I think this will give a more realistic feel to the game.

___________________________________________________________________________
Coming Soon! Battle Ballz V 2.0
_____________________________________________________________________________

UPGRADES SUCH AS MISSILES
LANDMINES
NET CONNECTIONS FOR TWO PLAYER ACTION
HOLD FIRE BUTTON FOR MORE POWERFUL SHOT.
ADD KNOCKBACK


Please Give some feedback I would like to know what everyone thinks of the game, My kids seem to love it.


SOURCE CODE


DOWNLOAD IS 2 POST DOWN, It Keeps Saying Its Already Attached to This Post.

PLAYER 1
ARROW KEYS AND SPACE TO FIRE

PLAYER 2
AWSD and F for fire
Sedit
User Offline
Joined: 3rd Sep 2017
Location: Ghetto of NJ
Posted: 19th Nov 2017 23:46
I am having Issues Uploading the EXE can anyone help please

I click chose file, then Attach and it just says file is attached and will be shown shortly or it just goes back to No File Chosen most of the time. What do I do.
Worst case I will upload a Zip that contains the Media Files as well so It can be compiled but I don't want to do that I just want everyone to be able to download and play my little game with no hassle.
Sedit
User Offline
Joined: 3rd Sep 2017
Location: Ghetto of NJ
Posted: 20th Nov 2017 00:06
What is the Max File Size?

It is 29 MB.

It feels large to me but the Media is what does it even if I really don't have very much. That's something I wanted to ask everyone. How can I shrink the size of an Exe in Darkbasic. They seem Exceptionally large with even the smallest of programs being at least 4 or 5mb for seemingly no reason at all. Why so bloated?
Sedit
User Offline
Joined: 3rd Sep 2017
Location: Ghetto of NJ
Posted: 20th Nov 2017 03:32 Edited at: 20th Nov 2017 03:46
Wooohooo

I changed out all the music files to MP3 and changed as many images as I could from BMP to PNG but the PNG are not transparent so some sprites had to stay BMP, Either way here is the game



ENJOY


PS: I just wanted to tell everyone because I seen it on the forums but the post was over 90 days and locked so I could not respond, The IDE is terrible at loading media files, its slow and tedious, A much better way to add media to your project is to Add a single media file to your project then open the DBPro project file in a text editor and you will see a line for the Media showing the path. There will be lines saying
media1..2.. etc = and your file name. Just add the appropriate number and file name and when you load your project your media file will be included.

Attachments

Login to view attachments
Sedit
User Offline
Joined: 3rd Sep 2017
Location: Ghetto of NJ
Posted: 20th Nov 2017 08:24 Edited at: 22nd Nov 2017 23:54
Oh man I am so excited, I know its something stupid and prob something everyone else has known for a while but I finally figured it out all by myself when everything I have seen online said I cant do it without getting the normal of the surface of collision but instead I managed to make pretty accurate bouncing of the bullets without really knowing the normal of the collision surface,

These simple lines of code worked exactly how I expected it to which is surprising lol because nothing works the way I expect it to the first time around lol.
HIT= object collision

If hitting the side of the wall you simply invert the angle and wrapvalue to get the correct angle needed, however this does not work when you hit the top or bottom so you simply check to see if the X value of the bullet is within the range to be hitting the top or bottom and if it is you take the Inverted angle and rotate it by 180 degrees to get the correct angle. It works like a charm on square objects and I couldn't be happier right now . Here is the Updated EXE with Reflecting Bullets.... I guess this would be considered V 1.1


Battle Ballz V 1.1
Sphere sphere = new Sphere(0.5f);
InsanelyRedundantJava insanelyredundantjava = new InsanelyRedundantJava(Redundancy1, Redundancy2);

Attachments

Login to view attachments
Ortu
DBPro Master
10
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 22nd Nov 2017 23:33
Careful with distributing .mp3, that format has licensing requirements. .ogg is comparable and free to use
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
Sedit
User Offline
Joined: 3rd Sep 2017
Location: Ghetto of NJ
Posted: 22nd Nov 2017 23:50 Edited at: 22nd Nov 2017 23:52
The Format itself carries Licensing issues?

I got the Music off of Public Domain sites but your saying I might run into problems just using MP3 format in general right?

If that is the case thanks for the heads up I had absolutely no idea that common file formats at all might carry issues with them. I always viewed then as things like BMP and being totally Public Domain.

I did consider the 3 sound effects that I used since they may very well be copyrighted. But that was just the HIT, DEATH, and FIRE wavs gotten From an old MegaMan Game and had every intention of changing them if I ever decided to distribute the game. I just put them in there because my son is currently addicted to playing old Mega Man games and I thought what a better way to get him interested in programming then to have it play out and sound like his favorite game.


I really wouldn't mind putting the game out to the world since its simple, fun, and better then most of the flash games my kids play but I don't have the foggiest idea how I would go about releasing the game. If it were in flash format Im sure I could upload it to various game sites but what about simple EXE like this one that are made in Darkbasic (or even C++ for that matter) what would be the best way to distribute the game so other people can enjoy it as well. I don't really have any desire to make money off of it or nothing like that( although I wouldn't complain lol) but like my son said when we got done the project,

"Why are we putting so much effort into something no one is ever going to get to play"

After attempting to explain to him the over all joys of programming just to program (LMAO which must sound funny to him after watching me cuss at the programs I am trying to write day in and day out), I have to say his words hit home. I would love to put this somewhere for other people to play. Is their any way, or place that you guys know of which I could do that?


PS: OGG LOADS using the LOAD MUSIC and SOUND commands in DBPro?
Sphere sphere = new Sphere(0.5f);
InsanelyRedundantJava insanelyredundantjava = new InsanelyRedundantJava(Redundancy1, Redundancy2);
Ortu
DBPro Master
10
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 23rd Nov 2017 01:27
Hmm interesting, it looks like the last of the patents expired this year and the licensing program had been discontinued.

The legalities of using mp3 format have always been a bit complicated.

I don't know if dbpro loads ogg natively but there are several audio plugins that can use it
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
Chris Tate
DBPro Master
9
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 23rd Nov 2017 01:59
I think the MP3 patent for the licence expired in 2012 , let's do a little Google search.

https://en.wikipedia.org/wiki/MP3#Licensing.2C_ownership_and_legislation
https://www.theregister.co.uk/2017/05/16/mp3_dies_nobody_noticed/

https://www.iis.fraunhofer.de/en/ff/amm/prod/audiocodec/audiocodecs/mp3.html

Quote: "On April 23, 2017, Technicolor's mp3 licensing program for certain mp3 related patents and software of Technicolor and Fraunhofer IIS has been terminated.

We thank all of our licensees for their great support in making mp3 the defacto audio codec in the world, during the past two decades.

The development of mp3 started in the late 80s at Fraunhofer IIS, based on previous development results at the University Erlangen-Nuremberg. Although there are more efficient audio codecs with advanced features available today, mp3 is still very popular amongst consumers. However, most state-of-the-art media services such as streaming or TV and radio broadcasting use modern ISO-MPEG codecs such as the AAC family or in the future MPEG-H. Those technologies, that have been developed with major contributions from Fraunhofer IIS, can deliver more features and a higher audio quality at much lower bitrates compared to mp3.

Further details about the termination of the mp3 licensing program by Technicolor and Fraunhofer are available here.

For more information about mp3’s successful history, please visit www.mp3-history.com"


Take it as you may. MP3 is not the only audio format, and by no means the best.
Sedit
User Offline
Joined: 3rd Sep 2017
Location: Ghetto of NJ
Posted: 23rd Nov 2017 02:25
Definitely interesting, even if they are now free its something to keep in mind because in all honesty I never considered a file format to carry a copyright even though in retrospect I guess its obvious.

I have been scanning the web and not gotten any clear answers and Chris response has delivered more information on the topic then half hour or so of googling has.

Thank you all for letting me know because it just means I will be careful whenever, if ever I make something I decide to release.

Still any suggestions on an outlet for simple games like this? There has to be someplace developers can place simple games if for nothing else to test the reception of it before moving in any other direction.



I so want to make this a Net game sometime and make it a FPS so the two players are in a maze and chasing each other around, I think it would be a fun little addition to make that mode into the game but I have never done any sort of net programming so I have been reading up on it lately in hopes to one day incorporate it.

Whatcha guys think bout the game itself though, Is the game play smooth enough, Music tolerable, Graphics etc?
Sphere sphere = new Sphere(0.5f);
InsanelyRedundantJava insanelyredundantjava = new InsanelyRedundantJava(Redundancy1, Redundancy2);
Ortu
DBPro Master
10
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 23rd Nov 2017 05:46
game does not launch on my machine. No errors, windows asks if I want to allow it to run, but then no process ever starts in task manager. Windows 10 pro, creators update.
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
Sedit
User Offline
Joined: 3rd Sep 2017
Location: Ghetto of NJ
Posted: 23rd Nov 2017 09:26
Hmm, Thanks, that's odd. Im sort of new to DB so have you ever heard tell of similar things happening with people that might give me a place to look?

It may be the Screen-Mode perhaps? I did have it set to something abnormal and not really standard when I posted it up here not really thinking. My graphics card is old and strange.

I will recompile it after changing the code to detect video cards and local settings before I set any video modes and what not. It will be good practice for me to start doing that sort of thing anyway if I want to move forward since for the couple decades I been programming I have always done so for myself and not really other people so compatibility and error handling was never exactly on my priority list and it just kind of caused me to have some bad habits when It comes to programming.

I believe I have screen mode set on 1000x800 32 bit.


Thank you I will get right on it and see if I can remedy the situation.
Sphere sphere = new Sphere(0.5f);
InsanelyRedundantJava insanelyredundantjava = new InsanelyRedundantJava(Redundancy1, Redundancy2);
Sedit
User Offline
Joined: 3rd Sep 2017
Location: Ghetto of NJ
Posted: 24th Nov 2017 03:19
I am looking into the Screen Mode now and trying to get my ducks in a row on how to Test for ScreenModes and then Set it but after much thought can this really be the issue?

You said its not even initializing the EXE.

I have Windows 7, could the compiler be adding something to make my program WIN 7 compatible...

I was thinking, Perhaps try running the program in Compatibility mode for Windows 7, I just checked and I do have Launch.exe for DBPro setup to Run in Compatibility Mode for Win 7. IDK if that changes anything about how its Compiled but being relatively unfamiliar with anything of the sorts I am not sure where to start. Try right clicking the EXE --->Properties ---> Compatibility Mode (Windows 7) .

If that does not work would you be willing to attempt a Compile if I uploaded a Zip of the Assets along with the Source Code?
Sphere sphere = new Sphere(0.5f);
InsanelyRedundantJava insanelyredundantjava = new InsanelyRedundantJava(Redundancy1, Redundancy2);
Ortu
DBPro Master
10
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 24th Nov 2017 03:35
I sorted it out, it is missing the mscvp71 and mscvr71 .dlls these are required by some of the matrix1 plugins, but usually throw some sort of error.

Games plays well enough and I liked the particle effects when destroying the enemy. nice work
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
Sedit
User Offline
Joined: 3rd Sep 2017
Location: Ghetto of NJ
Posted: 24th Nov 2017 05:45
Ahh yeah I noticed that when testing my AI on my Cuz computer couple months ago. I didn't realize they were matrix Pluggins though.

How can I fix that, Would I be able to include that with media or some other way so what I need is compiled?

Either way thanks, I almost have it fixed to the point in which it detects the screen mode and sets it to the highest resolution 32 bit Screen Mode, Its something I have needed to start adding to programs for sometime atleast this was the push I needed to ensure future projects are something others can enjoy as well.

So what ya think, not to terrible right, It only took roughly 3 days or so, much of it just gathering and arranging the Media after the main part of the program was finished.

I just learned how to determine the Angle using X,Y positions and the TAN function so soon I can put REAL reflections instead of the type that I performed in the second EXE I posted above. They work OK but still think its always best to use something official instead of a workaround when possible.

I want to make this a NET game but don't have a way to test working on internet. Think it would be so cool being able to play people esp if I could have an option for first person mode.

Like I said it was just a little toy that I made pretty quick but I am going to update it from time to time and slowly build it up. Any suggestions and I will see what I can do to make it happen. I added START and HELP to the Splash screen So if needed someone can click on help and it takes them to a pop up window that tells them the KEYs to use.
Sphere sphere = new Sphere(0.5f);
InsanelyRedundantJava insanelyredundantjava = new InsanelyRedundantJava(Redundancy1, Redundancy2);
Derek Darkly
6
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 24th Nov 2017 15:07
My old computer only supports 1024x768.. perhaps take it down to that, or provide that option, and more people in 3rd world countries can enjoy.
Send your parents to noisy sprite demo hell... enter the D-Zone
Sedit
User Offline
Joined: 3rd Sep 2017
Location: Ghetto of NJ
Posted: 24th Nov 2017 19:56
I think I am going to have it setup to find the closest Video Adaptor with in the range of what I want it to be and use that.

say if I wanted 1000x800 and yours supports 1024x768 then use the one detected on the system that most closely matches that which I desired it to be.

I have it done already and works fine on my system so far,

The Perform Checklist Command for graphics adaptors returns the X size in CheckList Value A the Y in Value B and the Depth into Value C


I just got to change the relative size and position of a couple sprites that I hard coded so that they align correctly when the new video mode is put into place.


I should have just left it at 800x600 which is relatively standard but I was toying with graphics to see how nice I could get it to look right before I released it and never thought to set it back.
Sphere sphere = new Sphere(0.5f);
InsanelyRedundantJava insanelyredundantjava = new InsanelyRedundantJava(Redundancy1, Redundancy2);
Ortu
DBPro Master
10
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 24th Nov 2017 20:27
those two are microsoft redistributables, recommended they used to be installed to system folder with a larger resdistributable package. most windows 10 systems wont have them though and the recommended method is to just include them with your application in the same directory as the .exe

for display mode, its usually best to just default to the desktop resolution via screen width() and screen height()

You should try to avoid hard code positioning, and instead position relative to screen width() and screen height()
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.

Login to post a reply

Server time is: 2018-08-15 10:08:08
Your offset time is: 2018-08-15 10:08:08