Author Topic: [Project] Sniper 101.  (Read 39885 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
[Project] Sniper 101.
« on: October 20, 2010, 06:54:00 pm »
Spoiler For Spoiler:
Ok so i have a major update.


Sniper 101
Version: 2.0.10

James Oldiges of Happybobjr Prod. 2010.
[email protected]

Assisted by:
*Qwerty.55: optimizations
*Aichi: Some great design for upper part of screen

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Description and Features:

Description:
A very fun sniper game to play during math class.

Features:
*Multiple civilians.
*One bad guy
*Quick quit to avoid getting caught by your teacher. (Users discretion is advised)
*Open source code.

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Controls:
Arrow keys move scope.
'2nd' shoots.
'clear' quits the game.
'^' cheat mode/normal mode.



Contact me for: Thoughts, comments, complaints, rants, optimizations,
                lobsters, peanuts etc. are all welcome here.

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/


Change Log:
*New Character
*Multiple innocent civilians.
*Cheat key...'^'
*-100 points for shooting civilians.
*Slightly different display to maximize scope locations.
*Truly is only good in full speed mode, but can be adjusted for normal speed.




Download at:  here
« Last Edit: October 28, 2010, 10:54:03 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 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 #1 on: October 20, 2010, 06:58:47 pm »
Is this going to be one of those "stress reliever" games?
This looks like it might be fun...
Vy'o'us pleorsdti thl'e gjaemue

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 #2 on: October 20, 2010, 07:05:51 pm »
It looks cool. :)  Do you control the sniper or the character?

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Sniper 101.
« Reply #3 on: October 20, 2010, 07:07:30 pm »
took 20 min. ;)
I did it during band.
The compiled code is about 1100 bytes.
I need to figure out some optimizations for it.

@ztrumpet:  You control the sniper.


anyone know how to draw a circle to the back buffer?
« Last Edit: October 20, 2010, 07:08:21 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 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 #4 on: October 20, 2010, 08:17:16 pm »
Best idea: features wishlist.
You might be able to draw it to the front buffer and do storepic if you redraw it every frame, though.
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 #5 on: October 20, 2010, 08:26:36 pm »
Best idea: features wishlist.
You might be able to draw it to the front buffer and do storepic if you redraw it every frame, though.

uhh??? rewrite that plz.
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 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 #6 on: October 20, 2010, 08:57:30 pm »
Is there a clrdraw after the dispgraph or does it just change the buffer?  If it has a clrdraw and the buffer is redrawn every frame, you can draw the circle to the front, store it to the back, then draw everything else.
Vy'o'us pleorsdti thl'e gjaemue

ASHBAD_ALVIN

  • Guest
Re: [Project] Sniper 101.
« Reply #7 on: October 20, 2010, 09:48:07 pm »
Looks cool so far, keep up the good work! ;)

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Sniper 101.
« Reply #8 on: October 20, 2010, 09:57:41 pm »
Is there a clrdraw after the dispgraph or does it just change the buffer?  If it has a clrdraw and the buffer is redrawn every frame, you can draw the circle to the front, store it to the back, then draw everything else.

humm... that might work.. But I don't think i could get the speeds matched up well...

Looks cool so far, keep up the good work! ;)

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
____________________________________________________________

ASHBAD_ALVIN

  • Guest
Re: [Project] Sniper 101.
« Reply #9 on: October 20, 2010, 09:58:32 pm »
A cool idea would to make the sniper scope shake a little, to add difficulty and realism to the game ;)

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Sniper 101.
« Reply #10 on: October 20, 2010, 10:02:20 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
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
____________________________________________________________

ASHBAD_ALVIN

  • Guest
Re: [Project] Sniper 101.
« Reply #11 on: October 20, 2010, 10:04:09 pm »
A cool idea would to make the sniper scope shake a little, to add difficulty and realism to the game ;)

Looks like that would work, but maybe not large enough.  Looks like it only will affect it a pixel or two at most with the shake.  Maybe instead of rand modulo 3 maybe do it modulo 6?

Otherwise, coolio ;)
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


Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Sniper 101.
« Reply #12 on: October 20, 2010, 10:06:40 pm »
mod 5.


0,1,2,3,4
equals
0,0,1,1,2



EDIT:  can someone make me some nice 8x8 pixel sprites for walking stick men?
« Last Edit: October 20, 2010, 10:08:46 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 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: [Project] Sniper 101.
« Reply #13 on: October 21, 2010, 03:05:46 am »
Nice, will there be people jumping or walking from higher parts of the screen?

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Sniper 101.
« Reply #14 on: October 21, 2010, 11:48:46 am »
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.
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
____________________________________________________________