Jump to content

  • Log In with Google      Sign In   
  • Create Account


0Circle0

Member Since 31 Jul 2011
Offline Last Active Mar 13 2014 11:47 PM

#5023365 Can someone link me to some tutorials?

Posted by 0Circle0 on 19 January 2013 - 08:06 PM

Animation is as easy as splitting the image into an array. Figure how to split the image and put each part into the same array and Animating is as easy as...

 

Image[15];
i++;
if (i > 14)
    i = 0;
Draw Image[i];

 

BOOM animated. Don't really need a tutorial on animation. Just need to know how to load the image properly. This is just sudo code

 

EDIT: Not sure if SDL has an easier way of doing it, I know Allegro does but that is irrelevant unless you use Allegro and SDL. As you can use both at the same time.




#5023355 Can someone link me to some tutorials?

Posted by 0Circle0 on 19 January 2013 - 07:14 PM

How do you expect to be able to draw the animation, The Screen, Scroll, Create menus, create controls after you learn how to make your sprite animated? And you can skip around the tutorials. If you don't understand how something works read the commented code that is all over the place on that site.

 

I barely know SDL and by reading the site I can tell what each line of code does just by the little comments lazyfoo placed. I am able to skip around the tutorial.

 

Learn how to create a blank screen first. Then you'll be able to learn how to load an image. Then learn to move it. Once you can move it learn to animate it. Skipping around tutorials has steps too.




#5023351 Target bounce away from wall

Posted by 0Circle0 on 19 January 2013 - 07:05 PM

If your enemy is less than the screen min or greater than the screen max you would reverse the speed of x and/or y.

 

xSpeed = 1;
ySpeed = 1;
If (target.x < screenMinX || target.x > screenMaxX)
    xSpeed = -xSpeed; //reverse
if(target.y < screenMinY || target.y > screenMaxX)
    ySpeed = -ySpeed; //reverse</pre>
target.x += xSpeed;
target.y += ySpeed;

 

you mean that?




#5021270 Losing interest in game development...

Posted by 0Circle0 on 13 January 2013 - 10:36 PM

This is normal. I could have said the same thing at one point. I still stick to my comfort zone. I switched from C/C++ to java only because of direct PNG support. and I couldn't for the life of me figure out how to load a png with c++.

 

I never learned 3d and cannot really do the math for it so I am stuck in 2d. OpenGL DX? Pft. Guy I been programming for fun for longer than you've been alive and I still don't know that junk.




#4903909 Looking for a good language/API for website game/app.

Posted by 0Circle0 on 18 January 2012 - 01:52 AM

I am going to have to say Java as well. Works very well and you do not need an IDE at all. I guess the same can be said for any language really. I compile all my java programs via a batch program and use the old school notepad.exe as my editor. *I just couldn't get any JAVA IDE working "correctly" (How I wanted) so decided not to even use one*

Though Notepad++ is great if you only want an editor and don't mind learning how to compile and sign your own jar files via a command line.


#4903902 Sprite Creator (Finished)

Posted by 0Circle0 on 18 January 2012 - 01:23 AM

Updated 1/18/2011
Added:
Combined the reloading either one or both Male and Female options to default into the same program.
Now when you click Save or Reload you can see that it has been clicked.
When dragging the mouse over options the last option is now correctly displayed in the preview window although this didn't affect the saved image.
A button to select if you want to reload both or just Male or Female options can now be selected.
Shrunk the size of the rar download by 3kb and the Jar file by a 3kb. Not a big change but a change non the less despite having added graphics.

No character options added or removed.


#4903523 spritesheet generation

Posted by 0Circle0 on 17 January 2012 - 12:37 AM

I like what Black-Rook posted. Very nice. Was going to post something else but that one is just amazing. I'll have to favorite that one.


#4903095 Sprite Creator (Finished)

Posted by 0Circle0 on 15 January 2012 - 07:03 PM

Released as is. No further updates will be done unless a major bug is found.


I may retract that statement. There are a few things I was going to add that never made the cut.

Changes I have made:
Reloading now only reloads the currect selected sex instead of resetting both. -Added to project

Changes I plan to make:
Save as bmp and create Allegro safe bitmap. 255,0,255 background.
Change colors via a pallete for each option.


#4902339 Sprite Creator (Finished)

