Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Spenceboy98

Pages: 1 ... 18 19 [20] 21 22 ... 39
286
Computer Projects and Ideas / Re: 1TB USB Stick
« on: January 10, 2013, 07:26:45 pm »
Daaaaaannnnggg.

It's only $927.80 on Amazon($11.24 shipping).

287
Computer Projects and Ideas / Re: 1TB USB Stick
« on: January 10, 2013, 07:18:12 pm »
What is TB?

288
TI Z80 / Re: A lot of conversions
« on: January 10, 2013, 05:48:29 pm »
Ooo. Could I use this for my Equation Program(I'm too lazy to make my own)? I will give you credit.

289
Casio Calculators / Re: Change the color of the menus and border
« on: January 09, 2013, 06:23:07 pm »
I got Insight and it's just a bunch of gibberish that I don't know how to navigate. How do I change the color (step by step keypresses)

I would like this too.

290
Other Calculators / Re: Equation
« on: January 06, 2013, 04:51:58 pm »
I noticed, i just continued with your joke, it looks helpful, the program :P
It is. Especially in class.

291
Other Calculators / Equation
« on: January 06, 2013, 02:35:42 pm »
Equation



http://www.omnimaga.org/index.php?action=downloads;sa=view;down=787

This is a TI-Basic program that when you type in the variables for certain math equations, it gives you the answer to the math problem. It includes several Algebra Equations including slope, Pythagorean Theorem, distance, midpoint, and quadratic. It also includes geometry equations too. Edit: I added more options to the quadratic. Conversion planned. You can also find the nth number of the Fibonacci sequence. I hope you enjoy...
Screenshots:


Download it here.

292
Other Calculators / Decide Part 1
« on: January 06, 2013, 02:35:42 pm »
Decide Part 1



http://www.omnimaga.org/index.php?action=downloads;sa=view;down=828

It's pretty BASIC. All you have to do is choose a menu option and when there is text or a picture, press enter. Based off of the game Choose by Tristan Sirrico/xXEpicxXXxFailXx. Look it up too. I hope you enjoy....


Download it here.

293
Humour and Jokes / Re: Weird/funny pictures thread
« on: January 06, 2013, 02:03:04 pm »
Lol!! who is the author?

The guy who originally blogged it is fontelitist.

294
Humour and Jokes / Re: Weird/funny pictures thread
« on: January 06, 2013, 01:32:48 pm »
I just saw this on Tumblr:

This was the caption:
Harry Potter and the Chamber of Calculus

Harry potter and the Prisoner of Algebra

Harry Potter and the Philosopher’s Theorem

Harry Potter and the Goblet of Analysis

Harry Potter and the Order of Operations

Harry Potter and the Half-Blood Statistician

Harry Potter and the Deathly Algorithms

295
Miscellaneous / Re: Random YouTube Videos
« on: January 05, 2013, 08:55:05 pm »
A little test I did:

296
Miscellaneous / Re: Fringe
« on: January 05, 2013, 12:30:10 am »
Me and my friend played around and shipped a bunch of different characters. They amused us for a little while. :P

297
Miscellaneous / Fringe
« on: January 04, 2013, 10:28:24 pm »
Anyone else a fan of Fringe on FOX? I love the show and can't wait for the next episode. Even though she is not in this season, Gene is my favorite character. :P

298
Did we ever decide how the setting should be(midevil, scifi, etc.)?

299
Miscellaneous / Re: My new internet speed
« on: January 04, 2013, 05:37:12 pm »
With this it seems slow.

300
TI-Nspire / Re: Duck hunt nspire port!
« on: January 04, 2013, 05:06:31 pm »
Here is a cleaner code.
Also, the reason(s) why it's not working the same on-calc is becuase the computer forces the refresh of the screen, but you have to call it yourself by calling [lua]platform.window:invalidate[/lua]
Also, since you want the game to be always running (the AI), call it in a timer. (See code)

I also made the duck images transparent (thanks to http://bwns.be/jim/sprite.html )

Quick note for the optimizations :   when you see stuff like    "a = (b>1) and 3 or 2" it's the same as : "if b>1 then a = 3 else a = 2 end"

And ... I recoded the AI (quickly)

Cleaner Code with properindentations, separations of events and functions, init code at the end.
Code: [Select]
platform.apilevel = "1.0"

-----------------------
------ Constants ------
-----------------------

inc = 5 -- image movement increment
bg_gap = 50 -- background gap in coord-- X


-----------------------
------   Events  ------
-----------------------

function on.paint(gc)
    -- Paint background
    gc:setColorRGB(0, 0, 0)
    gc:fillRect(0, 0, ww, wh)

    gc:drawImage(img_background, bg_gap, 0)
    if alive then
        gc:drawImage(img_duckAlive, dx, dy)
    else
        if dy + duck.h < 194 then
            gc:drawImage(img_duckDead, dx, dy)
        else
            gc:drawImage(img_dog, dx, dy-duck.h)
        end
    end

    gc:setColorRGB(255, 255, 255)
    gc:drawString(msg, 0, 0, "top")
end

function on.resize(width, height)
    cursor.set("translation")
    cursor.show()
    ww, wh = width, height
    platform.window:invalidate()
end

function on.mouseDown(x, y)
    if between(dx, x, dx + duck.w) and between(dy, y, dy + duck.h) then
        shot()
    else
        miss()
    end
    platform.window:invalidate()
end

function on.escapeKey()
    init()
    platform.window:invalidate()
end

function on.timer()
    AI()
    platform.window:invalidate()
end

-----------------------
------ Functions ------
-----------------------

function init()
    dx = 100
    dy = 50
    dirX = 1
    dirY = 1
    alive = true
    x = 0
    y = 0
    msg = ""
end

function between(a, x, b) -- Checks if "x" is between range [a,b]
    return (a <= x) and (x <= b)
end

function AI()
    if alive then
        dx = dx + dirX*inc
        dy = dy + dirY*inc
    elseif dy + duck.h < 194 then
        dy = dy + inc
    end
   
    if dx <= bg_gap then dirX = 1 end
    if dx >= ww-duck.w then dirX = -1 end
    if dy <= 0 then dirY = 1 end
    if dy >= 170-duck.h then dirY = -1 end
end

function shot()
    alive = false
    msg = "Shot !"
end

function miss()
    -- Determine what happens if you missed a shot
    msg = "Missed !"
end


-----------------------
------   Init:   ------
-----------------------

-- images --

img_dog = image.new(dogSRC)
img_duckAlive = image.new(duckAliveSRC)
img_duckDead = image.new(duckDeadSRC)
img_background = image.new(backSRC)

duck = {
    h = image.height(img_duckAlive), -- 30 px
    w = image.width(img_duckAlive) -- 37 px
}

init()
timer.start(0.05)

Is this the most recent code?

Pages: 1 ... 18 19 [20] 21 22 ... 39