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 - Jonius7

Pages: 1 ... 6 7 [8] 9 10 ... 129
106
Miscellaneous / Re: So what is everyone up to?
« on: July 29, 2013, 02:03:37 am »
Uh, did you post the 'right' reply in the wrong topic?

107
Art / Re: Post your random sprites!
« on: July 29, 2013, 01:22:11 am »
Actually yeah, somewhere on the first page, the intention of the topic changed, I think yunhua98 changed the topic title from, "some old tiles and sprites", which is much more clear as coming from a specific person or group of people, as not everyone has 'old' tile sprites, to "some random sprites", which is much more general.
View here:
http://ourl.ca/6208;msg=46217

108
Lua / Re: Lua Q&A
« on: July 29, 2013, 01:18:44 am »
Actually, looking at it again,  I think I get it now more,

when you do foo = Foo(), that's similar to something like ball = Class() right?
It clicked for me when you said that Foo() was the class, and foo became the object.

About creating new instances with Foo():bar(42),
does that have any other disadvantages, such as some sort of memory leak?

109
Miscellaneous / Re: So what is everyone up to?
« on: July 29, 2013, 01:14:12 am »
Also, a few weeks ago I was concentrating on playing the games in the arcade. I had several possible game targets, and I managed to get gold trophies for them :). A few silvers and bronzes as well. Now I have 6 gold trophies, which I think is quite a lot!

110
Miscellaneous / Re: So what is everyone up to?
« on: July 28, 2013, 10:47:03 pm »
Taking out my boat on a semi-daily basis.
Working on a program to keep track of computer lab reservations to be used by teachers in my school.
Collaborating with pimathbraniac on secret project :P

Marchin' Band

secret project with epic7

prelude #2

Cmon guys, I'm in on this as well!
I'm doing prelude #3.

The secret project isn't the prelude stuff :P

Edit:

Epic7 is the project calc-related or music-related?

Also utz nice to see you got a 86 :D

It is neither...

Yeah, I guess the order of words in posts had not just me confused :O
Btw, I have a secret project of my own, which is not related to this set of preludes :)

111
Progress! I can play the first 2 pages (out of 4) of the third prelude, but at a slow pace of course. I am currently trying to learn the last 2 pages (which will be more complex). Then it's a matter of putting it together, and increasing the playing speed (though the speed recommended on the score I believe is a little too fast to really enjoy the music)

112
Lua / Re: Lua Q&A
« on: July 28, 2013, 08:09:20 pm »
Code: [Select]
foo = Foo()
Is this really needed?
If you're asking this question, you may not know that Lua is case sensitive.
Here, Foo is the class (or the "template to copy") and foo is the new object (or an "instance of this class").
Foo() is equivalent to "new Foo()" in some other POO languages.
Foo() calls Foo:init().

[/quote]

I am aware that Lua is case sensitive, but can Foo() just be used directly in conjunction with . and :

eg:
Code: [Select]
Foo():bar(42)Actually I'm not sure that looks valid...

@Jim Bauwens: I think I'm starting to get the interaction between : and . now.

113
Lua / Re: Lua Q&A
« on: July 26, 2013, 12:43:42 am »
Code: [Select]
Foo = class()
function Foo:init()
  self.i = 69
end
function Foo:bar(i)
  print(i, self.i)
  self.i = i
end
foo = Foo()
foo:bar(42) -- calls Foo.bar(foo, 42) ; prints 42 69
foo:bar(42) -- prints 42 42
print(Foo.i)  -- nil
Foo:bar(42) -- calls Foo.bar(Foo, 42) ; prints 42 nil
print(Foo.i) -- prints 42
This is too confusing. All the cross-referencing and assigning a var to another var, then using them in combination is obscuring the meaning for me. I rarely like to do this in my own programming.
Code: [Select]
foo = Foo()
Is this really needed?

Code: [Select]
foo:bar(42) == Foo():bar(42) -- that makes some sense now, does it call upon Foo() first, then Foo:bar(i) ? doesn't seem right
foo:bar(42) -- so the second time, because of self.i = i from the first time around, self.i == i
print(Foo.i) -- why is this nil? Is it because Foo:bar(i) took over the 'control' of self.i so Foo:init() doesn't control it anymore
Foo:bar(42)
print(Foo.i)