Posted by 0Circle0 on 13 January 2012 - 08:03 AM

Will no longer be updating forum posts.
Please visit me on www.facebook.com/spritecreator3 for all questions and comments. Follow Sprite Creator 3 to receive content updates.

 

Requires Java 6+ found here http://www.oracle.com/technetwork/java/jav...oads/index.html This program will NOT run if you do not have Java 6+ installed. Java 7 is recommended.

Updated 12-02-2013 All links current.

Current Update:
Added a new Sprite Creator 3 XP version.

Enable double clicking of runnable JAR file:
If you have not set file associations for ".jar" file types then right click "SprCre.jar" select "open with", go to where Java JRE is installed (usually c:/Program files (x86)/Java/jre7/bin" for 64bit java or "c:/Program Files/Java/jre7/bin" for 32bit java.) Select javaw.exe (Must use javaw.exe NOT java.exe) and click ok. That should make the the jar runnable on double click. Or you can run SprCre3.bat. The path after "c:/Program Files/Java/" may appear different but just select the jre folder.

Did you find this program useful? Help me promote this applet by going to my facebook page and liking and commenting there on the wall. Would love to hear what people have to say.

Sprite Creator 3:
Facebook Page
Twitter

NOTE: For entertainment and my personal use. Feel free to repost this where ever you like. If you would like the Source Code you can email me at Jensen_305@yahoo.com.

Generation is saved in png format with transparency enabled. The files are Saved in the "Saved" folder ;)

 

zhc9.png

yovv.png

Special Thanks:
Axerax at RPGRevolution for the Sprite Creator 3 splash.
Holder at RPGRevolution.com for your beard images.
Famitsu

Sprite Creator 3 Download (adf.ly > Rapidgator)
Sprite Creator 3 Download (adf.ly > Mediafire)

If you would like me to add resources that you made to this Sprite Creator PM a zip, I prefer mediafire please, and I'll see what I can do. If you would like to create resources for the project so I can add them I can provide how the image layouts are.




#4852363 Cut down on memory usage

Posted by 0Circle0 on 22 August 2011 - 10:09 AM


GHZ is not a rate on how fast a PC is

It gives an approximate level, appropriate to the kind of granularity required for this.

This statement is so wrong it isn't even funny.


Keep down rating my comments

Happy to oblige!

Obvious abuse of power. Good job.


#4852357 How is the demo of my game?

Posted by 0Circle0 on 22 August 2011 - 09:57 AM

Don't send that grey rock right off the bat, it hits the ship near immediately. Game play after that really in not fast it is just that initial rock, once you dodge it things slow down a bit. Once you do die however the game doesn't end.

Didn't get far in but maybe some animations in the objects would help.


#4852349 Cut down on memory usage

Posted by 0Circle0 on 22 August 2011 - 09:33 AM

The 2D game more than likely will not use 1GB obviously, that isn't the issue. What is the issue is that Windows Vista alone uses that 1GB, the whole thing and then some. Leaving nothing left for anything else. Apparently you do not know how a computer works and how memory is allocated. GHZ is not a rate on how fast a PC is. A Pentium 4 overclocked to 5GHZ cannot beat my N260 at 1.6GHZ. Just because his processor says 2GHZ means nothing, it doesn't mean it can do much more then run the OS and Browser(the laptop is a budget laptop as well from 2006-2007). Windows Vista ALONE is using all the systems resources and anything run after the fact is using, assuming any is even available, virtual memory. Which is based off ram installed, so 1GB in this case which is stored on the HDD, 5400 RPM and a generous 33MB/s(probably a lot lower) HDD from late 2006-early 2007. Then it is read off that drive with an access time of over 15ms (easily higher given the drives age). Take into account that the Video(integrated) on that system is using 256MB of ram leaving 768MB ram for the OS and a 1GB of virtual memory, and the system OS (Vista) requires 1GB(Minimum usually double that) alone, the OS is already loading itself into virtual memory, making everything from then on out to load from a slow HDD.

By the way: N260 is a processor and when you said you didn't even know what dual core was, I face palmed. You probably should rethink talking about speeds of a computer and what it can and cannot do with a computer tech when you apparently do not know how one works to begin with. Take yourself over to a computer forum or read wiki. I recommend ExtremeOverclocking(EOCF or anything alike) a place I have been posting my computers that I have built since before that laptop even hit mainstream.

