* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: Axe Soccer  (Read 2097 times)

0 Members and 1 Guest are viewing this topic.

Offline SiphonicSugar

  • Full User
  • Join Date: Jun 2015
  • Location: Tennessee, United States
  • Posts: 249
  • Post Rating Ratio: +1/-1
  • Inspiration
    • siphonicsugar
    • @SiphonicSugar
    • SiphonicS
    • View Profile
  • Gender: Male
Axe Soccer
« on: September 24, 2015, 09:28:40 pm »
For once, after not doing something, I decided that I was going to make a game.  For some odd reason, I've always wanted to play a soccer game, so I started on it.  I plan on making it a 2 on 2 soccer game, so probably not professional soccer...

So here is all I have right now, but I was wondering if I should add animation to the actual player itself.  (Right now, it is kind of boring...)
« Last Edit: September 24, 2015, 09:30:27 pm by SiphonicSugar »


  • Calculators owned: TI-89, TI-84 Plus, TI-92, TI-84 Plus C SE, and TI-Nspire CAS with Touchpad
I'm just trying to grab some inspiration. :P

Offline Snektron

  • Lvl 69 Russian Snake
  • CodeWalrus Staff
  • Super User
  • Topic Management
  • Join Date: Dec 2014
  • Location: Netherlands
  • Posts: 3150
  • Post Rating Ratio: +31/-0
  • SSSssssss.....
    • RobinDeWalvis
    • Kzyrox
    • RobinDeWalvis
    • View Profile
    • quantuminfinity
  • Gender: Male
Re: Axe Soccer
« Reply #1 on: September 24, 2015, 09:30:04 pm »
Is this going to be one of those platformer type soccer games? because thats really cool :)
And yeah, you should add player animation :)
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Offline SiphonicSugar

  • Full User
  • Join Date: Jun 2015
  • Location: Tennessee, United States
  • Posts: 249
  • Post Rating Ratio: +1/-1
  • Inspiration
    • siphonicsugar
    • @SiphonicSugar
    • SiphonicS
    • View Profile
  • Gender: Male
Re: Axe Soccer
« Reply #2 on: September 24, 2015, 09:31:12 pm »
Eh, I'm not really sure yet.  :-\

