Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - EpikYummeh

Pages: [1]
Yeah, it has its ups and downs. I've only found it useful for Lua, but I definitely prefer Visual Studio to any other editor I've used, though.

I have ported my soft body blobs to javascript in order to get some HTML5 Canvas practice. Rotation and drawing styles were a bit confusing, because everything is on the same layer you have to use a stack to push and pop drawing styles and rotation values. The faces are now drawn procedurally and I added some sounds (mp3 only, no ogg yet). You can take a peek a the code with right-click > view source.

Controlls are the same as the Flash version:
Ctrl = add blob
Arrow keys = move blob
Click blob to split
Click and drag blobs around
Space shows spring stucture.

Nicely done! Very entertaining.

C / C++ /C# / Re: Help on WinForms UserControls
« on: December 03, 2012 »
Using 2010 on this computer, but I have 2012 available on another box.

I've made some progress, though there seem to be some issues with rendering images. I played around with my panning code and out came a beautifully smooth panning/dragging functionality. Here's all the code:

Code: [Select]
// prevLoc is a global Point, _image is the PictureBox
if (_image.Image != null)
                Point diff = new Point(MousePosition.X - prevLoc.X, MousePosition.Y - prevLoc.Y);
                if (_drag)
                    _image.Location = new Point(_image.Location.X + diff.X, _image.Location.Y + diff.Y);

                prevLoc = MousePosition;

Have you heard of SublimeText? They actually have a primitive version of IntelliSense with variable name completion that works for Lua.

The only way I could see getting that to work is adding every identifier or block of text that is not in the list of language clauses and control structure keywords and not a string, but then you have to take into account lexical scope and it could get a bit messy from there. I haven't poked around with how IntelliSense works, but it may be easier than I'm thinking.

General chat / Re: The Welcoming Committee
« on: November 30, 2012 »
:hi: EpikYummeh ...
What was your first contact with the demoscene? Or are you just interested in programming in general?

Anyway - thanks for your introduction - welcome on board.

I'm just interested in programming in general. :)

C / C++ /C# / Re: Help on WinForms UserControls
« on: November 30, 2012 »
Using a panel sounds a lot more manageable than what I have going right now. Here's a PasteBin of the current UserControl code I have right now: Zoomer.cs. And here is the form code: ImageForm.cs.

I will play around with using a panel and PictureBox and see if I can make any progress. I'll let you know if I get anything working.

C / C++ /C# / Help on WinForms UserControls
« on: November 29, 2012 »
Hi all,

I'm starting to build more advanced WinForms programs and one of them is an image viewer that I hope to maintain a lighter interface than Windows Photo Viewer.

I have animations for UI elements done, and have plans set out for the rest of the application's features.

I am stuck, though, on the actual image display portion. I could not find any useful code snippets on the web for adding a zooming functionality that can easily be programatically controlled, so I decided to write one from scratch.

I don't have much experience with matrices as that seems to be the obvious solution, so I've come up with a nasty hack where the image fills up the control's client space and resizes the control by a zoom factor controlled by a property all based on the image's size.

I guess what I'm looking for are some tips on more effective ways of getting a zooming functionality. If need be I can post screenshots of the application and/or bits of code.

Thank you very much! This works great; if only it was easier to create IntelliSense support for such a loosely typed language.

I had seen the 2010 version plugin and was hopeful it would work, but here I am! Great work!

General chat / Re: The Welcoming Committee
« on: November 29, 2012 »

I go by Epik, but also Andrew because that's my name. I program primarily in C#, but am taking a college course in JavaScript and plan on taking more in the future. I have a little experience in Lua, have a couple years in CSS and HTML, and have begun to dawdle in SQL, LINQ, and useage of XML. I plan on a career in software development and am working on getting internships for added resume points and experience.

I'm a big gamer and I play Xbox and PC primarily.

Pages: [1]