[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]

/templeos/ - The 64-Bit Temple Operating System

Discuss God and Code.

Catalog

8chan Bitcoin address: 1NpQaXqmCBji6gfX8UgaQEmEstvVY7U32C
The next generation of Infinity is here (discussion) (contribute)
Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options
dicesidesmodifier
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 1 per post.


File: 1435001284952.png (44.42 KB, 1248x765, 416:255, Screen Shot 2015-06-22 at ….png)

 No.1425

Got the next 6 weeks off of work so I've resolved to get back into programming with Temple OS since it's self contained and distraction-free (not talking about the interface of course but the lack of internet access and games that eat up a lot of time). I'm not too rusty, I only had to give up programming for 3 weeks, but I don't have very much experience with C. First thing I've decided to work on is a simple puzzle game to familiarize myself with the API and get back into C-type languages in general. It doesn't really do anything now but I've only been on it for a couple of days now and I'll try to post progress daily. The interface will look better too, it's just going to be the last thing I focus on.

 No.1426

File: 1435003200561.png (85.69 KB, 1247x956, 1247:956, Screen Shot 2015-06-22 at ….png)

Debugging becomes really hard after the first 100 lines. I'm working with freeing and allocating memory and the OS just crashes every time something goes wrong.


 No.1427

File: 1435003407732.png (39.77 KB, 869x191, 869:191, Screen Shot 2015-06-22 at ….png)

The problem comes from this function for freeing the linked list selection. selection is a pointer to the first element.

My python and lisp background told me that working with a linked list would be easier but now I see that it would be better to just have an array of the maximum size of objects.


 No.1429

>>1427

If it takes you to the debugger, type

> Exit;

Sometimes, that kills the task and returns to normal.


 No.1435

File: 1435455183358.png (64.7 KB, 780x283, 780:283, Screen Shot 2015-06-27 at ….png)

Trying to figure out why my event code is so slow. I have to hold the mouse button down for several seconds before it registers.

What's a good demo to learn how to properly do events?




[Return][Go to top][Catalog][Post a Reply]
Delete Post [ ]
[]
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]