Jump to content

  • Log In with Google      Sign In   
  • Create Account

Dave Hunt

Member Since 30 Dec 2002
Online Last Active Today, 07:15 PM

Posts I've Made

In Topic: Vertex Dynamic Memory (malloc and free)

28 January 2016 - 07:23 PM

If it works with the allocated pointer and not with the array, then you're doing something wrong. ;-)

 

We'd need to see your actual function to say for sure what's wrong.


In Topic: Vertex Dynamic Memory (malloc and free)

18 January 2016 - 09:28 PM

I was referring to the "..." in the fread call as well.

 

However, in your struct you declared cName as an array of 32 characters, then you likely attempted to set cName[32] to '\0'. Valid indices are 0-31. 32 is right out. It worked in your malloc version because you malloced 33 characters.


In Topic: Vertex Dynamic Memory (malloc and free)

14 January 2016 - 08:22 PM


Btw, I'm curious why this happened?

Very often the devil's in the ellipsis. It's hard to say what happened without knowing what "..." is.


In Topic: LibGDX - Rotating sprites from their corners.

27 December 2015 - 09:15 PM


The origin is relative to bottom left in libgdx.

Oops! You are absolutely correct.


In Topic: [Help] How to create a game like original gangstaz

16 December 2015 - 10:05 AM


Unefortunately I only know Html5, and I know that I will have to learn the basics, and after the more difficult


In fact I know a bit about programing (a bit of C++ and Mysql, but I don't master them)

Those two statements are at odds with one another.

 

At any rate, if you want to do cross-platform iOS/Android, you'll need some kind of cross-platform tool to bridge the two platforms. Since you know html, you might look into PhoneGap, which uses html, css and javascript, If you want to learn/use a different language you could look at something like Xamarin, which lets you use C# for both platforms and, with Xamarin.Forms, pretty much lets you write once and run on both platforms. You may have to do some device-specific code for the two platforms, but it would still be in C#.  

 

If you only want iOS, then you could still use Xamarin or PhoneGap, or you could go native with Objective-C (sort of a "C with objects").

 

As conquestor3 pointed out, you're really just going for a basic button-driven app, so any of the basic tutorials available for whatever toolset you choose should get you on your way.


PARTNERS