INOVA-Technology / GCGames

0 stars 0 forks source link

AI #5

Open ChaseWeimer opened 11 years ago

ChaseWeimer commented 11 years ago

we need to start working on a menu and one player mode. AI is going to be difficult... i guess we need attacks first tho

Addisonbean commented 11 years ago

hmmmmmmmm

Addisonbean commented 11 years ago

I know nothing about ai, but i will try to learn/help/figure something out

ChaseWeimer commented 11 years ago

I know how to do it for the most part... the hardest part is programming logic errors

Addisonbean commented 11 years ago

ya..

Addisonbean commented 11 years ago

that would probably just be a bunch of Math.random() stuff

Addisonbean commented 11 years ago

like

if (Math.random > somevalue) {

}
ChaseWeimer commented 11 years ago

ya... and a lot of if statements. we'll need a seperate script

ChaseWeimer commented 11 years ago

how would u do an OnClick thing in a canvas?

Addisonbean commented 11 years ago

ya maybe, like if they chose multiplayer itll import the ai script

ChaseWeimer commented 11 years ago

I'm programming a menu

Addisonbean commented 11 years ago

i think youd just have to get the coords of where they click on the canvas and compare it with the thing that is 'clickable' to see if they clicked it. What id do is set up a switch statement to see what they clicked kinda like

switch(clickedThing) {
  case "bla":
    // do something
  defualt:
    // do nothing
}
Addisonbean commented 11 years ago

Somethin like that, we may want make a function to either check what was clicked or handle clicks or something

ChaseWeimer commented 11 years ago

y don't u try it. go needs to be set to true to start the game. o, and I tried to center play... it wasn't working for me

ChaseWeimer commented 11 years ago

r u working on it? if not, i'm gonna try

Addisonbean commented 11 years ago

Im sorry for not answering, I had to go and didnt see you said that. But i cant work on it right now

ChaseWeimer commented 11 years ago

its alright. im working on it.

Addisonbean commented 11 years ago

Cool!

ChaseWeimer commented 11 years ago

I almost have it. this close

Addisonbean commented 11 years ago

Awesome!

Addisonbean commented 11 years ago

I really want to either get this ai working or get mutliplayer working!

ChaseWeimer commented 11 years ago

yes! lets do multi player first. it'll b easier

On Fri, Jun 14, 2013 at 5:47 PM, Addisonbean notifications@github.comwrote:

I really want to either get this ai working or get mutliplayer working!

— Reply to this email directly or view it on GitHubhttps://github.com/INOVA-Technology/GCGames/issues/5#issuecomment-19485681 .

Addisonbean commented 11 years ago

ya I'd think so. we'll need to use node.js or something. But node is all i can think of. Maybe Websockets, but i think node might use that

ChaseWeimer commented 11 years ago

ok

On Fri, Jun 14, 2013 at 5:49 PM, Addisonbean notifications@github.comwrote:

ya I'd think so. we'll need to use node.js or something. But node is all i can think of. Maybe Websocket, but i think node might use that

— Reply to this email directly or view it on GitHubhttps://github.com/INOVA-Technology/GCGames/issues/5#issuecomment-19485767 .

Addisonbean commented 11 years ago

This may be good for the multiplayer thing. It looks better than nodeJS http://www.meteor.com/