Author Topic: Game development topic  (Read 4322 times)

Terrible idea. Sounds like something that some meme-obsessed 10 year old came up with.
Not getting pissy here, but is it a terrible idea because you think I'm taking sides with 4Chan?
Because I think both websites suck richard.

Extrude's being a bum again, ignore it while you can.


lordician i love you for making this.

my contribution to this topic.


So let us talk about how that stuff up there works.

The above thing shown consists of three images:




And yes, that is their native resolution. They're scaled to the window's size when the image is loaded / rescaled when the window resolution changes.

Why are the images so small? Because I wanted awesome looking pixel-y stuff, that's why.
The clouds are very condensed in that image because when stretched out, they look nice.

So, how is the scrolling effect achieved? With mathematics of course!

Code: [Select]
void Map::doSkyParallax()
{
backgroundParallax.SetPosition(backgroundParallax.GetPosition().x - parallaxFactor,
backgroundParallax.GetPosition().y);

//if the parallax image goes far enough back it resets (based on its negative size width (because its scrolling left) plus screen width)
if(backgroundParallax.GetPosition().x <= -int(backgroundParallax_IMG.GetWidth()) * backgroundParallax.GetScale().x + window->GetWidth())
{
backgroundParallax.SetPosition(0, 0);
}
}

In plain english, the above code (that is meant to be run each loop) constantly moves the cloud image to the left, off the screen at a certain speed. At the same time, if the image reaches its end (checked when the image's right side is lined up with the screen's right side) the image reset's back to its starting place, ready to loop again.
« Last Edit: September 23, 2012, 06:55:20 PM by Kaphonaits² »

Been working on the Sprites for 4v9;



Idle 1 and 2   Run1   Run2   Run3  Run4*  Idle with Arm Launcher.

I made a neat little video to show off the Run cycle, but WMM forgeted up the colors (Thanks stuffbrains).
Link.

How would I go about scripting this into FlashDevelop using Flixel? Anyone suggest any good tutorials?
*I ended up not using Run4, as it just slowed down the cycle.

hey before this thread drops out of existence

i got sdl working finally, or at least i'm managing to complete the tutorials without too much hassle.
then i found a bajillion YouTube instructional videos, and i nearly slapped my own head off my shoulders.
theres a lot you can make with sdl, hoorah


http://lazyfoo.net/SDL_tutorials/index.php
that's what im using

oh and if anyone can help me, ttf isnt working, all my stuff keeps returning 1, so either
a. initializing failed
b. images did not load properly
c. sdl_flip didn't do whatever it was supposed to

i think its b but i dont know gah

actually
d. i didnt download the right set of ttf files
e. i didnt put the ttf files in the right places.


it says that sdl_ttf was put under the zlib license
and i remember, when i tried copying files, the sdl_image and the sdl_ttf zlib files got screwed up

lazyfoo hasn't updated code::blocks tutorial for truetype fonts since '10
fuuuu

no i looked on the forums for sdl (who knew there was one right?) and i found that in the newest sdl TTF_RenderText_Solid() no longer works because of something stupid
lazyfoo uses ttf for like everything at a certain point

i hate everything


I DIDNT PUT THE EXAMPLE .TTF FILE WITH THE REST OF MY PROJECT SO IT DIDNT SEE IT
OH MY GOD I AM AN IDIOT
« Last Edit: September 25, 2012, 08:43:43 PM by .:FancyPants:. »

and you are using JavaScript to develop a game how
there's a javascript framework called KineticJS that allows you to create games in javascript and in browsers.

even then it's very possible without it

what about for the entire all of us who don't ever use javascript?

edit: i have some old projects tucked away. i'll upload them perhaps.

what about for the entire all of us who don't ever use javascript?

Then disregard what he said?

what about for the entire all of us who don't ever use javascript?
i don't see how this is relevant to what i said

Then disregard what he said?
but what if we want to play it without using javascript?

compatibilityfreak.jpg