Author Topic: Sniper Defence or STD (sniper tower defence.)  (Read 10226 times)

0 Members and 1 Guest are viewing this topic.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Sniper Defence or STD (sniper tower defence.)
« Reply #15 on: October 29, 2010, 09:13:59 pm »
started working on basic enemy movement and collision checking.  This is where the project starts or dies.

Is there any way to draw a line on the back buffer? without affecting the front?
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

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: Sniper Defence or STD (sniper tower defence.)
« Reply #16 on: October 29, 2010, 09:16:13 pm »
In Axe?

Line(x,y,x,y)r

(I think)
« Last Edit: October 29, 2010, 09:17:13 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Sniper Defence or STD (sniper tower defence.)
« Reply #17 on: October 29, 2010, 09:17:30 pm »
it always throws me an error.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Sniper Defence or STD (sniper tower defence.)
« Reply #18 on: October 29, 2010, 09:18:39 pm »
that's because line(X,Y,H,K)r isn't a command. you have to exchange the two buffers, draw a line, and exchange them back


Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Sniper Defence or STD (sniper tower defence.)
« Reply #19 on: October 29, 2010, 09:21:07 pm »
how inefficient is that?

i hope Axe will have line(.,.,.,.)r  in the future.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Sniper Defence or STD (sniper tower defence.)
« Reply #20 on: October 29, 2010, 09:26:23 pm »
i think it's the most efficient way you can right now.


Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Sniper Defence or STD (sniper tower defence.)
« Reply #21 on: October 29, 2010, 09:27:05 pm »
how do you switch buffers?
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Sniper Defence or STD (sniper tower defence.)
« Reply #22 on: October 29, 2010, 09:28:11 pm »
Exch(L3,L6,768)
Line(X,Y,H,K)r
Exch(L3,L6,768)


Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Sniper Defence or STD (sniper tower defence.)
« Reply #23 on: October 29, 2010, 09:36:40 pm »
thanks
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

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: Sniper Defence or STD (sniper tower defence.)
« Reply #24 on: October 29, 2010, 11:44:36 pm »
I was sure Axe supported back-buffer lines X.x. I'm really behind...

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Sniper Defence or STD (sniper tower defence.)
« Reply #25 on: October 30, 2010, 05:27:54 am »
I can't wait for the next GIF, even though Sniper 101 was cool enough :)

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Sniper Defence or STD (sniper tower defence.)
« Reply #26 on: October 30, 2010, 10:29:13 am »
well i got enemy movement working, but collision checting is really messed up.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

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: Sniper Defence or STD (sniper tower defence.)
« Reply #27 on: October 30, 2010, 11:12:45 pm »
Feel free to post some code if you need help. What kind of error does occur?

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Sniper Defence or STD (sniper tower defence.)
« Reply #28 on: October 30, 2010, 11:55:10 pm »
nothing, that what was wrong. nothing would happen....

I got it working.

pseudo code.

Draw line/lazier (front buffer)
collision check (both buffers)
draw bad guys (in back buffer)
Display graph (3lvl gray)
Clear draw (both buffers)

it took me a while to find this was going on....

it is so easy to see in pseudo code...
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

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: Sniper Defence or STD (sniper tower defence.)
« Reply #29 on: October 31, 2010, 04:50:07 am »
Ah ok, glad you got it to work.