Page 1 of 1

Playable concept: Gridiron - 2D top-down with physics engine

Posted: Sun Feb 14, 2021 3:27 am
by togFox
A working concept. Not very pretty - but it's playable with victory/fail end states coded.

Uses the numpad keys up/down/left/right to control the quarterback. Click the field to throw the ball. If you do that right then your team will get a run-away touchdown. Use the numpad-5 key to advance time.

I'm 99% sure I haven't done dt thing right and this will run too fast/slow on different rigs. I suspect this will take onle 2 or 3 minutes for you to check the speed/timing so I'd appreciate any feedback in that regard.

love file attached. Be kind. First playable prototype. Much of this was made possible thanks to Ivan and others on this forum.

edit: https://github.com/togfoxy/LoveFootball/releases

Image

Re: Playable concept: Gridiron - 2D top-down with physics engine

Posted: Sat Mar 13, 2021 11:40 pm
by Gunroar:Cannon()
Nice, you got the AI working. I find real time ai hard to implement. :rofl:

Re: Playable concept: Gridiron - 2D top-down with physics engine

Posted: Sun Mar 14, 2021 12:55 am
by togFox
Im using behavioural trees combined with some vector math and I'll be honest and say there behavior is so real (sometimes) it blows my mind. :) Thanks for trying it out.

Re: Playable concept: Gridiron - 2D top-down with physics engine

Posted: Wed Mar 17, 2021 12:00 pm
by Gunroar:Cannon()
Though I tried it on my android(I like trying stuff there, where I normally tweak the shader and control specific code so it will work) and I got a problem with sqlite3, that seems to come from the app. Am I wrong or is it that sqlite3 doesn't work on android?

Re: Playable concept: Gridiron - 2D top-down with physics engine

Posted: Wed Mar 17, 2021 12:50 pm
by togFox
It was never designed for android so I'm not surprised it didn't work.

Raises an interesting question - which databases do other mobile apps use? Text files and xml?

BTW - this REQUIRES sqlite but that code isn't yet finished. If you care enough you can comment that out. And try again.

Since you seem to be giving this a serious go, the next version I'll release is more gamey (faster) and I'll remove that sql reference that doesn't do anything anyway.

Re: Playable concept: Gridiron - 2D top-down with physics engine

Posted: Thu Mar 18, 2021 10:01 am
by Xii
SQLite is very commonly used on Android.

Re: Playable concept: Gridiron - 2D top-down with physics engine

Posted: Thu Mar 18, 2021 11:15 am
by togFox
I see. Well, maybe I need to invest some time into touch screen controls and touch screen useability. :)