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

Pages: 1 ... 19 20 [21] 22
301
Lua / Re: [Nspire] Pokémon Fuchsia -- An experiment
« on: June 06, 2011, 05:41:24 pm »
I'm working on two projects at the moment and won't have the time to concentrate on this one specifically at the moment. The code started getting slightly messy and so I decided to write a library for tile-based games (with animation, events, interrupts (or interactions, whatever they're called) and other things practical in a game), and that's what I'm doing at the moment. I'm also writing a copter-like game. I got exams coming up also, can't ignore that, so don't except anything just yet.

302
Humour and Jokes / Re: xkcd comics I agree with
« on: June 02, 2011, 06:05:48 am »
Spoiler For Spoiler:
It might be only me, but I find nearly all xkcd comics surprisingly unfunny.

303
Lua / Re: [Nspire] Pokémon Fuchsia -- An experiment
« on: June 01, 2011, 03:14:48 pm »
Ash can now somewhat interact with objects. A sign in this case.


Looks very nice. Why I haven't got a Nspire? o/
Because you aren't in a school that forces you to buy one. ;_;

304
Lua / Re: [Nspire] Pokémon Fuchsia -- An experiment
« on: June 01, 2011, 11:26:38 am »
Okay now Ash looks like he's actually moving, rather than just magically teleporting from one square to the other. Yeah, basic animation is working now (after hours I finally understood how invalidate() worked, forgot to check the wiki). Also I added some more sprites and cleaned up and structured the code better. There's not much to try, but at least you can move Ash around and enjoy the wonderful scenery: http://webgel.net/bf/fuschia_test.tns (best tried on the actual calculator though, it's too fast on the computer) Edit: it is still quite slow (but playable) at the moment, but there are still things I need to optimize, it'll be done later.
I'll now work on some basic interaction with objects and other stuff.


It's Fuchsia because I didn't even know what kind of color fuchsia was, and also because it's such a manly color. (I don't even know how you pronounce "fuchsia")
It's pronounced similar to "few-shaw," but without the 'w' in shaw.  The color fuchsia is a purple color, similar to these: (Note how many people accidentally misspell fuchsia.)
Spoiler For Spoiler:
Thank you good sir. o/

305
Lua / Re: [Nspire] Pokémon Fuchsia -- An experiment
« on: May 31, 2011, 03:42:42 pm »
Are you planning to eventually release the source code? It would be nice for people who wants a tilemapper :D
Sure! This is what I have at the moment: http://pastebin.com/phnSAjKH (there's not much to see at the moment, I'll post the code again once I have cleaned it up and have some more interesting things. Edit: also there are things I still need to optimize, for example now it will redraw all the objects on the screen at every call at on.paint(), etc.)

Edit: new cleaned up and more consistent code: http://pastebin.com/0HPsh4vy

306
Lua / Re: [Nspire] Pokémon Fuchsia -- An experiment
« on: May 31, 2011, 02:43:29 pm »
That's why I told you ;)

It's there : http://wiki.inspired-lua.org/platform.window:invalidate
This is so great. Just tried it out, Ash now moves faster than light (well you get the point). Having a lot of stuff on the screen might not be an obstacle after all!

307
Lua / Re: [Nspire] Pokémon Fuchsia -- An experiment
« on: May 31, 2011, 02:32:27 pm »
By the way, when we documented the lua functions when we discovered them, we didn't know platform.window:invalidate() would accept arguemtns that specify *what part of the screen" you want to refresh.
Goddamn, are you serious?! :o That's great news! That could fix many (if not all) of the framerate issues! I have to try that out, thanks for telling me that! :D That will help a lot.

308
Lua / Re: [Nspire] Pokémon Fuchsia -- An experiment
« on: May 31, 2011, 02:18:43 pm »
That looks nice. If I was you however, I would start with a small Pokémon demo with only like 20 Pokémons maybe to not start too big. That's unless you have a lot of project and programming experience, though. I guess maybe there will be no smooth scrolling, right?

Fortunately Lua speed is better than nothing at least. It seems we can do pretty awesome stuff in it and the slow speed might encourage people to try finding new optimizing tricks in the process.
What I really wanted to try here wasn't that much the Pokémon part, but the tile-based-game part. I'm not even thinking about the Pokémons and fights yet, just about how it would all work and checking the performance and stuff like that. When it comes to the slow speed, the problem is that if the most primitive functions are already slow, it'll be hard to optimize that.
Edit: about scrolling, well I think that kind of smooth scrolling you have on Pokémon would be hard and/or laggy. Insted what could be possible is the kind of Zelda-like "fake" scrolling (as on the NES version). But anyway, the screen is quite big and quite many sprites fit on it, so I don't think it will be a huge problem.

309
Lua / Re: [Nspire] Pokémon Fuchsia -- An experiment
« on: May 31, 2011, 02:14:47 pm »
that looks great Hoffa!  I heard that graphics rendering for Lua is a slow stack-based method (For NLua, at least) -- what is the framerate right now?
I can't really say as there is no real animation. It's also event-based so unless I make some sort of benchmarking thing with continuous animation it'll be hard to give an accurate framerate. But I'd say about 10-15 FPS, but it can be anything really.

310
Lua / [Nspire] Pokémon Fuchsia -- An experiment
« on: May 31, 2011, 12:11:08 pm »
Hey,

I yesterday started experimenting with Lua to see how well it handled graphics and other game-related stuff. I wrote on the other thread about my results. Well it seems like the calculator is not fast enough to handle games where fluidity in the gameplay is an important factor (i.e. many platformers). It's not that the calculator itself is slow, it's just the way Lua has been implemented on it that makes it inefficient for such games (Edit: invalidate() is able to update the screen partially, so all that written before might be wrong). I then decided playing around with Pokémon-like games, where speed is not the most important thing. And that's basically where I'm at, at the moment. For now with what I have done it seems to be working well. This also helps me to test Lua in a "real-life situation", with title screens and everything that a game usually has, in order to see what the difficulty of making such a game is and whatnot.

Everybody loves screenshots, so I give you screenshots:



It's not much (at least Ash can move and the basic tile "engine" is done), and I'm only in the experimenting/testing phase right now. I still have to see how to actually save an eventual game (it might be possible to do something with var.store() and its friends), if it is even possible, and many other things to see if it's even worth trying to make the game.

Spoiler For Spoiler:
It's Fuchsia because I didn't even know what kind of color fuchsia was, and also because it's such a manly color. (I don't even know how you pronounce "fuchsia")