Because I could not figure out a way to have 4 players on a 2D screen, I decided that I would completely change how the game looked.  I changed the view to an above view.  The first time, it worked... But after the third or fourth time, the program slowed down a lot, and when I got to the edge of the field, some of the lines started to disappear.  Also, I noticed that there are random copies of the playing field out of the map...
Code: [Select]
:.SOCCER
:
:[7884848484780000]->Pic1
:
:48->X
:32->Y
:
:Repeat getKey(15)
:ClrDraw
:Pt-On(46,30,Pic1
:Rect(X+100,Y-40,1,80
:Rect(X-100,Y-40,1,80
:Rect(X-100,Y-40,200,1
:Rect(X-100,Y+40,200,1
:If getKey(1)
:Y-1->Y
:End
:If getKey(2)
:X+1->X
:End
:If getKey(3)
:X-1->X
:End
:If getKey(4)
:Y+1->Y
:End
:DispGraph
:End
« Last Edit: September 24, 2015, 10:49:44 pm by SiphonicSugar »
  • Calculators owned: TI-89, TI-84 Plus, TI-92, TI-84 Plus C SE, and TI-Nspire CAS with Touchpad
I'm just trying to grab some inspiration. :P

Online c4ooo

  • ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
  • Super User
  • CW Contest II Winner
  • *
  • Join Date: Aug 2015
  • Location: 127.0.0.1
  • Posts: 876
  • Post Rating Ratio: +7/-2
  • ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    • View Profile
  • Gender: Male
Re: Axe Soccer
« Reply #3 on: September 25, 2015, 12:02:43 am »
Eh, I'm not really sure yet.  :-\

Because I could not figure out a way to have 4 players on a 2D screen, I decided that I would completely change how the game looked.  I changed the view to an above view.  The first time, it worked... But after the third or fourth time, the program slowed down a lot, and when I got to the edge of the field, some of the lines started to disappear.  Also, I noticed that there are random copies of the playing field out of the map...
Code: [Select]
:.SOCCER
:
:[7884848484780000]->Pic1
:
:48->X
:32->Y
:
:Repeat getKey(15)
:ClrDraw
:Pt-On(46,30,Pic1
:Rect(X+100,Y-40,1,80
:Rect(X-100,Y-40,1,80
:Rect(X-100,Y-40,200,1
:Rect(X-100,Y+40,200,1
:If getKey(1)
:Y-1->Y
:End
:If getKey(2)
:X+1->X
:End
:If getKey(3)
:X-1->X
:End
:If getKey(4)
:Y+1->Y
:End
:DispGraph
:End
First of, use Line() for drawing lines. Second of, those getkeys() could be optimized.
Code: [Select]
:.SOCCER
:
:[7884848484780000]->Pic1
:
:48->X
:32->Y
:
:Repeat getKey(15)
:ClrDraw
:Pt-On(46,30,Pic1
:
:VLine(X+100,Y-40,80
:VLine(X-100,Y-40,80
:HLine(Y-40,X-100,200
:HLine(Y+40,X-100,200
:
:X+getKey(3)-getKey(2)->X
:Y+getKey(1)-getKey(4)->Y
:
:DispGraph
:End
The weird "copies" occur because when you pass 256, the 8 bit number overflows back to zero, so you basicly end up at the beginning of the map, and vice versa, if x goes below zero it overflows to 255.
« Last Edit: September 25, 2015, 12:04:42 am by c4ooo »
??? ??? ???
C'est une signature

Offline SiphonicSugar

  • Full User
  • Join Date: Jun 2015
  • Location: Tennessee, United States
  • Posts: 249
  • Post Rating Ratio: +1/-1
  • Inspiration
    • siphonicsugar
    • @SiphonicSugar
    • SiphonicS
    • View Profile
  • Gender: Male
Re: Axe Soccer
« Reply #4 on: September 25, 2015, 12:44:26 am »
Oh, okay.

Somebody said that you should use Rect( to draw things...
  • Calculators owned: TI-89, TI-84 Plus, TI-92, TI-84 Plus C SE, and TI-Nspire CAS with Touchpad
I'm just trying to grab some inspiration. :P

Offline Unicorn

  • ??? ??? ??? ??? ???
  • Super User
  • CW Contest II - 2nd place
  • *
  • Join Date: Jan 2015
  • Location: ??? ??? ??? ??? ???
  • Posts: 2732
  • Post Rating Ratio: +5/-2
  • make :PICKACHUP: a thing!
    • Unicorn808
    • 114/11432
    • View Profile
    • ??? ??? ??? ??? ???
  • Gender: Male
Re: Axe Soccer
« Reply #5 on: September 25, 2015, 02:45:01 am »
Looking VERY cool! Maybe you could use pixeltest to check for boundries? I'm not sure about the lines, though.
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Online c4ooo

  • ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
  • Super User
  • CW Contest II Winner
  • *
  • Join Date: Aug 2015
  • Location: 127.0.0.1
  • Posts: 876
  • Post Rating Ratio: +7/-2
  • ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    • View Profile
  • Gender: Male
Re: Axe Soccer
« Reply #6 on: September 25, 2015, 10:49:04 am »
Looking VERY cool! Maybe you could use pixeltest to check for boundries? I'm not sure about the lines, though.
The most efecient solutionn i know of would be to surround the ketKey()-s inside a min() and max() statement. Maybe you could ask Runer112 or Hooloovoo about a better one ;)
Code: [Select]
:max(min(X+getKey(3)-getKey(2)->X,80),0)^^r
:max(min(Y+getKey(1)-getKey(4)->Y,200),0)^^r
(Note that the max statement ends with an radical 'r' above it.)
??? ??? ???
C'est une signature

Offline ben_g

  • Full User
  • Safe-haven access
  • Join Date: Dec 2014
  • Location:
  • Posts: 162
  • Post Rating Ratio: +10/-0
    • View Profile
Re: Axe Soccer
« Reply #7 on: September 25, 2015, 12:33:35 pm »
Code: [Select]
:max(min(X+getKey(3)-getKey(2)->X,80),0)^^r
:max(min(Y+getKey(1)-getKey(4)->Y,200),0)^^r
I may be wrong, but shouldn't the ->X and the ->Y be at the end of the lines instead of inside the min() and max()?

Online c4ooo

  • ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
  • Super User
  • CW Contest II Winner
  • *
  • Join Date: Aug 2015
  • Location: 127.0.0.1
  • Posts: 876
  • Post Rating Ratio: +7/-2
  • ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    • View Profile
  • Gender: Male
Re: Axe Soccer
« Reply #8 on: September 25, 2015, 06:37:56 pm »
Code: [Select]
:max(min(X+getKey(3)-getKey(2)->X,80),0)^^r
:max(min(Y+getKey(1)-getKey(4)->Y,200),0)^^r
I may be wrong, but shouldn't the ->X and the ->Y be at the end of the lines instead of inside the min() and max()?
O lol your right  :-[
I forgot to move it :P
??? ??? ???
C'est une signature

Offline SiphonicSugar

  • Full User
  • Join Date: Jun 2015
  • Location: Tennessee, United States
  • Posts: 249
  • Post Rating Ratio: +1/-1
  • Inspiration
    • siphonicsugar
    • @SiphonicSugar
    • SiphonicS
    • View Profile
  • Gender: Male
Re: Axe Soccer
« Reply #9 on: September 25, 2015, 09:24:45 pm »
But how would I make it so the X value is not allowed to go over 112 and it is not allowed to go under 0?  Same for Y: not allowed to go over 59 and not allowed to go under 6.

Also, the VLine and HLine thing did not really work... The map did not look anything like how it should have.  I changed it back to Rect (hopefully temporarily) because I wanted to change the size of the map.
  • Calculators owned: TI-89, TI-84 Plus, TI-92, TI-84 Plus C SE, and TI-Nspire CAS with Touchpad
I'm just trying to grab some inspiration. :P

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17850
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: Axe Soccer
« Reply #10 on: September 25, 2015, 09:32:43 pm »
I can't help due to not doing Axe, but I prefer the game being top-down view like in the 2nd screenshot, since it could allow you to make something closer to popular sports games at some point. For example it could be 2 vs 2 with the goalie controled by some basic AI.
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline SiphonicSugar

  • Full User
  • Join Date: Jun 2015
  • Location: Tennessee, United States
  • Posts: 249
  • Post Rating Ratio: +1/-1
  • Inspiration
    • siphonicsugar
    • @SiphonicSugar
    • SiphonicS
    • View Profile
  • Gender: Male
Re: Axe Soccer
« Reply #11 on: September 25, 2015, 09:50:14 pm »
Yeah, I noticed that a wouldn't be able to add more than two players on the first way, so I decided to make it an above view.

I have most of the actual soccer ball part planned out... I think.  So that is good news! :w00t:
  • Calculators owned: TI-89, TI-84 Plus, TI-92, TI-84 Plus C SE, and TI-Nspire CAS with Touchpad
I'm just trying to grab some inspiration. :P

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17850
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: Axe Soccer
« Reply #12 on: September 25, 2015, 10:48:05 pm »
Have you gotten any luck with collision detection?
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Online c4ooo

  • ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
  • Super User
  • CW Contest II Winner
  • *
  • Join Date: Aug 2015
  • Location: 127.0.0.1
  • Posts: 876
  • Post Rating Ratio: +7/-2
  • ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
    • View Profile
  • Gender: Male
Re: Axe Soccer
« Reply #13 on: September 26, 2015, 01:20:14 am »
But how would I make it so the X value is not allowed to go over 112 and it is not allowed to go under 0?  Same for Y: not allowed to go over 59 and not allowed to go under 6.

Also, the VLine and HLine thing did not really work... The map did not look anything like how it should have.  I changed it back to Rect (hopefully temporarily) because I wanted to change the size of the map.
But isnt your x range 0-80 and your y range 0-200? To do what you want you will have to change the getKey() statements. The bigger, inner number is the max and the zero on e outside is the min.

How did the HVLines look? Can you provide a better description?
??? ??? ???
C'est une signature

Offline SiphonicSugar

  • Full User
  • Join Date: Jun 2015
  • Location: Tennessee, United States
  • Posts: 249
  • Post Rating Ratio: +1/-1
  • Inspiration
    • siphonicsugar
    • @SiphonicSugar
    • SiphonicS
    • View Profile
  • Gender: Male
Re: Axe Soccer
« Reply #14 on: September 28, 2015, 09:23:37 pm »
I decided to change the size of the field, but I will get to that later.

Here is what it looks like with the VLine and HLine...
  • Calculators owned: TI-89, TI-84 Plus, TI-92, TI-84 Plus C SE, and TI-Nspire CAS with Touchpad
I'm just trying to grab some inspiration. :P

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games