[QUOTE=chaz13;31869585]Thank fuck for that, finally managed to fix the bug with my survival jungle thingymajig so the inventory now works perfectly well, I'm so happy!
Turns out it wasn't the code to pick up items that wasn't working, it was that I wasn't using random.Next() correctly so trees were being placed on top of eachother. Silly me!
I'm really tempted to go isometric with this- and it wouldn't be too difficult, I'm just lacking motivation to change everything. Should I bother?
EDIT: or go for 3/4's view, that'd be much easier to do as well...[/QUOTE]
That same kind of thing was happening to me. Lights were added on top of each other so the surrounding area was as bright as it could possibly be.
[QUOTE=chaz13;31870993]...I feel like an idiot right now. I tried that once and it didn't seem to like it but I must have screwed up somehow, thanks.[/QUOTE]
You should try GIT or SVN
So if you do mess something up big time you can go back a revision.
Thanks for the tips.
The isometric version as of current:
[IMG]http://i55.tinypic.com/2ce0poh.png[/IMG]
If you ignore the dodgy sprites (done in about a minute each) it looks pretty nice!
[QUOTE=chaz13;31870807]In XNa, is there an easy way to duplicate an entire project? I often find myself wanting to try something out a bit different, like making my survival game isometric, but if I don't like it in the end it's much easier to have a backup.[/QUOTE]Yeah, just literally copy and paste the whole project folder and name it "[name] - Testing Edition" or something like I do :v:
Not using source control is just asking for something terrible to happen.
[QUOTE=Ortzinator;31873754]Not using source control is just asking for something terrible to happen.[/QUOTE]
That's like saying not having car insurance is asking for something bad to happen.
[QUOTE=Jookia;31874408]That's like saying not having car insurance is asking for something bad to happen.[/QUOTE]
ITT we take idioms seriously.
[QUOTE=mmavipc;31874876]What's ace of spaces coded in?[/QUOTE]
C using Voxlap.
[QUOTE=TVC;31874755][media]http://www.youtube.com/watch?v=zHrsvoPjh8A[/media][/QUOTE]
Cool, let's ruin the fun for more people.
[QUOTE=TheCloak;31874928]Cool, let's ruin the fun for more people.[/QUOTE]
He did say he's not releasing it.
[QUOTE=TheCloak;31874928]Cool, let's ruin the fun for more people.[/QUOTE]
Did you not listen to the audio at all?
[QUOTE=moonage;31823773]Decided to test Kari's speed against some other popular languages.[/QUOTE]
Don't use 'time' to measure Python's execution time, use the [URL="http://docs.python.org/py3k/library/timeit.html?highlight=timeit"]timeit module[/URL]:
[code]
import timeit
def fib(n):
a = 1
b = 0
i = 0
while i < n:
c = b
b = a
a += c
i += 1
return a
t = timeit.Timer(setup='from __main__ import fib', stmt='fib(100000)')
print("%.3f sec" % (t.timeit(number = 10) / 10))
[/code]
Please try this on your machine and see how it compares to your previous result.
[QUOTE=TVC;31874964]Did you not listen to the audio at all?[/QUOTE]
broken headset
[QUOTE=ers35.;31874983]Don't use 'time' to measure Python's execution time, use the [URL="http://docs.python.org/py3k/library/timeit.html?highlight=timeit"]timeit module[/URL]:
[code]
import timeit
def fib(n):
a = 1
b = 0
i = 0
while i < n:
c = b
b = a
a += c
i += 1
return a
t = timeit.Timer(setup='from __main__ import fib', stmt='fib(100000)')
print("%.3f sec" % (t.timeit(number = 10) / 10))
[/code]
Please try this on your machine and see how it compares to your previous result.[/QUOTE]
0.905 sec
I coded a Youtube playlist parser for VLC. You can just give VLC the playlist's page url and all the videos in the Youtube playlist will be loaded into VLC's playlist. I uploaded it here: [url]http://addons.videolan.org/content/show.php?content=144613[/url].
I decided to give Kari a little meta-programming magic, so I added the ability to mess around with your own context dict (contexts are basically linked lexical scopes).
Every context also has a $parent variable which is used to link to the next context up. I modified the Kari VM to use this $parent variable internally. And because this is all visible to code, you [i]can[/i] mess with your own context. You can also set your $parent to any arbitrary dict and use keys from that dict as variables. You can even set your $context's $parent to itself if you want Kari to spin out into an infinite loop when you try to access an undefined variable:
[img]http://i.imgur.com/QLqmX.png[/img]
[editline]22nd August 2011[/editline]
Next up, the ability to re-bind a function to another context!
Does anyone know how to use OpenAl, or even were to download the libraries. I am so lost on there website and all the tutorials I find assume you have everything downloaded already.
Sometimes it feels like I spend more time refactoring code than actually getting stuff done.
Happens a lot. I've found that it usually helps to plan ahead the features so that you stop getting that "what should I do next" -feeling.
and first write working nice code and then fix the bottlenecks
[QUOTE=moonage;31876444]I decided to give Kari a little meta-programming magic, so I added the ability to mess around with your own context dict (contexts are basically linked lexical scopes).
Every context also has a $parent variable which is used to link to the next context up. I modified the Kari VM to use this $parent variable internally. And because this is all visible to code, you [i]can[/i] mess with your own context. You can also set your $parent to any arbitrary dict and use keys from that dict as variables. You can even set your $context's $parent to itself if you want Kari to spin out into an infinite loop when you try to access an undefined variable:
[img]http://i.imgur.com/QLqmX.png[/img]
[editline]22nd August 2011[/editline]
Next up, the ability to re-bind a function to another context![/QUOTE]
Give it the ability to run source code given as a string or a file and return a context (is that how it works?) that would be epic for real-time scripting etc.
Massive 800*600 image dump incoming!
This is my LD21 Game Jam entry! :D It's a PPG (Pong Playing Game) where you play as Jim an escaping convict who's mistaked by everyone as a hero.
[IMG]http://i.imgur.com/QmgJy.png[/IMG]
What a pretty title screen.
[IMG]http://i.imgur.com/bh3bs.png[/IMG]
His cell is apparently unlocked!
[IMG]http://i.imgur.com/peG1H.png[/IMG]
Conversation with a crotchety old man.
[IMG]http://i.imgur.com/bhjw4.png[/IMG]
Oh man a bat.
[IMG]http://i.imgur.com/cUqwD.png[/IMG]
Schooling this fool what a nub.
[IMG]http://i.imgur.com/0l2tY.png[/IMG]
A slime for good measure.
[IMG]http://i.imgur.com/vk9cW.png[/IMG]
Ty for the HP Pot, bro.
[IMG]http://i.imgur.com/N41Ne.png[/IMG]
Oh look it's Quark; (Boss fight!)
[IMG]http://i.imgur.com/Ej46L.png[/IMG]
I'll show dis bitch.
It's basically like an ungodly combination of: Zelda, Pong, and Pokemon. When the NPCs see you, you freeze and they run towards you and either:
Have a one sided dialogue with Jim.
Attack Jim.
Or both.
If they attack Jim the two sides engage in a friendly match of table tennis, the stronger an oponent the harder they hit it back, the faster an oponent the faster their paddle moves.
[editline]22nd August 2011[/editline]
I really want to do cool stuff, like spells that affect the balls/paddles and such but I have like 7 hours :(
And yet it remains untitled. :(
I decided to try and make trails follow my ship in a little asteroids clone I'm working on.
Before:
[quote]
[img]http://i.imgur.com/jmdln.png[/img]
[/quote]
After:
[quote]
[img]http://i.imgur.com/GFrdZ.png[/img]
[/quote]
[editline]22nd August 2011[/editline]
Progress!
[quote]
[img]http://i.imgur.com/WkfY2.gif[/img]
[/quote]
[QUOTE=Nigey Nige;31881511]I decided to try and make trails follow my ship in a little asteroids clone I'm working on.
Before:
After:
[editline]22nd August 2011[/editline]
Progress![/QUOTE]
I actually like the first one a lot. It made me think your game was 3d.
Sorry, you need to Log In to post a reply to this thread.