That's it for now. :)

PS: Also notice the small black on the second screenshot at the bottom. By "removing" 4 pixels (which is the same width as the upper bar, so it's symmetrical and doesn't look ugly) I have a resolution of 318*208, which is a lot better (especially in a tile-based game) than normally.

311
[FR] Hors-Sujet / Re: La taille de la communauté française
« on: May 30, 2011, 06:52:52 pm »
Je parle français, ouais (enfin juste à l’école). Par contre je suis pas belge, et encore moins francophone. J'habite depuis 5 ans ici (parents qui bossent au parlement), mais je suis Finlandais. Suomalaisille terveisiä! o/

312

I made a very simple tile-based platformer "game" to check out how it runs. With that many tiles, it runs reasonably well. I still got some optimization tricks up my sleeve.

Edit:
I also tried with only black and white sprites (i.e. more transparency), and it does run faster and shouldn't look too ugly.

Edit2:

With more stuff on the screen (and Ash gone), the so-called game is still playable, but nothing great. The problem with platformers is that the whole screen has to be updated after every movement, and fluid movement is somewhat important in those games. I'll now play around with fullscreen Pokemon-like games, where the FPS is not as important (also movement is easier, no acceleration and other stuff).

313
It's usually slow with colored images drawn on the whole screen (i.e. all the gc:drawImage() functions at the end draw on every pixel on the screen). A Mario-like platformer that utilizes every single pixel of the screen might not be very playable (Edit: unless there are a lot of transparent pixels). Those are the current results of years and years of rigorous scientific experiments on the Nspire using Lua.

314
I started playing around with sprites to see how well the Nspire handles tile-based games and games in general. I'll keep the notes updated on the first page (at the bottom of my first message). Right now it seems like the Nspire is very slow with a lot of stuff on the screen.

315
I changed the host, it should be a lot faster and now all kinds of image formats are supported. :)

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