Jump to content
Site Stability Read more... ×
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Almost done...

Sign in to follow this  
Evil Steve


Well, I'm almost finished with Bomberman. I've pretty much just got to do the AI now. I've moved the AI into a DLL, just for the hell of it. And it'll allow anyone who can be bothered to create a new AI for it.

I redesigned map 1, here's a screenshot:
Map 1

I'm also going to add some small particle effects for when you blow up bricks, and some sound effects. But that'll take about an hour at most to code.

I haven't got a clue how to do the AI. Anyone want to do it for me? ;)
Sign in to follow this  


Recommended Comments

Very simple starting AI for deciding to put a bomb:
for each frame - flood fill the adversary's position by 1 square, and it's own position by one square - check if any of your flooded squares have visible lines to the enemy's flooded squares, if so place a bomb, if not, expand the flooding until they do, then place the bomb there (you'll have to determine the path to that point, but that should be trivial)

Overriding "save your a$$" AI - for all bombs currently on the map, if your ai player is within blast range, flood fill from your player until you find a square that isn't in the blast range - move the player there. if the player isn't currently on the blast range, then go for the bomb placement routine.

Share this comment

Link to comment
I like the map design, but can you get some graphics that have a bit more contrast? Its hard for me to decipher where the tiles start/end.

Keep up the great work!

Share this comment

Link to comment
alexmoura: Thanks, I'll give that a go. I've never done AI before (I don't know how I haven't), so I really don't have a clue where to start :)

H_o_p_s: Yeah, I'm not too fond of the graphics either. Hooray for programmer art ;) I'll find some better ones before I release the game. The map file allows for up to 16 textures on a map (each tile is a BYTE in the map file, and uses the upper 4 bits for flags, the lower 4 for texture ID).

I'm going to put of doing the AI some more by doing absolutely anything else I can :P At the moment the AI is in DLL, so I can add better ones if I want, and so others can try to write an AI if they desperately want to.

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!