Keep down rating my comments :)

Circular logic, now that is funny. Here is an example of what actual circular logic looks like.
You don't know what you're talking about because you don't know what you're talking about.

This isn't even about the OP any more, but rather an inability for someone to grasp simple concepts about what a computer can and cannot do. I am done here, no reason to teach an old dog new tricks when the tricks are too difficult for the dog they are being taught to.


#4852202 Cut down on memory usage

Posted by 0Circle0 on 22 August 2011 - 03:49 AM

on my computer it runs fine, its just that one person who has problems.


Doesn't matter if the computer is or is not outdated. This single line, is evidence that they cannot run it. By the usage of "just" which indicates more than one person was involved in testing should bring the conclusion that their hardware is not capable of running the program. Also indicated by "just" is that others are not having the same problem.

Is the computer outdated by standards of today? Yes(Which makes my statement not an opinion, but rather a observation of the standards of today). Is it outdated in the standards of running a 2D game made with basic SDL? No. Could the computer have other problems that would interrupt the games ability to effectively run? Possible, but inconclusive as no relevant data can be ascertained about the said computer. Does the game run fine for every other person who tried to run it? Yes.

Should the OP have kept the password the same on the source so that one of us could possibly look through the code instead of having 2 people speculate on what could be the cause instead of actually finding the real cause? Yes. Will they allow the code to be looked over again? Maybe. Is this discussion now pointless without further data on the subject? Yes.

Btw, the OP may very well indeed be doing something wrong. I'll concede to that; however there may be more to it.

High Resource can be defined as an excessive or large amount of memory being used by an application that exceeds the standard.
Standard can be defined the average expected usage of a given program.

Average 2D games will not exceed said computers system specs, but the op did say:

its actually not that simple when i think of it...




#4852098 Cut down on memory usage

Posted by 0Circle0 on 21 August 2011 - 08:37 PM


Their computer stats are quite dated. 1gb or ram, on board video(shared ram with system) and a Celeron 550. And then Vista installed on it to boot. Sounds like a netbook, and a very old one at that. 1gb of ram? I wouldn't expect they would be able to run anything, after vista is loaded, effectively even assuming a fresh install and a fully optimized OS.

It should be easily capable of running a SDL game.


They keyword is "should", however if everyone else who uses the program runs it fine and then it is tested against a system with very limited resources and performs slowly then I would have to say the system is dated or unmaintained.

"Should" is a relative term, which implies that on new hardware, fresh vista install, and fully updated drivers as well as optimized OS then sure the Celeron 550 and 1GB of ram "should" run SDL games easily; however this hardware isn't new, the OS isn't new, and I am willing to bet the OS isn't frequently re-installed(or maintained) to keep it running as fast as possible, as the typical computer user never even re-installs(or even knows how to maintain a computer) any OS when their computer gets slow, they just assume their computer is just getting old and accepts the sluggish behavior.

"Should" and "Will" are completely different terms and "should" declares the statement as an opinion. Opinions(as the word "Should" implies) on if a specified hardware can or cannot run a specified application needs to be kept to real world testing rather than a guess with out any testing. My netbook with 2GB of ram and a much faster N260(Dual Core) will bog down against a high resource SDL or Allegro at times, and the netbook is frequently kept in prime condition and well maintained.

You're talking about a Celeron 550 (Single Core Processor released in late '06) with 1GB system ram that is shared with the video(which can take anywhere from 32MB-128 MB (Mine takes 128 as I use the same integrated video) depending on driver support), and then make the assumption that the said system with minimum system requirement for just running the OS (Windows Vista in this case) will then be able to effectively run anything else. This just isn't the case, as the test showed.

Is that to say there isn't any problems with the code, no. There may be many problems; however there may be none. No room for opinionated responses that completely contradict a real world test that was conducted against the program the OP mentioned to the hardware they also mentioned.


#4851916 Cut down on memory usage

Posted by 0Circle0 on 21 August 2011 - 09:16 AM

Their computer stats are quite dated. 1gb or ram, on board video(shared ram with system) and a Celeron 550. And then Vista installed on it to boot. Sounds like a netbook, and a very old one at that. 1gb of ram? I wouldn't expect they would be able to run anything, after vista is loaded, effectively even assuming a fresh install and a fully optimized OS.




PARTNERS