Search found 1052 matches

by Ginto8
Tue May 22, 2012 7:33 pm
Forum: Programming Discussion
Topic: C++ to C
Replies: 16
Views: 3722

Re: C++ to C

Would YOU personally benefit from learning C? Probably not. But there are many people out there who honestly would. I work with the C language every day at work. I interface low-level C drivers for various chips with our C++-based embedded OS. It takes extensive knowledge of both languages and both...
by Ginto8
Wed May 16, 2012 10:18 am
Forum: Programming Discussion
Topic: OpenGL 3D + 2D [SOLVED]
Replies: 6
Views: 2003

Re: OpenGL 3D + 2D [SOLVED]

It's a pretty simple process, actually; all GL matrix operations act on the currently selected matrix. In your original 3d code: glPushMatrix(); // pushes to the current matrix stack. Projection? ModelView? Who knows? glLoadIdentity(); // loads identity, who knows which matrix it acts on? glEnable(G...
by Ginto8
Sat May 05, 2012 10:19 am
Forum: Programming Discussion
Topic: BlitzMax Toolkit Stupid Error --HELP!
Replies: 2
Views: 840

Re: BlitzMax Toolkit Stupid Error --HELP!

I don't know BlitzMax, but every half-decent compiler ever will tell you which line the error occurs on. If you can show us what line(s) produce that error, we'll be much better off trying to help you. In another language, I'd say you messed up what access level the member has, but a quick google se...
by Ginto8
Sat May 05, 2012 8:21 am
Forum: Programming Discussion
Topic: Prime Numbers (A small web app)
Replies: 7
Views: 1123

Re: Prime Numbers (A small web app)

It might be more interesting to also have a list of all primes. You could have it update as it scrolls by using the Sieve of Eratosthenes algorithm or something similar. I also think a lot of calculation here could be done client-side, since checking for prime-ness is not a terribly costly operation...
by Ginto8
Thu May 03, 2012 7:59 pm
Forum: Programming Discussion
Topic: SDL_Mixer NOT WORKING??
Replies: 10
Views: 1520

Re: SDL_Mixer NOT WORKING??

If you copied the same exact source, recompiled it, and it didn't work, it's almost definitely a linkage error. Are the .dll's in the correct place for runtime?
by Ginto8
Wed Apr 18, 2012 10:56 pm
Forum: Programming Discussion
Topic: Java vs. C++, UI-heavy programs
Replies: 29
Views: 6980

Re: Java vs. C++, UI-heavy programs

I have used a lot of java over the past year or so (even more than C++), and I cannot honestly recommend it (at least on the desktop; android is a different story). Swing is clunky and annoying, and especially with custom graphics (ie. the kind you'd use swing's Graphics class for instead of its pre...
by Ginto8
Mon Apr 09, 2012 6:51 pm
Forum: Game Development
Topic: increase performance with SDL
Replies: 9
Views: 2658

Re: increase performance with SDL

Some versions of .bmp have an optional alpha channel, not sure if you can use it with SDL. SDL can do alpha blending, but it's very slow about it. This is primarily because SDL cannot take advantage of optimized array-copying techniques (memcpy is pretty good), and has to do extra processing for ev...
by Ginto8
Mon Apr 02, 2012 3:52 pm
Forum: Programming Discussion
Topic: Some questions around game developement
Replies: 15
Views: 4315

Re: Some questions around game developement

I'd like to add a little bit of personal experience for 4. Java is a decent language, but there are two big things that make it unsuitable for game development, and simulation in general. 1) Swing Graphics API. You don't have to use it, but this are the first readily available tool for drawing, and ...
by Ginto8
Mon Apr 02, 2012 2:51 pm
Forum: Programming Discussion
Topic: Quick .Net Reflection question
Replies: 13
Views: 3118

Re: Quick .Net Reflection question

It seems that you're trying to do something similar to minecraft's update scheme, which basically does this:

Code: Select all

Launcher runs
if an update is available, prompt for update
if update is chosen, download the new .jars and replace the old ones
dynamically load in the jars, run the main class
by Ginto8
Sat Mar 24, 2012 8:34 pm
Forum: Game Development
Topic: BrainScience for Android released!
Replies: 12
Views: 4685

Re: BrainScience for Android released!

The Kindle Fire is wacky in so many strange an unusual ways :lol: Well I finished, and I have a few things to note: first, I hope those jetpacks weren't too expensive. I must have lost 50 of them on downward diagonal passageways of spikes ;) Second, awesome game. Some of the challenges were downrigh...
by Ginto8
Sat Mar 17, 2012 7:19 pm
Forum: Programming Discussion
Topic: Generating and using code during runtime
Replies: 26
Views: 5831

Re: Generating and using code during runtime

Well dandymcgee, you're obviously more educated on this one than I am :lol: The main reason I was suggesting using a more data-driven approach is that C and other statically-compiled languages have issues with modifying their own code, so I was suggesting having the code be less concretely "cod...
by Ginto8
Sat Mar 17, 2012 4:34 am
Forum: Programming Discussion
Topic: Generating and using code during runtime
Replies: 26
Views: 5831

Re: Generating and using code during runtime

You're digging far too deep here. You want to use the OS, because the OS handles all the nasty device interactions for you. Especially with a high-level language like lisp, the last thing you want to do is override the OS. A google search for managing windows in lisp only got me an x11 window manage...
by Ginto8
Sat Mar 17, 2012 3:29 am
Forum: Programming Discussion
Topic: Generating and using code during runtime
Replies: 26
Views: 5831

Re: Generating and using code during runtime

I never realized how spoiled I am working with c++ for windows all the time, all I gotta do is some #include and bam all the windows functions available to me. With lisp I have to make all these foreign function definitions and stuff... Anyone reading this know of a way to go around an os? As in, m...
by Ginto8
Thu Mar 15, 2012 12:59 am
Forum: Programming Discussion
Topic: Shading
Replies: 4
Views: 1336

Re: Shading

GLSL is basically a way of taking the old-fashioned, restrictive fixed-function pipeline, throwing it out, and putting whatever you want in its place (with certain restrictions). For example, with OpenGL 4, there are 5 different stages of the graphics pipeline which you can program: 2 controlling te...
by Ginto8
Wed Mar 14, 2012 9:15 am
Forum: Game Development
Topic: BrainScience for Android released!
Replies: 12
Views: 4685

Re: BrainScience for Android released!

Yeah, tilting doesn't seem to work on Kindle Fire 6.2.2
I don't know if it's Amazon's weird-ass version of android or your game :| Any fix would be appreciated, I really want to keep playing ;)