Author Topic: My first game-Cannonball  (Read 14235 times)

0 Members and 2 Guests are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: My first game-Cannonball
« Reply #15 on: October 21, 2010, 10:08:02 pm »
I know it is the score, but maybe they shouldn't be there, for example, they would only show up at the end so that it doesn't slow down, optimization is the key :)
Optimizing something like that is usually only necessary when TI-BASIC is being used.

Yes, but the numbers make it slow, one by one going up :S
He could make the text be drawn on the buffer so it doesn't slow down as much, or he could use a custom font routine, but that's a bit harder.

Nice first game btw :). You should add some difficulty as the game progresses like maybe some obstacles or make the ball faster and faster as it progresses.
« Last Edit: October 21, 2010, 10:08:30 pm by DJ Omnimaga »

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: My first game-Cannonball
« Reply #16 on: October 21, 2010, 10:47:30 pm »
Or not draw it every frame.  Maybe every 10 frames or so.
Vy'o'us pleorsdti thl'e gjaemue

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: My first game-Cannonball
« Reply #17 on: October 22, 2010, 03:22:01 am »
Quote
He could make the text be drawn on the buffer so it doesn't slow down as much, or he could use a custom font routine, but that's a bit harder.
i do this already
Quote
Nice first game btw :). You should add some difficulty as the game progresses like maybe some obstacles or make the ball faster and faster as it progresses.
obstacles were already scheduled, and i'll make the ball going faster.

to all: thanks for giving feedback, hold on
 
I'm not a nerd but I pretend:

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: My first game-Cannonball
« Reply #18 on: October 22, 2010, 04:03:14 am »
Quote
He could make the text be drawn on the buffer so it doesn't slow down as much, or he could use a custom font routine, but that's a bit harder.
i do this already

I'm curious. Would you mind explaining how you draw the score?
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: My first game-Cannonball
« Reply #19 on: October 22, 2010, 05:55:58 am »
Quote
He could make the text be drawn on the buffer so it doesn't slow down as much, or he could use a custom font routine, but that's a bit harder.
i do this already



I'm curious. Would you mind explaining how you draw the score?
i use a list variable, {L1+5}r
each step, it puts a certain number up to the score. then i do text(2,0,{L1+5}r
and then a dispgraph (i draw to the buffer, thats fix5)
I'm not a nerd but I pretend:

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: My first game-Cannonball
« Reply #20 on: October 22, 2010, 05:58:12 am »
This is a very good first game! i love the way it is controlled!
keep up the great work!
« Last Edit: October 22, 2010, 05:58:32 am by jhgenius01 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: My first game-Cannonball
« Reply #21 on: October 22, 2010, 09:46:24 am »
I'll probably give this a try on a real calc soon, although I cannot promise anything since last 2 weekends I was swamped with work and stuff.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: My first game-Cannonball
« Reply #22 on: October 22, 2010, 09:47:23 am »
Quote
He could make the text be drawn on the buffer so it doesn't slow down as much, or he could use a custom font routine, but that's a bit harder.
i do this already



I'm curious. Would you mind explaining how you draw the score?
i use a list variable, {L1+5}r
each step, it puts a certain number up to the score. then i do text(2,0,{L1+5}r
and then a dispgraph (i draw to the buffer, thats fix5)


Oh, I thought you were using a custom text routine and somehow managed to get the numbers to shift between multiple decimal places. What you're doing is a bit more efficient though.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: My first game-Cannonball
« Reply #23 on: October 22, 2010, 09:48:24 am »
Quote
He could make the text be drawn on the buffer so it doesn't slow down as much, or he could use a custom font routine, but that's a bit harder.
i do this already



I'm curious. Would you mind explaining how you draw the score?
i use a list variable, {L1+5}r
each step, it puts a certain number up to the score. then i do text(2,0,{L1+5}r
and then a dispgraph (i draw to the buffer, thats fix5)


Oh, I thought you were using a custom text routine and somehow managed to get the numbers to shift between multiple decimal places. What you're doing is a bit more efficient though.
yes, that is
I'm not a nerd but I pretend:

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: My first game-Cannonball
« Reply #24 on: October 22, 2010, 10:04:20 am »
planned updates:
-going to include obstacles (5 levels)
-make the ball going faster
-user can set paddle width
more ideas? post them
I'm not a nerd but I pretend:

Offline JustCause

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 810
  • Rating: +115/-5
    • View Profile
Re: My first game-Cannonball
« Reply #25 on: October 22, 2010, 10:23:37 am »
An easy way to speed it up quick is to put in a flag that alternates between -1 and 1 every frame, and only draw the screen if that flag is equal to 1. Drawing the screen takes a surprising amount of time.
See you, space cowboy...

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: My first game-Cannonball
« Reply #26 on: October 22, 2010, 01:55:30 pm »
If you really wanted to go extreme you could have powerups and powerdowns falling from the sky :D

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: My first game-Cannonball
« Reply #27 on: October 22, 2010, 06:54:27 pm »
That would be cool :D

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: My first game-Cannonball
« Reply #28 on: October 22, 2010, 10:15:21 pm »
I know it is the score, but maybe they shouldn't be there, for example, they would only show up at the end so that it doesn't slow down, optimization is the key :)
Optimizing something like that is usually only necessary when TI-BASIC is being used.

Yes, but the numbers make it slow, one by one going up :S
He could make the text be drawn on the buffer so it doesn't slow down as much, or he could use a custom font routine, but that's a bit harder.
Actually, drawing the text to the buffer uses a bcall, like displaying to the screen.  The two speeds should be similar (a slow-ish speed). :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: My first game-Cannonball
« Reply #29 on: October 22, 2010, 10:16:16 pm »
Ah ok, I notice a very small increase, personally, but it was negligible.