Author Topic: [Project] Sniper 101.  (Read 39848 times)

0 Members and 2 Guests are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Project] Sniper 101.
« Reply #15 on: October 21, 2010, 01:47:34 pm »
I added swaying of scope.
I added Infinite amount of shot.
I fixed timer (i'll need to make a version for 6 mH calcs....)
I added a score  feature.  IE.  5  /9
The guy changes locations when shot.

Upcoming:
Guy doesn't have to walk in straight line.
I will Undo "Full"  so i can be used on different calcs.

Keep up with updates.

The game looks really good but some-how hard :S

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: [Project] Sniper 101.
« Reply #16 on: October 21, 2010, 03:25:22 pm »
anyone know how to draw a circle to the back buffer?

Code: [Select]
Exch(L6,L3,768)
Circle(X,Y,Radius)
Exch(L6,L3,768)

...basically switch buffer/backbuffer, draw circle to the buffer (which is actually the back buffer) then switch them back

Looks nice so far :)
« Last Edit: October 21, 2010, 03:26:02 pm by squidgetx »

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: [Project] Sniper 101.
« Reply #17 on: October 21, 2010, 03:37:35 pm »
You know, on xbox there is a sniper simulator that could give you some nice ideas for the game. Such as notches and various distances. Just look it up in the indie section and try out the demo.

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

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: [Project] Sniper 101.
« Reply #18 on: October 21, 2010, 03:43:47 pm »
A cool idea would to make the sniper scope shake a little, to add difficulty and realism to the game ;)

I was thinking about it.

Code: 

X+((Rand^3)/2)-> X
X-((Rand^3)/2)-> X
Y+((Rand^3)/2)-> Y
Y-((Rand^3)/2)-> Y


This is more efficient
Code: [Select]
X+rand^5-2->X
Y+rand^5-2->Y

It will move X and Y a distance between 0 and 2 pixels away from where it was in a random direction.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Sniper 101.
« Reply #19 on: October 21, 2010, 04:07:33 pm »
A cool idea would to make the sniper scope shake a little, to add difficulty and realism to the game ;)

I was thinking about it.

Code: 

X+((Rand^3)/2)-> X
X-((Rand^3)/2)-> X
Y+((Rand^3)/2)-> Y
Y-((Rand^3)/2)-> Y


This is more efficient
Code: [Select]
X+rand^5-2->X
Y+rand^5-2->Y

It will move X and Y a distance between 0 and 2 pixels away from where it was in a random direction.

thanks.

Update:  Game sucks when at normal speed.... (trying to fix it)
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 Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: [Project] Sniper 101.
« Reply #20 on: October 21, 2010, 04:30:15 pm »
 

This is more efficient
Code: [Select]
X+rand^5-2->X
Y+rand^5-2->Y

It will move X and Y a distance between 0 and 2 pixels away from where it was in a random direction.

That wont quite work because Axe does order of operations right to left, try this instead:

Code: [Select]
rand^5-2+Y->Y
rand^5-2+X->X

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Sniper 101.
« Reply #21 on: October 21, 2010, 05:03:14 pm »
still... that would have it sway too much.

i am using X+((Rand^25)/24)-> X
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 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: [Project] Sniper 101.
« Reply #22 on: October 21, 2010, 05:53:50 pm »
still... that would have it sway too much.

i am using X+((Rand^25)/24)-> X
Use rand^25/24+X->X as it's more optimized. :)

Neat game. ;D

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: [Project] Sniper 101.
« Reply #23 on: October 21, 2010, 07:48:48 pm »
Thanks for the correction, Builderboy
Anyway...

still... that would have it sway too much.

i am using X+((Rand^25)/24)-> X

So you only want it to move one pixel in either direction very occasionally?
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Sniper 101.
« Reply #24 on: October 21, 2010, 07:59:33 pm »
cool thanks

Thanks for the correction, Builderboy
Anyway...

still... that would have it sway too much.

i am using X+((Rand^25)/24)-> X

So you only want it to move one pixel in either direction very occasionally?

very occasionally?  This still sways quite a bit...
« Last Edit: October 21, 2010, 08:00:36 pm by happybobjr »
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: [Project] Sniper 101.
« Reply #25 on: October 21, 2010, 08:22:46 pm »
Only once every 13 cycles or so. That should be fairly inconsistent if the game itself is slow. About once every quarter second, I would imagine.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Sniper 101.
« Reply #26 on: October 21, 2010, 08:36:23 pm »
how would you put that in though?
It seems like that would be more inefficient.


Anyone got an idea to make everything but in the view of the scope black?
« Last Edit: October 21, 2010, 08:36:36 pm by happybobjr »
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: [Project] Sniper 101.
« Reply #27 on: October 21, 2010, 08:38:02 pm »
DS loop?


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: [Project] Sniper 101.
« Reply #28 on: October 21, 2010, 08:38:16 pm »
Draw circles to fill in where the scope is, DrawInv.
Then draw whatever inside the open circle.
Vy'o'us pleorsdti thl'e gjaemue

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Sniper 101.
« Reply #29 on: October 21, 2010, 08:40:36 pm »
oh, good thought ^


DS loop?
Could you do an example where it would be more efficient?


how can i make the inside of the circle white?
« Last Edit: October 21, 2010, 08:53:24 pm by happybobjr »
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
____________________________________________________________