Author Topic: tanks and AI  (Read 5712 times)

0 Members and 1 Guest are viewing this topic.

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
tanks and AI
« on: July 03, 2012, 01:09:53 pm »
it's a bit late to enter the contest, but i felt like making something related to the topic anyways, and have been playing a lot of Steel Storm recently, so here's the beginnings of a tank fighting game of some sort. adding in smooth scrolling maps + bullets + collision detection will add a HUGE amount of overhead, but this is running with 11 AI's and at 6MHz, so i think it might be doable with 2-3 AI's at a time and at 15MHz, with some optimisation.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: tanks and AI
« Reply #1 on: July 03, 2012, 01:19:10 pm »
Oh wow this is cool :D by the way we should get more ppl into playing.
« Last Edit: July 03, 2012, 01:36:09 pm by aeTIos »
I'm not a nerd but I pretend:

Offline blue_bear_94

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 801
  • Rating: +25/-35
  • Touhou Enthusiast / Former Troll / 68k Programmer
    • View Profile
Re: tanks and AI
« Reply #2 on: July 03, 2012, 01:29:37 pm »
It's a lot late. Only 5 days left.
Due to dissatisfaction, I will be inactive on Omnimaga until further notice. (?? THP hasn't been much success and there's also the CE. I might possibly be here for a while.)
If you want to implore me to come back, or otherwise contact me, I can be found on GitHub (bluebear94), Twitter (@melranosF_), Reddit (/u/Fluffy8x), or e-mail (if you know my address). As a last resort, send me a PM on Cemetech (bluebear94) or join Touhou Prono (don't be fooled by the name). I've also enabled notifications for PMs on Omnimaga, but I don't advise using that since I might be banned.
Elvyna (Sunrise) 4 5%
TI-84+SE User (2.30 2.55 MP 2.43)
TI-89 Titanium User (3.10)
Casio Prizm User? (1.02)
Bag  東方ぷろの

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: tanks and AI
« Reply #3 on: July 03, 2012, 02:36:24 pm »
Not really, it's just procrastination at it's finest. I could still write an ok entry in five days if I threw most my time on it. :)

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: tanks and AI
« Reply #4 on: July 03, 2012, 02:43:44 pm »
Not really, it's just procrastination at it's finest. I could still write an ok entry in five days if I threw most my time on it. :)
Couldn't have said it better myself. ._.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: tanks and AI
« Reply #5 on: July 03, 2012, 10:32:04 pm »
oooh shiny!  What kind of rules to the AI's follow?

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: tanks and AI
« Reply #6 on: July 04, 2012, 12:42:23 am »
it's rather simple, actually. right now, they just have a 2/3 chance of accelerating forward, 1/3 backward, turn towards the player, and stop moving forward within a certain distance. i'm going to add in side to side motion as well and have them slide a bit ambiently and have a chance of swerving when the player fires his weapon/they hit a wall.

EDIT: builder, what do you recommend for a map setting?
* shmibs is worried that smooth scrolling would be too sluggish with this much going on, but that anything else would feel too crampt.

DOUBLE EDIT: what should i do for collision detection? is there a better method than progressional pixel testing?
« Last Edit: July 04, 2012, 01:26:45 am by shmibs »

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: tanks and AI
« Reply #7 on: July 04, 2012, 02:46:36 am »
It looks pretty cool, but the sprites remind me of race cars from some old video game instead of tanks. XD

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: tanks and AI
« Reply #8 on: July 04, 2012, 08:25:45 am »
It's looking nice so far!
Keep it going! :)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: tanks and AI
« Reply #9 on: July 04, 2012, 09:09:48 am »
Cool! I considered doing something similar for the nspire, but changed my mind.

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: tanks and AI
« Reply #10 on: July 04, 2012, 11:03:16 am »
DOUBLE EDIT: what should i do for collision detection? is there a better method than progressional pixel testing?
I use a hackish radial-distance method for collisions in Embers - I pretend every enemy and item exists within a diamond given by distance=distancex+distancey, which is basically a optimal corruption of pythagorean distance=root(dx^2+dy^2). It's not as graphically perfect as using pixel masks but it sure is a hell of a lot faster.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: tanks and AI
« Reply #11 on: July 04, 2012, 11:18:09 am »
That sounds like a pretty neat idea ...Tho it indeed sounds like an epic corruption O.o
« Last Edit: July 04, 2012, 11:18:25 am by aeTIos »
I'm not a nerd but I pretend:

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: tanks and AI
« Reply #12 on: July 04, 2012, 01:56:46 pm »
it's a bit late to enter the contest, but i felt like making something related to the topic anyways, and have been playing a lot of Steel Storm recently, so here's the beginnings of a tank fighting game of some sort. adding in smooth scrolling maps + bullets + collision detection will add a HUGE amount of overhead, but this is running with 11 AI's and at 6MHz, so i think it might be doable with 2-3 AI's at a time and at 15MHz, with some optimisation.
Looks awesome.


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: tanks and AI
« Reply #13 on: July 26, 2012, 01:13:15 am »
i doubt i'm every going to do anything with this, but here's the latest version of it, if anyone feels like playing around.
A is the executable, ACC and TANKS the source, and the arrows move you in directions relative to the tank, while 2nd and mode turn.

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: tanks and AI
« Reply #14 on: July 26, 2012, 03:28:56 am »
Looks  fun. Looks like a good start for a game. :)


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me