Now, you lost me.




EDIT:
Q2: What does . refer to? From what I gather it would mean it would add it to a list/table so that if Coyote was called up, you'd get Coyote == {"x"==x, "y"==y, "tiles"=={} etc...}. Is this right?
Basic : classes in Lua are reprensented as tables.
"." let you access to one element (defined of not) of a table. In Lua tables are associatives using all sort of hash key (you can use functions or tables as hash key). In general you access an element using its key with [ and ] such as :
Code: [Select]
t = {foo=bar1, ["foo with spaces"]=bar2}
t["foo"] -- bar1
t["foo with spaces"] -- bar2
t.foo -- bar1
As you can see, since "foo" is a valid identifier, it can be used with the "." convention.
What do you mean by a valid identifier? Does that mean with no spaces? Or does it cover something else as well?

114
Art / Re: Post your random sprites!
« on: July 24, 2013, 09:52:03 pm »
Here are some random sprites, which may not become so random, that are part of my new (currently unannounced) project.
Image names have been obfuscated for the time being, but you could probably guess what they are :)


You should maybe make a new topic for them, though, since this topic was for my own creations in the first place :P. It might start a chain  reaction otherwise. >.<

Also in case somebody wanted to make an xLIB 84C demo one day, I was bored and made this GIF using the palette that tr1p1ea posted (I just shrank it down). Of course with xLIB you are stuck with 160x120, though, so you might have to manually set 320x240 mode then use scanline mode to superpose two set of sprites to generate this (with one set being down 1 pixel). That's assuming, of course, that scanline support will come in the final version.
Oh sorry about that.
Also, that is some nice animations.

115
Art / Re: Post your random sprites!
« on: July 22, 2013, 10:01:18 pm »
Here are some random sprites, which may not become so random, that are part of my new (currently unannounced) project.
Image names have been obfuscated for the time being, but you could probably guess what they are :)


116
Lua / Re: Lua Q&A
« on: July 22, 2013, 09:25:44 pm »
I had a response to this, but I lost it when I reloaded the page.
One thing: no wonder the class syntax is screwing me over. I'll have to try and slowly understand every line...
Code: [Select]
Foo = class()
function Foo:init()
  self.i = 69
end
function Foo:bar(i)
  print(i, self.i)
  self.i = i
end
foo = Foo()
foo:bar(42) -- calls Foo.bar(foo, 42) ; prints 42 69
foo:bar(42) -- prints 42 42
print(Foo.i)  -- nil
Foo:bar(42) -- calls Foo:bar(Foo, 42) ; prints 42 nil
print(Foo.i) -- prints 42

117
OmnomIRC Development / Re: List of bots authorized on #omnimaga
« on: July 21, 2013, 09:42:17 pm »
There is a haroldbot which I have seen harold use several times on IRC. It does some sort of integer calculations.
Also nice list! I like the look of it.

118
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: July 21, 2013, 08:58:54 pm »
It's a little awkward controlling on the emulator, but here are the buttons to control the block placement/breaking with a touchpad, which is moved like a mouse pointer.
On a clickpad these do not work at all, since the directional movement and the 4 arrow keys are together on a real clickpad.

:D :D :D Post number 1800! :D :D :D

It's been a long while since my post count crossed into the next 100s of posts

119
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: July 21, 2013, 06:50:06 am »
I worked it out. Emulating on a CX, the touchpad was enabled somewhat awkwardly with the diagonal keys, which are not marked.
I've had limited experience with an actual touchpad but I remember it would be similar to a laptop touchpad, on top of the arrow keys. How's the user experience though? Imagining it sounds like it might take a bit getting used to have good control.

On a clickpad, emulating, I can confirm it does not work. On a physical clickpad I would think some similar result.
I really want a CX now...

120
General Calculator Help / Re: Help Needed with NSpire CM and nLaunch
« on: July 21, 2013, 06:43:32 am »
the further bricking is not due to NLaunch, I hope?
And does NLaunch actually unbrick the calculator or just provide the means to launch the boot files for os?

Pages: 1 ... 6 7 [8] 9 10 ... 129