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.


Topics - hellninjas

Pages: [1] 2 3 4
1
TI-BASIC / xLIB-BASIC ERR:DIM
« on: September 15, 2013, 05:20:17 pm »
So I have this current problem while playing with tilemaps.
Code: [Select]
:ClrDraw
:8→X
:8→Y
:[[0,0,0,0,0,0,0,0,0,0,0,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,1,1,1,1,1,1,1,1,1,1,0][0,0,0,0,0,0,0,0,0,0,0,0]]→[A]
:
:0→K
:Repeat K=45

:¦ real(2,0,0,0,12,8,0,12,0,8,1,0,8,0
:¦ real(1,X,Y,1,8,1,2,0,0,0,1

:¦ X→S:Y→T

:¦ getKey→K
:¦ If K=24
:¦ X-8→X
:¦ If K=25
:¦ Y-8→Y
:¦ If K=26
:¦ X+8→X
:¦ If K=34
:¦ Y+8→Y

:¦ If [A](X,Y)=0:Then
:¦ ¦ S→X:T→Y
:¦ End
:
:End

And it seems to redirect me to the beginning line of code:
Code: [Select]
:8→X
:8→Y
://Beginning of Matrix : It directs me here.

I'm not sure what it is that's wrong with my code, and i've tried changing:
Code: [Select]
:¦ If [A](X,Y)=0:Then
:¦ ¦ S→X:T→Y
:¦ End

To:

Code: [Select]
:¦ If [A](X/8,Y/8)=0:Then
:¦ ¦ S→X:T→Y
:¦ End

But that seems to prevent me from going to most of the places on the tile-map.
So how would I get this to work..?

EDIT: Sorry, this is using xLIB. (Forgot to mention.)

2
Computer Programming / SFML and Dev-C++
« on: May 28, 2013, 09:27:29 pm »
Trying to use the Linker, and i'm sure I could get the rest done.
But I got four errors with this code.
Code: [Select]
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <iostream>
using namespace std;
using namespace sf;

int main() {
    Window window(VideoMode(800, 600), "My Window");
    cin.ignore();
    cin.get();
    return 0;
}

And the errors are(Linker errors of course.)
  [Linker error] undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale'
  [Linker error] undefined reference to `_imp___ZN2sf9VideoModeC1Ejjj'
  [Linker error] undefined reference to `_imp___ZN2sf6WindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE'
  [Linker error] undefined reference to `sf::Window::~Window()'
  [Linker error] undefined reference to `sf::Window::~Window()'
  ld returned 1 exit status

3
Computer Projects and Ideas / Hellninjas Stuff n' Junk
« on: April 06, 2013, 02:06:15 am »
I'm going to drop a bunch of my "Projects" and hopefully soon enough, games, into this thread.
Mostly just a bunch of tests though, only for windows, sorry.
Testing3: String testing.
Testing4: Movement testing.

4
Computer Programming / Keypresses in C++
« on: March 25, 2013, 08:26:52 pm »
I've read up a bit through google.
getch(); from the <conio.h> seems to have a lot of hits, yet i'm not sure how to use it :c
Or are there other ways?
I'd mostly like to pause the program and wait for a keystroke, then check if the user pressed "y" or "n".

5
Lua / NSpire Lua
« on: January 18, 2013, 12:35:19 pm »
I'd like to learn more about this as well, so I can actually get some projects out there! :3
Anyways, know a link where I could get started?

EDIT: I meant Lua, I typed Basic, derp.

6
TI-BASIC / Picking back up my 84+SE
« on: January 17, 2013, 01:42:09 am »
I'm playing with Basic again, but want to go a little further into it.
I'm not to smart when it comes to these things, you'll know that from how many questions I ask xD
But i'd like to know how I could do things like tile-mapping, turning a matrix into some sort of inventory, actually USING the graph screen :P
If there's tutorials for all this, or if you don't mind posting some code with an explanation, i'd be grateful ^_^.
I've really only made menu based games, without using Menu(, but I know I could do something better :I

7
Music Showcase / Hellninjas's Music
« on: August 22, 2012, 11:47:31 pm »
I'm not a pro yet, but hopefully with practice I will be ^^.
These musics are mine and composed with completely random genre's.
Enjoy :3
I guess I'll begin with vol1 then. (Download here) http://www.mediafire.com/?uo99nlza4xbrpj3
-Another
-Tar
-Pinao
-Tech Mech

8
Computer Programming / [LOVE]Help with spawning boxes
« on: July 01, 2012, 08:24:58 pm »
Boxes don't spawn inside each other (They Spawn inside of each other, I need that to NOT happen)
Any suggestions on what I can do??

Later on im hoping to make it where:
1. all boxes are highlighted on mouse-over
2. you can drag your mouse around and create boxes
3. boxes don't spawn inside of each other (Working on)
4. selecting specific boxes and tell them where to move
5. animation for the movement of the boxes and them colliding with each other
6. boxes having specific properties
7. sprites instead of boxes xD.

Download is below!
Current Version 2

9
Lua / Taking my hand at Lua
« on: June 08, 2012, 09:47:12 am »
I started Lua :D and while going through a tutorial I ran into an error in my code..
Code: [Select]

    answer = "" --This is the error, i'm getting "unexpected symbol near 'char(226)" D:
    

    function on.charIn(char)

        answer = answer..char

        var.store("line3",answer)

    -- Refresh the screen after each key is pressed.

        platform.window:invalidate()

    end

    function on.backspaceKey()

        answer = answer:usub(0,-2)

        var.store("line3",answer)

        platform.window:invalidate()

    end
Also, how would I code in a menu that the user could select stuff by pushing the normal arrow keys?
EDIT: I am using ocLua right now, maybe I'll get notepad++ later :P

10
Axe / Never got around to asking :P
« on: May 31, 2012, 11:15:00 am »
How would I use the pxl-test( command to prevent my character from falling through pixels, with acceleration of course, x256.
Or is there another, possibly easy, way to do this?

11
General Calculator Help / Ti-84+SE Just messed up entire...
« on: May 17, 2012, 07:20:00 pm »
My 84+SE has shut off...
It wont come back on... I've tried CLEAR+ON and other solutions but nothing works...
Ti-Connect detects and connects to the calc, but cannot retrieve the data...
I've changed batteries to BRAND NEW ones, but still, won't turn on D:

I hope there is a way to fix it D:

12
Other Calculators / My new 84+SE!!!
« on: May 14, 2012, 05:25:57 pm »
I just got my new 84+SE in the mail!! WOOT!
(It was weirdly placed in my mailbox...)
The video MAY still being processed...

13
Other Calculators / Nspire SlowDown Help
« on: May 10, 2012, 09:17:06 pm »
I'm posting this for Yeong, apparently HBjr. needs some help ;D

He recently got back his nspire(84 plus keypad) and it runs extreemly slow. Do you know what might be wrong?

14
Miscellaneous / Some bad news
« on: May 10, 2012, 11:25:02 am »
My 83+SE was stolen an I have no idea where it could have gone.

I'm bugging my dad to get me an 84+SE but he keeps saying that my nspire CX should be enough for me to program whatever I could on the 83+SE.

I'm going to try and stick with wabbitemu, but that means I can only program when on the computer.

D:

15
Axe / Correction Code
« on: May 09, 2012, 11:23:51 am »
It's me again, still trying to figure out bullets. I received some help form Derf, and it was very helpful, I feel that I am very close to figuring this out!
But I have a problem, I can't figure out what's wrong with this code, as it does not work for me...
Below is the code I received from Derf, if you could help me, it would be much appreciated :D
Code: [Select]
0->G
repeat getkey(15)
DispgraphClrdraw
For(G,1,I)               //Repeat code for every bullet
Pxl-Off{L1+(G*4)},{L1+(G*4)+1})      //Turn display for bullet off

If {L1+(G*4)+2}=1:{L1+(G*4)+1}-1->{L1+(G*4)+1}               //Depending on what direction bullet has, move it that way
End
If {L1+(G*4)+2}=2:{L1+(G*4)}+1->{L1+(G*4)}
End
If {L1+(G*4)+2}=3:{L1+(G*4)+1}+1->{L‚+(G*4)+1}
End
If {L1+(G*4)+2}=4:{L1+(G*4)}-1->{L1+(G*4)}
End:End

For(G,1,I)                                                   //Repeat code for every bullet
If pxl-Test({L1+(G*4)},{L1+(G*4)+1})            //If hits a lit up pixel (wall), move coordinates to 0,0 (storage)
0->{L1+(G*4)}->{L1+(G*4)+1}
Else
Pxl-On({L1+(G*4)},{L1+(G*4)+1})              //Otherwise, turn the bullet back on
End

I'm not entirely sure why this isn't working...

Pages: [1] 2 3 4