Home | News | Downloads | Projects | Articles | Awards | Forums | Chat | Guestbook | About | Arcade
DealsFor.me - The best sales, coupons, and discounts for you



Forum Topics Replies Last Post Info
Older topics
Here you can access all topics posted from May 12th 2005 to Apr 9th 2006 (In read only mode).
1126 15694 9 Apr, 2006, 11:06
In: Last Post[GAME]Learn how to count to...
By: DJ Omnimaga
 

  post

 PONG!
Netham45
Posted: 10 Aug, 2007, 18:07


Still Alive; The cake is a lie


Group: Coders Of Tomorrow
Posts: 742
Member No.: 193
Joined: 24 Sep, 2006



Got bored on the way up to Wyoming to spend the night with my grandparents(on the way to South Dakota), so I pulled out my 84 and started on a pong game. Right now, I have a 4d(diagonal only) ball movement(bounces off of all the walls correctly, and player paddle movement.

What I need to do: Make an AI, and make the ball detect the paddles(it goes through them).

Currently, I did a test, and it is moving at 5FPS.


--------------------
===========



===========
Top
Super Speler
Posted: 10 Aug, 2007, 19:29


Post whore


Group: Coders Of Tomorrow
Posts: 779
Member No.: 95
Joined: 18 Jun, 2006



I wrote my TI pong game in about two hours. It had pretty cool physics (like a 2D curveball clone).


--------------------
[color=red]Currently conquering the world. In Phase 1.
List of members of private army:[/color]
SilverCalcKnight, TD-Linux, Kuro, Cure, Weregoose, Lolbbq, elfprince13, leofox, Brazucs, +ZERO+, Radical Pi, shadow, bananaman, trigkid213, netham45, Full-Metal-Randomist, myfavcolorchanges, Fallen Ghost, trevmeister66, lolje, Harrierfalcon, clementop, blm22, Mexi1010, baorder54, Bking0, frenchcalc1, TheStorm, jimbauwens, Sting::Ray, IAmACalculator, MechaTech84, Groene07, Angel14995, Xphoenix, lordofthegeeks, tama and...

(\__/)
(='.'=)
(")_(")
[color=red]If you wish to join PM me.[/color]

[QUOTE=Ad on omnimaga]Ti 83 Game Programming: Move your career forward with an accredited online degree![/QUOTE]
[QUOTE=Netham45]It isn't really a problem, but it kind of scares me when people randomly quote me, like they are stalking me.[/QUOTE]
Top
Netham45
Posted: 10 Aug, 2007, 19:42


Still Alive; The cake is a lie


Group: Coders Of Tomorrow
Posts: 742
Member No.: 193
Joined: 24 Sep, 2006



heh, cool. Im kinda rusty at coding, havn't done it in about 6 months on a calc, so I am doing this as a get-back-into-coding thing.


--------------------
===========



===========
Top
Super Speler
Posted: 10 Aug, 2007, 19:45


Post whore


Group: Coders Of Tomorrow
Posts: 779
Member No.: 95
Joined: 18 Jun, 2006



Me as well, it's taking me hours to do what would normally take me minutes (ok, maybe like half as much time) in the past. Oh well, I guess that just means I should get started again.


--------------------
[color=red]Currently conquering the world. In Phase 1.
List of members of private army:[/color]
SilverCalcKnight, TD-Linux, Kuro, Cure, Weregoose, Lolbbq, elfprince13, leofox, Brazucs, +ZERO+, Radical Pi, shadow, bananaman, trigkid213, netham45, Full-Metal-Randomist, myfavcolorchanges, Fallen Ghost, trevmeister66, lolje, Harrierfalcon, clementop, blm22, Mexi1010, baorder54, Bking0, frenchcalc1, TheStorm, jimbauwens, Sting::Ray, IAmACalculator, MechaTech84, Groene07, Angel14995, Xphoenix, lordofthegeeks, tama and...

(\__/)
(='.'=)
(")_(")
[color=red]If you wish to join PM me.[/color]

[QUOTE=Ad on omnimaga]Ti 83 Game Programming: Move your career forward with an accredited online degree![/QUOTE]
[QUOTE=Netham45]It isn't really a problem, but it kind of scares me when people randomly quote me, like they are stalking me.[/QUOTE]
Top
DJ Omnimaga
Posted: 10 Aug, 2007, 19:50


Ragol666


Group: Founder
Posts: 11283
Member No.: 1
Joined: 9 Apr, 2006



QUOTE (Netham45 @ 10 Aug, 2007, 20:42)
get-back-into-coding thing.

for some reasons at first I've read this as geek-back-into-coding biggrin.gif

ANyway i hope you add some features to make it different from the 438 pong games alerady in ticalc.org archives wink.gif


--------------------
user posted image
Join us on IRC on #omnimaga at irc://unitedti.org!
user posted image
Top
AaroneusTheGreat
Posted: 11 Aug, 2007, 0:13


Ultimate Member


Group: Members
Posts: 133
Member No.: 832
Joined: 26 Jul, 2007



wow, yea I've contributed mine, I'm surprised they took it. It was my first C game, it sucked the big one. tongue.gif
Top
DJ Omnimaga
Posted: 11 Aug, 2007, 0:41


Ragol666


Group: Founder
Posts: 11283
Member No.: 1
Joined: 9 Apr, 2006



I didn't knew they even still accepted pong games blink.gif

I guess its a good thing they do tho because who know netham is maybe making it 6 level gray biggrin.gif


--------------------
user posted image
Join us on IRC on #omnimaga at irc://unitedti.org!
user posted image
Top
Netham45
Posted: 11 Aug, 2007, 2:38


Still Alive; The cake is a lie


Group: Coders Of Tomorrow
Posts: 742
Member No.: 193
Joined: 24 Sep, 2006



Got it working. It is using one If statement, and it is outside of the loop to determine who won.

It is averaging 4-7 FPS, depending on rather the AI or the Human player moved.

I'll post the source in a .8XP format next sunday(when I get back home,) but I have it typed at the bottom of this message.

Im going to work on one that has 'If' statements to show just how much faster the 'While' loops were.

It is using the finance variables for all the variables that can't be overwritten(direction,score,paddle position, ball coordinates)

Note: PMT, N, C/Y, P/Y, I%,PV and FV are all finance variables. I will lowercase all normal variables. I also bolded the financial variables.
QUOTE (Pong)

ClrDraw
randInt(1,4->PMT
46->N
2randInt(1,30->I%
5->C/Y
5->P/Y
0->PV
0->FV
0->Xmin
94->Xmax
0->Ymin
62->Ymax
AxesOff
0->r
2->(Theta)
Line(7,30,7,22
While (PV!=10)(FV!=10
(Theta)+1->(Theta)
While r=0
Text(0,0,PV
Text(0,91,FV
Vertical 3
Vertical 90
1->r
End
getkey->g
while (g=25)(P/Y!=1
Line(7,0,7,62,0
P/Y-1->P/Y
1->g
Line(7,62-(P/Y8-8),7,62-(P/Y8
End
While (g=34)(P/Y!=8
Line(7,0,7,62,0
P/Y+1->P/Y
1->g
Line(7,62-(P/Y8-8),7,62-(P/Y8
End
While ((I%=0)+(I%=62)+(N=4)+(N=88))(g!=188
(4(I%=62)(PMT=3))+(2(I%=62)(PMT=1))+(3(I%=0)(PMT=4))+((I%=0)(PMT=2))+(4(N=4)(PMT=2))+((N=88)(PMT=3))+(2(N=88)(PMT=4))+(3(N=4)(I%=0))+($(N=4)(I%=62))+(2(N=88)(I%=62))+(N=88)(I%=0->PMT
188->g
End
Pxl-Off(I%,N
N-2(PMT=2)+2(PMT=4)-2(PMT-1)+2(PMT=3)->N
I%+2(PMT=1)+2(PMT=3)-2(PMT=2)-2(PMT=4->I%
Pxl-On(I%,N
0->g
While (N=84)(g!=154)(I%>C/Y8-9)(I%<C/Y8+1)((PMT=3)+(PMT=4
1(PMT=3)+2(PMT=4->PMT
154->g
End
While ((N=6)+(N=8))(g!=155)(I%>(P/Y-1)8-1)(I%<P/Y8+1)((PMT=1)+(PMT=2
3(PMT=1)+4(PMT=2->PMT
155->g
End
While ((N=4)+(N=88))(r!=0
PV+(N=88->PV
FV+(N=4->FV
0->r
End
While (Theta)=4
Line(85,0,85,62,0
C/Y+(C/Y!=8)(I%>C/Y8)-C/Y!=1)(I%<C/Y8-8->C/Y
Line(85,62-(C/Y8-8),85,62(C/Y8
0->(Theta)
End
End
If PV=10:Then
Text(30,25,"Player Won!
Else
Text(28,25,"Calculator Won!
Endif
"


This post has been edited by Netham45 on 11 Aug, 2007, 9:43


--------------------
===========



===========
Top
DJ Omnimaga
Posted: 11 Aug, 2007, 7:54


Ragol666


Group: Founder
Posts: 11283
Member No.: 1
Joined: 9 Apr, 2006



yay for boolean logic sometimes it make things faster and even smaller in some cases. I hope to be able to try the game soon


--------------------
user posted image
Join us on IRC on #omnimaga at irc://unitedti.org!
user posted image
Top
TheStorm
Posted: 11 Aug, 2007, 8:59


Extreme Poster


Group: Members
Posts: 250
Member No.: 500
Joined: 30 May, 2007



Hey you stole my idea meanie...
I mean nice job i was just about to work on a game just like this once I finish the new Harry Potter book, I already hade the Dcs Icon setup.


--------------------
>(v') BLUB shall rule the world
"If you've done something right no one will know that you've done anything at all" -Futurerama

user posted image
Top
Netham45
Posted: 11 Aug, 2007, 9:42


Still Alive; The cake is a lie


Group: Coders Of Tomorrow
Posts: 742
Member No.: 193
Joined: 24 Sep, 2006



lol, sorry.

Also, there is a glitch I didn't see when I was optimizing that causes the paddles to get smaller as you go down on human(gets small at top, gets bigger as you move farther down) and up on AI. It's caused by me using C/Y7 instead of C/Y8-8 because I wasn't thinking when I wrote it for some reason. =/


--------------------
===========



===========
Top
DJ Omnimaga
Posted: 13 Aug, 2007, 0:24


Ragol666


Group: Founder
Posts: 11283
Member No.: 1
Joined: 9 Apr, 2006



i see, i hope you get it fixed smile.gif


--------------------
user posted image
Join us on IRC on #omnimaga at irc://unitedti.org!
user posted image
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
DealsFor.me - The best sales, coupons, and discounts for you

Topic Options post





TI-Freakware's TI Ring
TI-Freakware's TI Ring
[ Join Now | Ring Hub | Random | << Prev | Next >> ]

Hosted for free by InvisionFree* (Terms of Use: Updated 2/10/2010) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 0.1412 seconds | Archive

Skin by xlibman and Jc
All programs and games are property of their respective owners.